分享

NoSuchMethod Endpoint does not support RPC method test

linshenyuan00 发表于 2015-9-12 10:31:19 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 23677
使用rpc发送:
使用rabbitmq发送rpc:
出现 "NoSuchMethod Endpoint does not support RPC method test"

具体调用栈信息:

2015-09-12 09:42:45.198 13301 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on 192.168.2.212:5672
/usr/lib/python2.6/site-packages/amqp/channel.py:608: DeprecationWarning: auto_delete exchanges has been deprecated
  'auto_delete exchanges has been deprecated'))
2015-09-12 09:42:45.212 13301 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on 192.168.2.212:5672
Command failed, please check log for more info
2015-09-12 09:42:45.220 13301 CRITICAL test [req-a8e0b9d2-6b5a-4378-bcb3-1f636fb67525 None 6204b32d435748f0a4097e4cbed2d79c] RemoteError: Remote error: NoSuchMethod Endpoint does not support RPC method test
[u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply\n    incoming.message))\n', u'  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 183, in _dispatch\n    raise NoSuchMethod(method)\n', u'NoSuchMethod: Endpoint does not support RPC method test\n'].
2015-09-12 09:42:45.220 13301 TRACE test Traceback (most recent call last):
2015-09-12 09:42:45.220 13301 TRACE test   File "/usr/bin/test-manage", line 13, in <module>
2015-09-12 09:42:45.220 13301 TRACE test     sys.exit(main())
2015-09-12 09:42:45.220 13301 TRACE test   File "/usr/lib/python2.6/site-packages/test/cmd/manage.py", line 227, in main
2015-09-12 09:42:45.220 13301 TRACE test     ret = fn(*fn_args, **fn_kwargs)
2015-09-12 09:42:45.220 13301 TRACE test   File "/usr/lib/python2.6/site-packages/test/cmd/manage.py", line 115, in send_rpc
2015-09-12 09:42:45.220 13301 TRACE test     api_test.test(ctx, test, client_data)
2015-09-12 09:42:45.220 13301 TRACE test   File "/usr/lib/python2.6/site-packages/test/api/api.py", line 126, in test
2015-09-12 09:42:45.220 13301 TRACE test     client_data=client_data, request_spec=request_spec, filter_properties=request_spec)
2015-09-12 09:42:45.220 13301 TRACE test   File "/usr/lib/python2.6/site-packages/test/api/rpcapi.py", line 86, in test
2015-09-12 09:42:45.220 13301 TRACE test     cctxt.call(context, 'test', test=test, **kw)
2015-09-12 09:42:45.220 13301 TRACE test   File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/client.py", line 150, in call
2015-09-12 09:42:45.220 13301 TRACE test     wait_for_reply=True, timeout=timeout)
2015-09-12 09:42:45.220 13301 TRACE test   File "/usr/lib/python2.6/site-packages/oslo/messaging/transport.py", line 90, in _send
2015-09-12 09:42:45.220 13301 TRACE test     timeout=timeout)
2015-09-12 09:42:45.220 13301 TRACE test   File "/usr/lib/python2.6/site-packages/oslo/messaging/_drivers/amqpdriver.py", line 412, in send
2015-09-12 09:42:45.220 13301 TRACE test     return self._send(target, ctxt, message, wait_for_reply, timeout)
2015-09-12 09:42:45.220 13301 TRACE test   File "/usr/lib/python2.6/site-packages/oslo/messaging/_drivers/amqpdriver.py", line 405, in _send
2015-09-12 09:42:45.220 13301 TRACE test     raise result
2015-09-12 09:42:45.220 13301 TRACE test RemoteError: Remote error: NoSuchMethod Endpoint does not support RPC method test
2015-09-12 09:42:45.220 13301 TRACE test [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply\n    incoming.message))\n', u'  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 183, in _dispatch\n    raise NoSuchMethod(method)\n', u'NoSuchMethod: Endpoint does not support RPC method test\n'].



raise NoSuchMethod(method)\n', u'NoSuchMethod: Endpoint does not support RPC method test\n'].
这种情况 是否是配置文件有问题?
基本上是发送rpc








已有(2)人评论

跳转到指定楼层
starrycheng 发表于 2015-9-12 14:34:21
endpoint指定了吗
回复

使用道具 举报

linshenyuan00 发表于 2015-9-12 15:54:01
OK ,解决了, 其他人,照搬代码的时候,没有改动。
2个 manager 类 监听主题完全一致,导致发送的rpc消息,被其他进程消费了。
而其他人写的manager类没有 test的函数。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条