It is possible to delete a source compute service which has
pending migration-based allocations and servers in VERIFY_RESIZE
status. Doing so deletes the compute service and compute node
but orphans the source node resource provider along with its
resource allocations held by the migration record while there
is a pending resized server.
This adds a simple cold migrate test which deletes the source
compute service while the server is in VERIFY_RESIZE status and
then tries to confirm the resize which fails.
NOTE(mriedem): The conflict is due to not having change
Iea283322124cb35fc0bc6d25f35548621e8c8c2f in Queens. As a result
the helper methods are moved from ServerMovingTests to
ProviderUsageBaseTestCase within test_servers.py.
Change-Id: I644608b4e197ddea31c5f264adb492f2c8931f04
Related-Bug: #1852610
(cherry picked from commit 94d3743b185d22c07504f5d878dff2f9ef42cee3)
(cherry picked from commit 28d76cc7ae5c86d251915392b5b961a975b343ae)
(cherry picked from commit 7d673872462f53d0ce5e651263253ec4057a2138)
(cherry picked from commit 1563a15c8b4bcf1a602f72a549c8d9c56ed7da4e)
Reviewed: https:/ /review. opendev. org/699705 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=922098044b3 7c66c51e83f4879 c1f37ae999f196
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 922098044b37c66 c51e83f4879c1f3 7ae999f196
Author: Matt Riedemann <email address hidden>
Date: Thu Nov 14 11:38:07 2019 -0500
Add functional recreate test for bug 1852610
It is possible to delete a source compute service which has
pending migration-based allocations and servers in VERIFY_RESIZE
status. Doing so deletes the compute service and compute node
but orphans the source node resource provider along with its
resource allocations held by the migration record while there
is a pending resized server.
This adds a simple cold migrate test which deletes the source
compute service while the server is in VERIFY_RESIZE status and
then tries to confirm the resize which fails.
Conflicts:
nova/ tests/functiona l/integrated_ helpers. py
NOTE(mriedem): The conflict is due to not having change 4cb35fc0bc6d25f 35548621e8c8c2f in Queens. As a result geBaseTestCase within test_servers.py.
Iea28332212
the helper methods are moved from ServerMovingTests to
ProviderUsa
Change-Id: I644608b4e197dd ea31c5f264adb49 2f2c8931f04 07504f5d878dff2 f9ef42cee3) 251915392b5b961 a975b343ae) 0ce5e651263253e c4057a2138) a602f72a549c8d9 c56ed7da4e)
Related-Bug: #1852610
(cherry picked from commit 94d3743b185d22c
(cherry picked from commit 28d76cc7ae5c86d
(cherry picked from commit 7d673872462f53d
(cherry picked from commit 1563a15c8b4bcf1