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): A couple of methods are lifted from ServerMovingTests
since change Ie991d4b53e9bb5e7ec26da99219178ab7695abf6 is not in Rocky.
Change-Id: I644608b4e197ddea31c5f264adb492f2c8931f04
Related-Bug: #1852610
(cherry picked from commit 94d3743b185d22c07504f5d878dff2f9ef42cee3)
(cherry picked from commit 28d76cc7ae5c86d251915392b5b961a975b343ae)
(cherry picked from commit 7d673872462f53d0ce5e651263253ec4057a2138)
Reviewed: https:/ /review. opendev. org/698108 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=1563a15c8b4 bcf1a602f72a549 c8d9c56ed7da4e
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 1563a15c8b4bcf1 a602f72a549c8d9 c56ed7da4e
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.
NOTE(mriedem): A couple of methods are lifted from ServerMovingTests e7ec26da9921917 8ab7695abf6 is not in Rocky.
since change Ie991d4b53e9bb5
Change-Id: I644608b4e197dd ea31c5f264adb49 2f2c8931f04 07504f5d878dff2 f9ef42cee3) 251915392b5b961 a975b343ae) 0ce5e651263253e c4057a2138)
Related-Bug: #1852610
(cherry picked from commit 94d3743b185d22c
(cherry picked from commit 28d76cc7ae5c86d
(cherry picked from commit 7d673872462f53d