openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #18042
[openstack-dev] Folsom Quantum Agent :: No such RPC function
Hi-
Please help troubleshoot the issue
I have written a fake agent with the study from the dhcp agent.
The rpc agent daemon is running with the below errors.
But I have missed some bits of information with respect to the rpc
communication.
In the log, I have the following errors.
2012-10-31 16:14:38 INFO [quantum.agent.fake_compute_agent]
Synchronizing state
2012-10-31 16:14:38 DEBUG [quantum.openstack.common.rpc.amqp] Making
asynchronous call on q-plugin ...
2012-10-31 16:14:38 DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is
28887aedcb4a469199950992e92e5710
2012-10-31 16:14:38 DEBUG [amqplib] Closed channel #1
2012-10-31 16:14:38 DEBUG [amqplib] using channel_id: 1
2012-10-31 16:14:38 DEBUG [amqplib] Channel open
2012-10-31 16:14:38 ERROR [quantum.agent.fake_compute_agent]
[FakeComputeAgent] Unable to sync network state.
Traceback (most recent call last):
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
get_host_instances_info = set(self.plugin_rpc.get_host_instances_info())
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
topic=self.topic)
File
"/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/proxy.py",
line 83, in call
return rpc.call(context, self._get_topic(topic), msg, timeout)
File
"/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/__init__.py",
line 102, in call
return _get_impl().call(cfg.CONF, context, topic, msg, timeout)
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
rpc_amqp.get_connection_pool(conf, Connection))
File
"/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/amqp.py",
line 380, in call
rv = list(rv)
File
"/usr/local/lib/python2.7/dist-packages/quantum-2012.2-py2.7.egg/quantum/openstack/common/rpc/amqp.py",
line 336, in __iter__
raise result
RemoteError: Remote error: AttributeError No such RPC function
'get_host_instances_info'
[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"].
The error is " AttributeError No such RPC function
'get_host_instances_info' "
I have written the method to support the agents method, by following the
DHCP agent method "get_active_networks".
The following files are modified by adding the RPC function method.
db/db_base_plugin_v2.py:1268: def
_get_host_instances_info(self,context,filters=None,fields=None):
db/fakecompute_rpc_base.py:47: def get_host_instances_info(self,
context, **kwargs):
db/fakecompute_rpc_base.py:50: LOG.debug('[FakeComputeCallbackMixin]
get_host_instances_info :: Getting instances info for host %s.....', host)
db/fakecompute_rpc_base.py:55: return
plugin.get_host_instances_info(context, filters=filters)
Being a newbee for this code base, Unable to plot what is the BIT that is
missing in this rpc communication.
Please help me to troubleshoot this issue.
Thanks in advance...
-
Trinath
Follow ups