[openstack-dev] [oslo][rabbitmq] RPC demo code no response?

Jay Pipes jaypipes at gmail.com
Fri Jun 23 13:31:34 UTC 2017


You're using the eventlet executor and time.sleep(1) but not 
monkey-patching your server for eventlet.

Try adding:

import eventlet
eventlet.monkey_patch()

Above your other imports in the server file.

Best,
-jay

On 06/23/2017 02:58 AM, zhi wrote:
> Hi, all.
> 
>      Recently, I do some research about RPC by using oslo-messaging. I 
> write some demo code about RPC server and RPC client by following here 
> [1]. And the demo codes locate here[2].
> 
>      I think there is something wrong about these codes. The server code 
> doesn't print response message when I run both the server code and the 
> client code. And my oslo message version is oslo.messaging==4.6.1.
> 
>      Could someone give me some advice about that?
> 
>      Thanks a lot. ;-)
> 
> 
> 
> [1].https://docs.openstack.org/developer/oslo.messaging/server.html
> https://docs.openstack.org/developer/oslo.messaging/client.html
> 
> [2].http://paste.openstack.org/show/613472/
> 
> 
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 



More information about the OpenStack-dev mailing list