summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-10-26 16:54:09 -0400
committerRussell Bryant <rbryant@redhat.com>2012-10-26 16:54:09 -0400
commit0fce37b2988aff8266afb53015d85f32424643b5 (patch)
tree8796ba8fa14e66faca979d8e1dd04baddb8b9b3f
parentfd44e9bdc0669e9d98a381889397bb3f61e65517 (diff)
Fix rpcapi version for new methods.
Two methods were recently added to the network rpcapi in version 1.1. Properly require that the manager side implement version 1.1 to accept rpc messages for these methods. Change-Id: I7257301a150889bc3d643197bf1e5e9a656b1d9c
-rw-r--r--nova/network/rpcapi.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/network/rpcapi.py b/nova/network/rpcapi.py
index 4d401efdb..ffeddf316 100644
--- a/nova/network/rpcapi.py
+++ b/nova/network/rpcapi.py
@@ -269,7 +269,8 @@ class NetworkAPI(rpc_proxy.RpcProxy):
return self.call(ctxt, self.make_msg('migrate_instance_start',
instance_uuid=instance_uuid,
floating_addresses=floating_addresses),
- topic=rpc.queue_get_for(ctxt, self.topic, host))
+ topic=rpc.queue_get_for(ctxt, self.topic, host),
+ version='1.1')
def migrate_instance_finish(self, ctxt, instance_uuid,
floating_addresses, dest):
@@ -277,4 +278,5 @@ class NetworkAPI(rpc_proxy.RpcProxy):
instance_uuid=instance_uuid,
floating_addresses=floating_addresses,
host=dest),
- topic=rpc.queue_get_for(ctxt, self.topic, dest))
+ topic=rpc.queue_get_for(ctxt, self.topic, dest),
+ version='1.1')