Merge "Setup and teardown networks during migration"
This commit is contained in:
@@ -1387,6 +1387,10 @@ class ComputeTestCase(BaseTestCase):
|
||||
'disk': None}
|
||||
}).AndRaise(rpc.common.RemoteError('', '', ''))
|
||||
# mocks for rollback
|
||||
rpc.call(c, 'network', {'method': 'setup_networks_on_host',
|
||||
'args': {'instance_id': instance_id,
|
||||
'host': self.compute.host,
|
||||
'teardown': False}})
|
||||
rpc.call(c, topic, {"method": "remove_volume_connection",
|
||||
"args": {'instance_id': instance_id,
|
||||
'volume_id': volume_id}})
|
||||
@@ -1455,6 +1459,10 @@ class ComputeTestCase(BaseTestCase):
|
||||
self.mox.StubOutWithMock(self.compute.driver, 'unfilter_instance')
|
||||
self.compute.driver.unfilter_instance(i_ref, [])
|
||||
self.mox.StubOutWithMock(rpc, 'call')
|
||||
rpc.call(c, 'network', {'method': 'setup_networks_on_host',
|
||||
'args': {'instance_id': instance_id,
|
||||
'host': self.compute.host,
|
||||
'teardown': True}})
|
||||
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}})
|
||||
|
||||
@@ -838,7 +838,7 @@ class VlanNetworkTestCase(test.TestCase):
|
||||
# Clean up the ip addresses
|
||||
self.network.disassociate_floating_ip(context1, float_addr)
|
||||
self.network.deallocate_floating_ip(context1, float_addr)
|
||||
self.network.deallocate_fixed_ip(context1, fix_addr)
|
||||
self.network.deallocate_fixed_ip(context1, fix_addr, 'fake')
|
||||
db.floating_ip_destroy(context1.elevated(), float_addr)
|
||||
db.fixed_ip_disassociate(context1.elevated(), fix_addr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user