From 6b6633521c57422dfcdd1c0fbd8004c01bbe99cc Mon Sep 17 00:00:00 2001 From: Dan Wendlandt Date: Mon, 12 Dec 2011 10:34:33 -0800 Subject: 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 --- nova/tests/test_compute.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nova/tests') diff --git a/nova/tests/test_compute.py b/nova/tests/test_compute.py index e6167dc51..4f49eb53b 100644 --- a/nova/tests/test_compute.py +++ b/nova/tests/test_compute.py @@ -1022,6 +1022,8 @@ class ComputeTestCase(BaseTestCase): rpc.call(c, db.queue_get_for(c, FLAGS.compute_topic, dest), {"method": "post_live_migration_at_destination", "args": {'instance_id': i_ref['id'], 'block_migration': False}}) + self.mox.StubOutWithMock(self.compute.driver, 'unplug_vifs') + self.compute.driver.unplug_vifs(i_ref, []) # start test self.mox.ReplayAll() -- cgit