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

Nader Lahouti nader.lahouti at gmail.com
Fri Nov 6 06:35:29 UTC 2015


Thanks Gord for the explanation.

Nader.

On Thu, Nov 5, 2015 at 11:49 AM, gord chung <gord at live.ca> wrote:

> my understanding is that if you are calling stop()/wait() your intention
> is to shut down the listener. if you intend on keeping an active consumer
> on the queue, you shouldn't be calling either stop() or wait(), just start.
>
>
> On 05/11/2015 2:07 PM, Nader Lahouti wrote:
>
>
> Thanks for the pointer, I'll look into it. But one question, by calling
> stop() and then wait(), does it mean the application has to call start()
> again after the wait()? to process more messages?
>
> I am also using
> http://docs.openstack.org/developer/oslo.messaging/server.html for the
> RPC server
> Does it mean there has to be stop() and then wait() there as well?
>
>
> Thanks,
> Nader.
>
>
>
> On Thu, Nov 5, 2015 at 10:19 AM, gord chung <gord at live.ca> wrote:
>
>>
>>
>> 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
>>
>>
>>
>> __________________________________________________________________________
>> 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
>>
>
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribehttp://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> --
> gord
>
>
> __________________________________________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151105/3b842a21/attachment.html>


More information about the OpenStack-dev mailing list