live_migration does not perform vif unplugging

Bug #899767 reported by dan wendlandt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
dan wendlandt
neutron
Fix Released
High
dan wendlandt

Bug Description

Migrated a VM with the command:

sudo nova-manage vm live_migration i-00000011 host2

If we are migrating from host1 to host2, the network devices representing the VM VIF on host1 are not properly destroyed.
This ends up confusing Quantum, as the VM appears to both be in the old and new location simultaneously, leading to incorrect behavior.

Seems like the underlying problem is that vif unplugging usually happens in the driver.destroy() call in the virt layer. However, in the case of live migration (i.e., non block migration), destroy is not called, meaning we have to unplug the vifs explicitly.

dan wendlandt (danwent)
Changed in nova:
assignee: nobody → dan wendlandt (danwent)
dan wendlandt (danwent)
Changed in quantum:
milestone: none → essex-2
assignee: nobody → dan wendlandt (danwent)
importance: Undecided → High
status: New → In Progress
Changed in nova:
status: New → In Progress
Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-2
Revision history for this message
dan wendlandt (danwent) wrote :

Fix available for review: https://review.openstack.org/#change,2253,patchset=1

(isn't jenkins supposed to do this automatically? perhaps my syntax in the commit message is wrong?)

Revision history for this message
Thierry Carrez (ttx) wrote :

That's bug 860779 -- I'm on it :)

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
dan wendlandt (danwent)
Changed in quantum:
status: In Progress → Fix Committed
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/2253
Committed: http://github.com/openstack/nova/commit/6b6633521c57422dfcdd1c0fbd8004c01bbe99cc
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 6b6633521c57422dfcdd1c0fbd8004c01bbe99cc
Author: Dan Wendlandt <email address hidden>
Date: Mon Dec 12 10:34:33 2011 -0800

    bug 899767: fix vif-plugging with live migration

    Expose vif_unplug method in virt layer, as the compute manager has to
    explicitly call it on during live migration, so that network devices are
    torn down even if the disk image is not.

    Change-Id: Iae88c72f4fd2c7c097c23ef9e5f8fd392052f73e

dan wendlandt (danwent)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
dan wendlandt (danwent)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-2 → 2012.1
Thierry Carrez (ttx)
Changed in quantum:
milestone: essex-2 → 2012.1
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.