[openstack-dev] [oslo_messaging] Regarding " WARNING [oslo_messaging.server] wait() should have been called after stop() as wait() ...

gord chung gord at live.ca
Thu Nov 5 18:19:14 UTC 2015



On 05/11/2015 1:06 PM, Nader Lahouti wrote:
> Hi Doug,
>
> I have an app that listens to notifications and used the info provided in
> http://docs.openstack.org/developer/oslo.messaging/notification_listener.html
>
>
> Basically I create
> 1. NotificationEndpoints(object):
> https://github.com/openstack/networking-cisco/blob/master/networking_cisco/apps/saf/common/rpc.py#L89
> 2. NotifcationListener(object):
> https://github.com/openstack/networking-cisco/blob/master/networking_cisco/apps/saf/common/rpc.py#L100
> 3. and call start() and  then wait()

the correct usage is to call stop() before wait()[1]. for reference on 
how to use listeners, you can see Ceilometer[2]

[1]http://docs.openstack.org/developer/oslo.messaging/notification_listener.html
[2] 
https://github.com/openstack/ceilometer/blob/master/ceilometer/utils.py#L250

-- 
gord




More information about the OpenStack-dev mailing list