From bfc335f0f43b868f75fcd9d1e148bb6fca397b83 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 25 Jul 2012 16:48:55 -0400 Subject: Send a full instance via rpc for confirm_resize. Change the confirm_resize method of the compute rpc API to take a full instance over rpc instead of just the instance UUID. This cuts down on database access needed by nova-compute. Part of blueprint no-db-messaging. Change-Id: I58313564b240c6b55de1849efc2d5d9031a1c97c --- nova/tests/compute/test_rpcapi.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'nova/tests') diff --git a/nova/tests/compute/test_rpcapi.py b/nova/tests/compute/test_rpcapi.py index 9be465ca9..4ef6254fd 100644 --- a/nova/tests/compute/test_rpcapi.py +++ b/nova/tests/compute/test_rpcapi.py @@ -51,7 +51,8 @@ class ComputeRpcAPITestCase(test.TestCase): methods_with_instance = [ 'add_fixed_ip_to_instance', 'attach_volume', 'check_can_live_migrate_destination', - 'check_can_live_migrate_source', 'get_console_output', + 'check_can_live_migrate_source', 'confirm_resize', + 'get_console_output', 'pause_instance', 'reboot_instance', 'suspend_instance', 'unpause_instance' ] @@ -145,11 +146,13 @@ class ComputeRpcAPITestCase(test.TestCase): def test_confirm_resize_cast(self): self._test_compute_api('confirm_resize', 'cast', - instance=self.fake_instance, migration_id='id', host='host') + instance=self.fake_instance, migration_id='id', host='host', + version='1.12') def test_confirm_resize_call(self): self._test_compute_api('confirm_resize', 'call', - instance=self.fake_instance, migration_id='id', host='host') + instance=self.fake_instance, migration_id='id', host='host', + version='1.12') def test_detach_volume(self): self._test_compute_api('detach_volume', 'cast', -- cgit