Hi Stackers-<div><br></div><div>I have written a fake agent with the study from the dhcp agent.</div><div><br></div><div>The rpc agent daemon is running with the below errors.</div><div><br></div><div>But I have missed some bits of information with respect to the rpc communication.</div>
<div><br></div><div>In the log, I have the following errors.</div><div><br></div><div><div>2012-10-31 16:14:38     INFO [quantum.agent.fsl_compute_agent] Synchronizing state</div><div>2012-10-31 16:14:38    DEBUG [quantum.openstack.common.rpc.amqp] Making asynchronous call on q-plugin ...</div>
<div>2012-10-31 16:14:38    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is 28887aedcb4a469199950992e92e5710</div><div>2012-10-31 16:14:38    DEBUG [amqplib] Closed channel #1</div><div>2012-10-31 16:14:38    DEBUG [amqplib] using channel_id: 1</div>
<div>2012-10-31 16:14:38    DEBUG [amqplib] Channel open</div><div>2012-10-31 16:14:38    ERROR [quantum.agent.fsl_compute_agent] [FslComputeAgent] Unable to sync network state.</div><div>Traceback (most recent call last):</div>
<div>  File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/agent/fsl_compute_agent.py", line 91, in sync_state</div><div>    get_host_instances_info = set(self.plugin_rpc.get_host_instances_info())</div>
<div>  File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/agent/fsl_compute_agent.py", line 131, in get_host_instances_info</div><div>    topic=self.topic)</div><div>  File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/proxy.py", line 83, in call</div>
<div>    return rpc.call(context, self._get_topic(topic), msg, timeout)</div><div>  File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/__init__.py", line 102, in call</div>
<div>    return _get_impl().call(cfg.CONF, context, topic, msg, timeout)</div><div>  File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/impl_kombu.py", line 712, in call</div>
<div>    rpc_amqp.get_connection_pool(conf, Connection))</div><div>  File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/amqp.py", line 380, in call</div><div>    rv = list(rv)</div>
<div>  File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/amqp.py", line 336, in __iter__</div><div>    raise result</div><div>RemoteError: Remote error: AttributeError No such RPC function 'get_host_instances_info'</div>
<div>[u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/amqp.py", line 275, in _process_data\n    rval = self.proxy.dispatch(ctxt, version, method, **args)\n', u'  File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/dispatcher.py", line 148, in dispatch\n    raise AttributeError("No such RPC function \'%s\'" % method)\n', u"AttributeError: No such RPC function 'get_host_instances_info'\n"].</div>
</div><div><br></div><div><br></div><div><br></div><div>The error is " AttributeError No such RPC function 'get_host_instances_info' "</div><div><br></div><div>I have written the method to support the agents method, by following the DHCP agent method "get_active_networks".</div>
<div><br></div><div>The following files are modified by adding the RPC function method.</div><div><br></div><div><br></div><div><div>db/db_base_plugin_v2.py:1268:    def _get_host_instances_info(self,context,filters=None,fields=None):</div>
<div>db/fslcompute_rpc_base.py:47:    def get_host_instances_info(self, context, **kwargs):</div><div>db/fslcompute_rpc_base.py:50:        LOG.debug('[FslComputeCallbackMixin] get_host_instances_info :: Getting instances info for host %s.....', host)</div>
<div>db/fslcompute_rpc_base.py:55:        return plugin.get_host_instances_info(context, filters=filters)</div></div><div><br></div><div><br></div><div>Being a newbee for this code base, Unable to plot what is the BIT that is missing in this rpc communication.</div>
<div><br></div><div>Please help me to troubleshoot this issue.</div><div><br></div><div>Thanks in advance...</div><div><br></div><div>-- <br>Regards,<br>----------------------------------------------<br>Trinath Somanchi,<div>
+91 9866 235 130</div><br>
</div>