使用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
|
|