nova/nova/tests/functional/wsgi
Matt Riedemann 6eda7409ff Add functional recreate test for bug 1829479 and bug 1817833
Change I7b8622b178d5043ed1556d7bdceaf60f47e5ac80 started deleting
the associated resource provider when a compute service is deleted.
However, the delete_resource_provider cascade=True logic only looks
for instances on the given compute service host being deleted which
will miss (1) allocations remaining from evacuated servers and
(2) unconfirmed migrations.

Attempting to delete the resource provider results in an
ResourceProviderInUse error which delete_resource_provider ignores
for legacy reasons. This results in the compute service being
deleted but the resource provider being orphaned. What's more,
attempting to restart the now-deleted compute service will fail
because nova-compute will try to create a new resource provider
with a new uuid but with the same name (based on the hypervisor
hostname). That failure is actually reported in bug 1817833.

NOTE(mriedem): Note that in this backport a simple version of
assertFlavorMatchesUsage is added since the original version from
change If6aa37d9b6b48791e070799ab026c816fda4441c is not in Rocky.

Change-Id: I69f52f1282c8361c9cdf90a523f3612139cb8423
Related-Bug: #1829479
Related-Bug: #1817833
(cherry picked from commit 2629d65fbc)
(cherry picked from commit b18e42d20b)
2019-12-09 18:11:43 -05:00
..
__init__.py nova flavor manage functional test 2015-02-20 08:50:44 -05:00
test_flavor_manage.py Remove compatibility code for flavors 2017-09-05 10:36:10 -04:00
test_interfaces.py Fix functional tests for USE_NEUTRON 2017-12-21 19:11:46 -05:00
test_secgroup.py Enable global hacking checks and removed local checks 2017-02-10 15:09:37 +01:00
test_servers.py fixtures: Track volume attachments within CinderFixtureNewAttachFlow 2018-10-23 13:46:26 +01:00
test_services.py Add functional recreate test for bug 1829479 and bug 1817833 2019-12-09 18:11:43 -05:00