Thanks gordon!! that explains why I can't trace the event since I have
multi notification agents.

On Thu, Apr 20, 2017 at 8:48 PM, gordon chung <g...@live.ca> wrote:

>
>
> On 20/04/17 01:46 AM, Hui Xiang wrote:
> > And yes I have known that ceilometer notification agent will listen for
> > the notification topics, but my question is which file/class will do it.
> > When I am debugging the code, at the first time when the event send out
> > to ceilometer exchange notification topic, EventsNotificationEndpoint
> >  in event/endpoint.py will handle it, however, when I send the same
> > event again, with log/pdb enabled, the event is not processed in
> > EventsNotificationEndpoint any more, and I can't find where it is done.
> > It looks so weird or maybe that is by design for some reason? The
> > behavior is same with/without definition in event_definition.yaml
>
> this listener[1] is loading EventsNotificationEndpoint. if you look at
> EventsNotificationEndpoint, you can see it picks up stuff on .info and
> .error topics and normalises them to Event obj.
>
> i'm assuming you're using oslo.messaging to push to queue as well. i
> don't think the system works if you are pushing your own format to queue.
>
>
> >
> > So I wonder how is different for the workflow by sending same events
> twice.
>
> there is no difference. only difference is a different agent might be
> handling it (if you have multiple notification agents)
>
> [1]
> https://github.com/openstack/ceilometer/blob/stable/mitaka/
> ceilometer/notification.py#L242-L245
>
> --
> gord
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to