Comment 3 for bug 1949808

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.opendev.org/c/openstack/nova/+/776250
Committed: https://opendev.org/openstack/nova/commit/3e7b9b69e68c8594eac92d88f0579aab40d7d5ae
Submitter: "Zuul (22348)"
Branch: master

commit 3e7b9b69e68c8594eac92d88f0579aab40d7d5ae
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 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