From d96102b6251d489574132104f8ad9db110286415 Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Wed, 31 Oct 2012 10:22:46 -0500 Subject: Add rxtx_factor to network migration logic Currently, when an instance is migrated from one host to another, the only action the network API is able to take is moving floating IP addresses. We also need to be able to update the rxtx_factor value to update QoS settings. This change makes sure that the network APIs will be passed the rxtx_factor value during a migration. Change-Id: If4e1e96b84ee082c2d277c3d91da7df0325fc1ff --- nova/tests/network/test_manager.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'nova/tests') diff --git a/nova/tests/network/test_manager.py b/nova/tests/network/test_manager.py index 952f1ba33..77fccd904 100644 --- a/nova/tests/network/test_manager.py +++ b/nova/tests/network/test_manager.py @@ -1667,7 +1667,9 @@ class FloatingIPTestCase(test.TestCase): self.mox.ReplayAll() floating_ip_addresses = ['172.24.4.23', '172.24.4.24', '172.24.4.25'] self.network.migrate_instance_start(self.context, FAKEUUID, - floating_ip_addresses) + 3, self.project_id, + 'fake_source', 'fake_dest', + floating_ip_addresses) self.assertEqual(called['count'], 2) @@ -1703,8 +1705,9 @@ class FloatingIPTestCase(test.TestCase): self.mox.ReplayAll() floating_ip_addresses = ['172.24.4.23', '172.24.4.24', '172.24.4.25'] self.network.migrate_instance_finish(self.context, FAKEUUID, - floating_ip_addresses, - 'fake_dest') + 3, self.project_id, + 'fake_source', 'fake_dest', + floating_ip_addresses) self.assertEqual(called['count'], 2) -- cgit