yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #71756
[Bug 1747936] Re: Host is not unmapped when the host_mapping is deleted during delete_cell operation
Reviewed: https://review.openstack.org/542964
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=dc2d15129d1a86a841e3dc1ccab250c30d34c540
Submitter: Zuul
Branch: master
commit dc2d15129d1a86a841e3dc1ccab250c30d34c540
Author: Surya Seetharaman <suryaseetharaman.9@xxxxxxxxx>
Date: Fri Feb 9 18:54:05 2018 +0100
Unmap compute nodes when deleting host mappings in delete cell operation
Presently when a host_mapping is deleted during the nova-manage cell_v2
delete_cell operation, the compute node record still remains with its
mapped field set to 1. Due to this, if we delete a cell, and later
create a new cell, the discover_hosts command will not work and the
compute node will not get mapped to the new cell. This patch fixes this
issue by setting it back to 0.
Change-Id: Iaf13f11bcd0bb25f673fc28f252cb9391409b9b5
Closes-Bug: #1747936
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1747936
Title:
Host is not unmapped when the host_mapping is deleted during
delete_cell operation
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Compute (nova) pike series:
In Progress
Status in OpenStack Compute (nova) queens series:
In Progress
Bug description:
Presently when a host_mapping is deleted during the nova-manage
cell_v2 deleted_cell operation, the compute node record still remains
with its mapped field set to 1. Due to this, if we delete a cell, and
later create a new cell, the discover_hosts command will not work and
the compute node will not get mapped to the new cell.
Solution:
Before the host is deleted during the delete_cell operation, the
mapped field in compute_nodes table should be set to 0.
This bug is similar to this one :
https://bugs.launchpad.net/nova/+bug/1735719, hence what was done for
the delete_host command should be done for the delete_cell command as
well.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1747936/+subscriptions
References