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): The conflict is due to not having change
Iea283322124cb35fc0bc6d25f35548621e8c8c2f in Queens so the
change to ProviderUsageBaseTestCase is made in test_servers.py
rather than integrated_helpers.py.
Change-Id: I69f52f1282c8361c9cdf90a523f3612139cb8423
Related-Bug: #1829479
Related-Bug: #1817833
(cherry picked from commit 2629d65fbc15d8698f98117e0d6072810f70da03)
(cherry picked from commit b18e42d20bd7d341e713292bdb179ae8e5530d33)
(cherry picked from commit 6eda7409fff75449c97843b2d6ead0b3267a1099)
Reviewed: https:/ /review. opendev. org/699698 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=23ca5e5ac9b 90ff45074ae9171 f63ca060ebcedd
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 23ca5e5ac9b90ff 45074ae9171f63c a060ebcedd
Author: Matt Riedemann <email address hidden>
Date: Thu Jun 6 13:41:09 2019 -0400
Add functional recreate test for bug 1829479 and bug 1817833
Change I7b8622b178d504 3ed1556d7bdceaf 60f47e5ac80 started deleting resource_ provider cascade=True logic only looks
the associated resource provider when a compute service is deleted.
However, the delete_
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 viderInUse error which delete_ resource_ provider ignores
ResourcePro
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.
Conflicts:
nova/ tests/functiona l/integrated_ helpers. py
NOTE(mriedem): The conflict is due to not having change 4cb35fc0bc6d25f 35548621e8c8c2f in Queens so the seTestCase is made in test_servers.py helpers. py.
Iea28332212
change to ProviderUsageBa
rather than integrated_
Change-Id: I69f52f1282c836 1c9cdf90a523f36 12139cb8423 98f98117e0d6072 810f70da03) 1e713292bdb179a e8e5530d33) 9c97843b2d6ead0 b3267a1099)
Related-Bug: #1829479
Related-Bug: #1817833
(cherry picked from commit 2629d65fbc15d86
(cherry picked from commit b18e42d20bd7d34
(cherry picked from commit 6eda7409fff7544