This patch adds a regression test which asserts that if a live migration
is aborted while it's 'queued', the instance's status is never reverted
back to ACTIVE, and instance remains in MIGRATING state.
There is simple idea behind implemented LiveMigrationQueuedAbortTest:
we start two instances on the same compute and try to migrate
them simultaneously when max_concurrent_live_migrations is set to 1
and nova.tests.fixtures.libvirt.Domain.migrateToURI3 is locked.
As a result, we get two live migrations stuck in 'migrating' and
'queued' states and we can issue API call to abort the second one.
Lock is removed and first instance is live migrated after second
instance's live migration is aborted.
Co-Authored-By: Alex Stupnikov <email address hidden>
Partial-Bug: #1949808
Change-Id: I67d41a8e439b1ff3c5983ee17823616b80698639
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /776250 /opendev. org/openstack/ nova/commit/ 3e7b9b69e68c859 4eac92d88f0579a ab40d7d5ae
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 3e7b9b69e68c859 4eac92d88f0579a ab40d7d5ae
Author: Alexey Stupnikov <email address hidden>
Date: Tue Nov 9 16:05:52 2021 +0100
Test aborting queued live migration
This patch adds a regression test which asserts that if a live migration
is aborted while it's 'queued', the instance's status is never reverted
back to ACTIVE, and instance remains in MIGRATING state.
There is simple idea behind implemented LiveMigrationQu euedAbortTest: live_migrations is set to 1 fixtures. libvirt. Domain. migrateToURI3 is locked.
we start two instances on the same compute and try to migrate
them simultaneously when max_concurrent_
and nova.tests.
As a result, we get two live migrations stuck in 'migrating' and
'queued' states and we can issue API call to abort the second one.
Lock is removed and first instance is live migrated after second
instance's live migration is aborted.
Co-Authored-By: Alex Stupnikov <email address hidden> f3c5983ee178236 16b80698639
Partial-Bug: #1949808
Change-Id: I67d41a8e439b1f