summaryrefslogtreecommitdiffstats
path: root/nova/tests/scheduler/test_rpcapi.py
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-07-12 16:08:14 -0400
committerRussell Bryant <rbryant@redhat.com>2012-07-12 16:10:37 -0400
commitb0377bc6d6d88c3e1ec68195de87a3bab194be1c (patch)
tree03e72e56e9b993e23668ab4a2ccc82ba38c65dc6 /nova/tests/scheduler/test_rpcapi.py
parent6d9a3e62b073f294330d57a12378c1f6e58bd970 (diff)
downloadnova-b0377bc6d6d88c3e1ec68195de87a3bab194be1c.tar.gz
nova-b0377bc6d6d88c3e1ec68195de87a3bab194be1c.tar.xz
nova-b0377bc6d6d88c3e1ec68195de87a3bab194be1c.zip
Change base rpc version to 1.0 in compute rpcapi.
A recent patch change the RPC_API_VERSION in compute/rpcapi.py to 1.1. This change was the right thing to do in compute/manager.py, but not compute/rpcapi.py. This patch changes it back to 1.0, and changes the code to only specify that 1.1 is required for the new method. This version in the rpcapi modules is used as the default version to set in a message. The version sent in a message is the minimum version required to be implemented on the manager side for the message to be successfully processed. For most messages, that is just 1.0. In the case of the new method, it's 1.1. This patch also changes the name of his variable in the rpcapi modules from RPC_API_VERSION to BASE_RPC_API_VERSION to help clarify this a bit more. Change-Id: I2bb4602845869bd44b39531eeb4f1e7c0c4c20c2
Diffstat (limited to 'nova/tests/scheduler/test_rpcapi.py')
-rw-r--r--nova/tests/scheduler/test_rpcapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/scheduler/test_rpcapi.py b/nova/tests/scheduler/test_rpcapi.py
index fed367c70..cfd16a08b 100644
--- a/nova/tests/scheduler/test_rpcapi.py
+++ b/nova/tests/scheduler/test_rpcapi.py
@@ -41,7 +41,7 @@ class SchedulerRpcAPITestCase(test.TestCase):
rpcapi = scheduler_rpcapi.SchedulerAPI()
expected_retval = 'foo' if method == 'call' else None
expected_msg = rpcapi.make_msg(method, **kwargs)
- expected_msg['version'] = rpcapi.RPC_API_VERSION
+ expected_msg['version'] = rpcapi.BASE_RPC_API_VERSION
if rpc_method == 'cast' and method == 'run_instance':
kwargs['call'] = False