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.
Reviewed: https:/ /review. openstack. org/542964 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=dc2d15129d1 a86a841e3dc1cca b250c30d34c540
Committed: https:/
Submitter: Zuul
Branch: master
commit dc2d15129d1a86a 841e3dc1ccab250 c30d34c540
Author: Surya Seetharaman <email address hidden>
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: Iaf13f11bcd0bb2 5f673fc28f252cb 9391409b9b5
Closes-Bug: #1747936