Live migration of paused instance fails when post copy is enabled

Bug #1671011 reported by Sivasathurappan Radhakrishnan
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Sivasathurappan Radhakrishnan

Bug Description

live migration paused instance fails when post copy is enabled.

Steps to Reproduce:

* spin up a instance and pause it
  nova pause <instance>

* Live migrate the instance
  nova live-migration <instance> <host>

Expected result
===============
live migration should go through without any errors
Actual result
=============
Live migration command returns 202 but I could see libvirt failure while doing live-migration in compute logs.

Environment:

Multinode devstack environment with 2 compute nodes.
1)Current master
2)Networking-neutron
3)Hypervisor Libvirt-KVM
3) Enable post copy for which libvirt version should be greater than or equal to 1.3.3.

Logs:
Following error found in compute log
http://paste.openstack.org/show/601362/

Changed in nova:
assignee: nobody → Sivasathurappan Radhakrishnan (siva-radhakrishnan)
tags: added: live-migration
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/444517

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Stephen Finucane (<email address hidden>) on branch: master
Review: https://review.openstack.org/444517
Reason: This has been here for some time with no updates. Abandoning to clean up the review queue

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

Reviewed: https://review.opendev.org/c/openstack/nova/+/444517
Committed: https://opendev.org/openstack/nova/commit/33fa92b6cb1dfeb88a4188c0e4e4ce51be1f7a4b
Submitter: "Zuul (22348)"
Branch: master

commit 33fa92b6cb1dfeb88a4188c0e4e4ce51be1f7a4b
Author: Sivasathurappan Radhakrishnan <email address hidden>
Date: Fri Mar 10 22:16:42 2017 +0000

    Allow live migrate paused instance when post copy is enabled

    Live migration of paused instance fails when VIR_MIGRATE_POSTCOPY
    flag is set. In this patch, the flag is unset to permit live migration
    of paused instance.

    Change-Id: Ib5cbc948cb953e35a22bcbb859976f0afddcb662
    Closes-Bug: #1671011

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/nova/+/903834

Revision history for this message
Olaf Seibert (oseibert-sys11) wrote :

In the patch given in bug https://bugs.launchpad.net/nova/+bug/1946752 the POSTCOPY flag is disabled in two locations. The fix here only does it in one of the two. It misses the later variable named `is_post_copy_enabled`.

Are we sure that that is sufficient?

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

Reviewed: https://review.opendev.org/c/openstack/nova/+/903834
Committed: https://opendev.org/openstack/nova/commit/989ee448906f4ca623f6b14ef8c7af8c8fa10e2f
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 989ee448906f4ca623f6b14ef8c7af8c8fa10e2f
Author: Sivasathurappan Radhakrishnan <email address hidden>
Date: Fri Mar 10 22:16:42 2017 +0000

    Allow live migrate paused instance when post copy is enabled

    Live migration of paused instance fails when VIR_MIGRATE_POSTCOPY
    flag is set. In this patch, the flag is unset to permit live migration
    of paused instance.

    Change-Id: Ib5cbc948cb953e35a22bcbb859976f0afddcb662
    Closes-Bug: #1671011
    (cherry picked from commit 33fa92b6cb1dfeb88a4188c0e4e4ce51be1f7a4b)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/nova/+/903840

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

Reviewed: https://review.opendev.org/c/openstack/nova/+/903840
Committed: https://opendev.org/openstack/nova/commit/5db7a7b3db2c394b4cda095dfe3a0a72f8106466
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 5db7a7b3db2c394b4cda095dfe3a0a72f8106466
Author: Sivasathurappan Radhakrishnan <email address hidden>
Date: Fri Mar 10 22:16:42 2017 +0000

    Allow live migrate paused instance when post copy is enabled

    Live migration of paused instance fails when VIR_MIGRATE_POSTCOPY
    flag is set. In this patch, the flag is unset to permit live migration
    of paused instance.

    Change-Id: Ib5cbc948cb953e35a22bcbb859976f0afddcb662
    Closes-Bug: #1671011
    (cherry picked from commit 33fa92b6cb1dfeb88a4188c0e4e4ce51be1f7a4b)
    (cherry picked from commit 989ee448906f4ca623f6b14ef8c7af8c8fa10e2f)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/nova/+/904085

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

Reviewed: https://review.opendev.org/c/openstack/nova/+/904085
Committed: https://opendev.org/openstack/nova/commit/787839f6637f292fb5656725e5dae12fbe6e3c3e
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 787839f6637f292fb5656725e5dae12fbe6e3c3e
Author: Sivasathurappan Radhakrishnan <email address hidden>
Date: Fri Mar 10 22:16:42 2017 +0000

    Allow live migrate paused instance when post copy is enabled

    Live migration of paused instance fails when VIR_MIGRATE_POSTCOPY
    flag is set. In this patch, the flag is unset to permit live migration
    of paused instance.

    Change-Id: Ib5cbc948cb953e35a22bcbb859976f0afddcb662
    Closes-Bug: #1671011
    (cherry picked from commit 33fa92b6cb1dfeb88a4188c0e4e4ce51be1f7a4b)
    (cherry picked from commit 989ee448906f4ca623f6b14ef8c7af8c8fa10e2f)
    (cherry picked from commit 5db7a7b3db2c394b4cda095dfe3a0a72f8106466)

tags: added: in-stable-zed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 26.2.1

This issue was fixed in the openstack/nova 26.2.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 29.0.0.0rc1

This issue was fixed in the openstack/nova 29.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 27.3.0

This issue was fixed in the openstack/nova 27.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 28.1.0

This issue was fixed in the openstack/nova 28.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.