I'd suggest posting a diff or pushing your changes to a publicly accessible repo to help people understand the changes you made. <div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 31, 2012 at 10:43 AM, Trinath Somanchi <span dir="ltr"><<a href="mailto:trinath.somanchi@gmail.com" target="_blank">trinath.somanchi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi-<div><br></div><div>Can any one help me troubleshooting this issue...</div><div><br></div><div>Thanks in advance.</div>
<div><br></div><div>-</div><div>Trinath</div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">
On Wed, Oct 31, 2012 at 9:16 PM, Trinath Somanchi <span dir="ltr"><<a href="mailto:trinath.somanchi@gmail.com" target="_blank">trinath.somanchi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font face="arial, sans-serif">Hi-</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Please help troubleshoot the issue</font></div><div><font face="arial, sans-serif"><br>
</font></div><div><font face="arial, sans-serif">I have written a fake agent with the study from the dhcp agent.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">The rpc agent daemon is running with the below errors.</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">But I have missed some bits of information with respect to the rpc communication.</font></div><div><font face="arial, sans-serif"><br>
</font></div><div><font face="arial, sans-serif">In the log, I have the following errors.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">2012-10-31 16:14:38 INFO [quantum.agent.fake_compute_agent] Synchronizing state</font></div>
<div><font face="arial, sans-serif">2012-10-31 16:14:38 DEBUG [quantum.openstack.common.rpc.amqp] Making asynchronous call on q-plugin ...</font></div><div><font face="arial, sans-serif">2012-10-31 16:14:38 DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is 28887aedcb4a469199950992e92e5710</font></div>
<div><font face="arial, sans-serif">2012-10-31 16:14:38 DEBUG [amqplib] Closed channel #1</font></div><div><font face="arial, sans-serif">2012-10-31 16:14:38 DEBUG [amqplib] using channel_id: 1</font></div><div><font face="arial, sans-serif">2012-10-31 16:14:38 DEBUG [amqplib] Channel open</font></div>
<div><font face="arial, sans-serif">2012-10-31 16:14:38 ERROR [quantum.agent.fake_compute_agent] [FakeComputeAgent] Unable to sync network state.</font></div><div><font face="arial, sans-serif">Traceback (most recent call last):</font></div>
<div><font face="arial, sans-serif"> File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/agent/fake_compute_agent.py", line 91, in sync_state</font></div><div><font face="arial, sans-serif"> get_host_instances_info = set(self.plugin_rpc.get_host_instances_info())</font></div>
<div><font face="arial, sans-serif"> File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/agent/fake_compute_agent.py", line 131, in get_host_instances_info</font></div><div><font face="arial, sans-serif"> topic=self.topic)</font></div>
<div><font face="arial, sans-serif"> File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/proxy.py", line 83, in call</font></div><div><font face="arial, sans-serif"> return rpc.call(context, self._get_topic(topic), msg, timeout)</font></div>
<div><font face="arial, sans-serif"> File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/__init__.py", line 102, in call</font></div><div><font face="arial, sans-serif"> return _get_impl().call(cfg.CONF, context, topic, msg, timeout)</font></div>
<div><font face="arial, sans-serif"> 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</font></div><div><font face="arial, sans-serif"> rpc_amqp.get_connection_pool(conf, Connection))</font></div>
<div><font face="arial, sans-serif"> File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/amqp.py", line 380, in call</font></div><div><font face="arial, sans-serif"> rv = list(rv)</font></div>
<div><font face="arial, sans-serif"> File "/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/amqp.py", line 336, in __iter__</font></div><div><font face="arial, sans-serif"> raise result</font></div>
<div><font face="arial, sans-serif">RemoteError: Remote error: AttributeError No such RPC function 'get_host_instances_info'</font></div><div><font face="arial, sans-serif">[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"].</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">The error is " AttributeError No such RPC function 'get_host_instances_info' "</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">I have written the method to support the agents method, by following the DHCP agent method "get_active_networks".</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">The following files are modified by adding the RPC function method.</font></div><div><font face="arial, sans-serif"><br></font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">db/db_base_plugin_v2.py:1268: def _get_host_instances_info(self,context,filters=None,fields=None):</font></div><div><font face="arial, sans-serif">db/fakecompute_rpc_base.py:47: def get_host_instances_info(self, context, **kwargs):</font></div>
<div><font face="arial, sans-serif">db/fakecompute_rpc_base.py:50: LOG.debug('[FakeComputeCallbackMixin] get_host_instances_info :: Getting instances info for host %s.....', host)</font></div><div><font face="arial, sans-serif">db/fakecompute_rpc_base.py:55: return plugin.get_host_instances_info(context, filters=filters)</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Being a newbee for this code base, Unable to plot what is the BIT that is missing in this rpc communication.</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Please help me to troubleshoot this issue.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Thanks in advance...</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">-</font></div><div><font face="arial, sans-serif">Trinath</font></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Regards,<br>----------------------------------------------<br>Trinath Somanchi,<div><a href="tel:%2B91%209866%20235%20130" value="+919866235130" target="_blank">+91 9866 235 130</a></div>
<br>
</font></span></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Dan Wendlandt <div>Nicira, Inc: <a href="http://www.nicira.com" target="_blank">www.nicira.com</a><br><div>twitter: danwendlandt<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~<br></div></div><br>
</div>