diff options
author | Russell Bryant <rbryant@redhat.com> | 2012-08-03 22:50:21 -0400 |
---|---|---|
committer | Russell Bryant <rbryant@redhat.com> | 2012-08-06 15:09:33 -0400 |
commit | 98f753d4c5e8bdf31716a7452f89930a51b3edf5 (patch) | |
tree | 1bf25777e0c38629dd9dc8017dd124c290acf86b /nova/tests/scheduler/test_rpcapi.py | |
parent | 7677354e3ba0954158d33feef3667b0fe7dcc2a3 (diff) | |
download | nova-98f753d4c5e8bdf31716a7452f89930a51b3edf5.tar.gz nova-98f753d4c5e8bdf31716a7452f89930a51b3edf5.tar.xz nova-98f753d4c5e8bdf31716a7452f89930a51b3edf5.zip |
Send full instance to scheduler live_migration.
Remove the instance_id parameter and send a full instance dict to the
live_migration method of the scheduler manager. This cuts down on some
unnecessary database access in the scheduler.
Part of blueprint no-db-messaging.
Change-Id: Ic45105300c967c760559df2225e59e515cea8b7b
Diffstat (limited to 'nova/tests/scheduler/test_rpcapi.py')
-rw-r--r-- | nova/tests/scheduler/test_rpcapi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/tests/scheduler/test_rpcapi.py b/nova/tests/scheduler/test_rpcapi.py index 20874c365..ff17d9183 100644 --- a/nova/tests/scheduler/test_rpcapi.py +++ b/nova/tests/scheduler/test_rpcapi.py @@ -95,7 +95,8 @@ class SchedulerRpcAPITestCase(test.TestCase): self._test_scheduler_api('live_migration', rpc_method='call', block_migration='fake_block_migration', disk_over_commit='fake_disk_over_commit', - instance_id='fake_id', dest='fake_dest', topic='fake_topic') + instance='fake_instance', dest='fake_dest', topic='fake_topic', + version='1.3') def test_update_service_capabilities(self): self._test_scheduler_api('update_service_capabilities', |