nova doesn't clean up the resources after live migrate

Bug #1712045 reported by Lajos Katona
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Critical
Matt Riedemann
Pike
Fix Committed
Critical
Matt Riedemann

Bug Description

The following scenario doesn't work with nova migrate:
* Boot a VM.
* live migrate the VM.
* check the allocations:
** there are double allocations
** the allocations are claimed for both the source and destination host of the migration.

nova commit on which the test happened: 08ec8a1ad3f3492b99db48d9e8fa132cb1bb3e8c

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/495811

tags: added: live-migration placement
Matt Riedemann (mriedem)
tags: added: pike-rc
tags: added: pike-rc-potential
removed: pike-rc
Revision history for this message
Matt Riedemann (mriedem) wrote :

Looks similar to what was needed for removing the allocations for an instance on the source node in an evacuate operation:

https://review.openstack.org/#/c/494625/1/nova/compute/manager.py

Changed in nova:
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Matt Riedemann (mriedem) wrote :

To be clear, the bug here is that the allocations are not cleaned up from the source node once the migration is complete.

Matt Riedemann (mriedem)
Changed in nova:
assignee: nobody → Dan Smith (danms)
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/496032

Changed in nova:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/496202

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

Reviewed: https://review.openstack.org/495811
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=1ce7a136b362fbfb2d3d231ba8e1cd77081139ce
Submitter: Jenkins
Branch: master

commit 1ce7a136b362fbfb2d3d231ba8e1cd77081139ce
Author: Lajos Katona <email address hidden>
Date: Mon Aug 21 12:27:09 2017 +0200

    Add functional live migrate test

    Live migration now seems to be failing, as after the movement of the VM,
    the allocations are both present on the source host, and on the
    destination host.
    The related assertions are commented out and replaced with wrong ones to
    make the test pass.

    Change-Id: Ib15d34c8da14dd006a0782e325d3c5e7b83fd0f1
    Related-Bug: #1712045

Changed in nova:
assignee: Dan Smith (danms) → Matt Riedemann (mriedem)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (stable/pike)

Related fix proposed to branch: stable/pike
Review: https://review.openstack.org/496726

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

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/496728

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

Reviewed: https://review.openstack.org/496032
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=72728ed01fe5d568855ad92596740a2da81169c4
Submitter: Jenkins
Branch: master

commit 72728ed01fe5d568855ad92596740a2da81169c4
Author: Dan Smith <email address hidden>
Date: Mon Aug 21 15:44:42 2017 -0700

    Remove source node allocation after live migration completes

    This is done in a similar way to evacuation and shelve offload
    to avoid further mingling of new-style allocation management
    code with existing resource tracker code (soon to be removed).

    Closes-Bug: #1712045
    Change-Id: I6afd69166704e45d983b8b06a32a2799fb82b58a

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

Reviewed: https://review.openstack.org/496726
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f2f967b403ab1225c5ccb39bb52977748ebbd32d
Submitter: Jenkins
Branch: stable/pike

commit f2f967b403ab1225c5ccb39bb52977748ebbd32d
Author: Lajos Katona <email address hidden>
Date: Mon Aug 21 12:27:09 2017 +0200

    Add functional live migrate test

    Live migration now seems to be failing, as after the movement of the VM,
    the allocations are both present on the source host, and on the
    destination host.
    The related assertions are commented out and replaced with wrong ones to
    make the test pass.

    Change-Id: Ib15d34c8da14dd006a0782e325d3c5e7b83fd0f1
    Related-Bug: #1712045
    (cherry picked from commit 1ce7a136b362fbfb2d3d231ba8e1cd77081139ce)

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

Reviewed: https://review.openstack.org/496728
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=d041569ad540e9eb57eeaf5b20df4c8bde8b189f
Submitter: Jenkins
Branch: stable/pike

commit d041569ad540e9eb57eeaf5b20df4c8bde8b189f
Author: Dan Smith <email address hidden>
Date: Mon Aug 21 15:44:42 2017 -0700

    Remove source node allocation after live migration completes

    This is done in a similar way to evacuation and shelve offload
    to avoid further mingling of new-style allocation management
    code with existing resource tracker code (soon to be removed).

    Closes-Bug: #1712045
    Change-Id: I6afd69166704e45d983b8b06a32a2799fb82b58a
    (cherry picked from commit 72728ed01fe5d568855ad92596740a2da81169c4)

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

This issue was fixed in the openstack/nova 16.0.0.0rc2 release candidate.

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

Reviewed: https://review.openstack.org/496202
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=633ebd1e9b057f0614961d79391987b51bb5d5a0
Submitter: Jenkins
Branch: master

commit 633ebd1e9b057f0614961d79391987b51bb5d5a0
Author: Lajos Katona <email address hidden>
Date: Tue Aug 22 12:53:07 2017 +0200

    Add functional migrate force_complete test

    This patch adds test that checkes that the resource allocation is properly
    handled during live migration force complete.

    Co-Authored-By: Dan Smith <email address hidden>
    Related-Bug: #1712045
    Change-Id: If958e64eda1260a8dd08078de2dae167c6a147bc

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (stable/pike)

Related fix proposed to branch: stable/pike
Review: https://review.openstack.org/509924

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (stable/pike)

Reviewed: https://review.openstack.org/509924
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f9ee18e90cca226b5bf90b3b26fbc8e17228f55c
Submitter: Zuul
Branch: stable/pike

commit f9ee18e90cca226b5bf90b3b26fbc8e17228f55c
Author: Lajos Katona <email address hidden>
Date: Tue Aug 22 12:53:07 2017 +0200

    Add functional migrate force_complete test

    This patch adds test that checkes that the resource allocation is properly
    handled during live migration force complete.

    Co-Authored-By: Dan Smith <email address hidden>
    Related-Bug: #1712045
    Change-Id: If958e64eda1260a8dd08078de2dae167c6a147bc
    (cherry picked from commit 633ebd1e9b057f0614961d79391987b51bb5d5a0)

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

This issue was fixed in the openstack/nova 17.0.0.0b1 development milestone.

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

Other bug subscribers

Remote bug watches

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