Extending delete_cell --force to delete instance_mappings
Currently the nova-manage delete_cell command with the --force option
allows us to destroy hosts_mappings of the cell which does not have any
instances or instance_mappings. This patch extends this command with the
--force option for destroying instance_mappings in addition to the
host_mappings of the cell which is to be deleted. Note that the instance
mappings and host mappings are only removed if there are no living
instances in the cell. So a --force delete here will not work if there
are non-deleted instances.
Reviewed: https:/ /review. openstack. org/540073 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ee2f65d91fb 632f04be3572967 029cd58be4c614
Committed: https:/
Submitter: Zuul
Branch: master
commit ee2f65d91fb632f 04be3572967029c d58be4c614
Author: Surya Seetharaman <email address hidden>
Date: Thu Feb 1 18:56:10 2018 +0100
Extending delete_cell --force to delete instance_mappings
Currently the nova-manage delete_cell command with the --force option
allows us to destroy hosts_mappings of the cell which does not have any
instances or instance_mappings. This patch extends this command with the
--force option for destroying instance_mappings in addition to the
host_mappings of the cell which is to be deleted. Note that the instance
mappings and host mappings are only removed if there are no living
instances in the cell. So a --force delete here will not work if there
are non-deleted instances.
Change-Id: Ibefa0465224bec 9a22431c7d3b5c8 f5d91fc7732
Closes-Bug: #1745375