Cleanup RP and HM records while deleting a compute service.
Currently when deleting a nova-compute service via the API, we will
(soft) delete the service and compute_node records in the DB, but the
placement resource provider and host mapping records will be orphaned.
This patch deletes the resource provider and host_mapping records
before deleting the service/compute node.
Change-Id: I7b8622b178d5043ed1556d7bdceaf60f47e5ac80
Closes-Bug: #1756179
(cherry picked from commit 589c495c1ae62129e20ab5e2641e330541eee01f)
(cherry picked from commit dede2de2bd482d0378a7acd81b65d93b1635e825)
Reviewed: https:/ /review. openstack. org/580499 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=9fe847bdca3 9627b4d1741d2c5 807ebca7101d2e
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 9fe847bdca39627 b4d1741d2c5807e bca7101d2e
Author: Surya Seetharaman <email address hidden>
Date: Wed Mar 21 14:16:24 2018 +0100
Cleanup RP and HM records while deleting a compute service.
Currently when deleting a nova-compute service via the API, we will
(soft) delete the service and compute_node records in the DB, but the
placement resource provider and host mapping records will be orphaned.
This patch deletes the resource provider and host_mapping records
before deleting the service/compute node.
Change-Id: I7b8622b178d504 3ed1556d7bdceaf 60f47e5ac80 9e20ab5e2641e33 0541eee01f) 378a7acd81b65d9 3b1635e825)
Closes-Bug: #1756179
(cherry picked from commit 589c495c1ae6212
(cherry picked from commit dede2de2bd482d0