]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Revert back to 'call' for agent reports
authorGary Kotton <gkotton@redhat.com>
Fri, 22 Mar 2013 15:40:38 +0000 (15:40 +0000)
committerAkihiro MOTOKI <motoki@da.jp.nec.com>
Mon, 25 Mar 2013 01:38:17 +0000 (10:38 +0900)
Fixes bug 1159581

The logic of the agents is based on RPC call()
since the agent needs to catch an exception over RPC.

Change-Id: I6d408216ebdfd130bab2555e61febd02b521985d

quantum/agent/rpc.py

index 428dd611dd88fd57c73a424b3b3e83b5935c2ffd..fad2db8665523de3a0f205daf34606c8172bf391 100644 (file)
@@ -58,7 +58,7 @@ class PluginReportStateAPI(proxy.RpcProxy):
             topic=topic, default_version=self.BASE_RPC_API_VERSION)
 
     def report_state(self, context, agent_state):
-        return self.cast(context,
+        return self.call(context,
                          self.make_msg('report_state',
                                        agent_state={'agent_state':
                                                     agent_state},