Add functional test for deleting a compute service
This adds a functional test which asserts the things
related to bug 1756179 where deleting a compute service
does not also delete the related host mapping or resource
provider resources.
Also related to bug 1763183 in that it should not be
possible to delete a compute service that has instances
running on it since that will mess up resource tracking
in Placement.
NOTE(mriedem): There are two changes in this backport:
1. The ResourceClass fields moved in Rocky via change Iea182341f9419cb514a044f76864d6bec60a3683.
2. The _get_provider_inventory method was added in change I5ee11274816cd9e4f0669e9e52468a29262c9020 in Rocky.
Reviewed: https:/ /review. openstack. org/563229 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=bcd462e49b4 d51e78e9f31c60c d9e4d9fd8f99f9
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit bcd462e49b4d51e 78e9f31c60cd9e4 d9fd8f99f9
Author: Matt Riedemann <email address hidden>
Date: Wed Apr 11 16:00:59 2018 -0400
Add functional test for deleting a compute service
This adds a functional test which asserts the things
related to bug 1756179 where deleting a compute service
does not also delete the related host mapping or resource
provider resources.
Also related to bug 1763183 in that it should not be
possible to delete a compute service that has instances
running on it since that will mess up resource tracking
in Placement.
NOTE(mriedem): There are two changes in this backport:
1. The ResourceClass fields moved in Rocky via change
Iea182341f9419c b514a044f76864d 6bec60a3683.
2. The _get_provider_ inventory method was added in change
I5ee11274816cd9 e4f0669e9e52468 a29262c9020 in Rocky.
Change-Id: I519c5abfe24b15 4998f481c8a86db 239a75d4729 ba1bfe71244b52b a2f082c86e)
Related-Bug: #1756179
Related-Bug: #1763183
(cherry picked from commit a80ac96362c8faf