<div dir="ltr">Thanks gordon!! that explains why I can't trace the event since I have multi notification agents.<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 8:48 PM, gordon chung <span dir="ltr"><<a href="mailto:gord@live.ca" target="_blank">gord@live.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 20/04/17 01:46 AM, Hui Xiang wrote:<br>
> And yes I have known that ceilometer notification agent will listen for<br>
> the notification topics, but my question is which file/class will do it.<br>
> When I am debugging the code, at the first time when the event send out<br>
> to ceilometer exchange notification topic, EventsNotificationEndpoint<br>
>  in event/endpoint.py will handle it, however, when I send the same<br>
> event again, with log/pdb enabled, the event is not processed in<br>
> EventsNotificationEndpoint any more, and I can't find where it is done.<br>
> It looks so weird or maybe that is by design for some reason? The<br>
> behavior is same with/without definition in event_definition.yaml<br>
<br>
</span>this listener[1] is loading EventsNotificationEndpoint. if you look at<br>
EventsNotificationEndpoint, you can see it picks up stuff on .info and<br>
.error topics and normalises them to Event obj.<br>
<br>
i'm assuming you're using oslo.messaging to push to queue as well. i<br>
don't think the system works if you are pushing your own format to queue.<br>
<span class=""><br>
<br>
><br>
> So I wonder how is different for the workflow by sending same events twice.<br>
<br>
</span>there is no difference. only difference is a different agent might be<br>
handling it (if you have multiple notification agents)<br>
<br>
[1]<br>
<a href="https://github.com/openstack/ceilometer/blob/stable/mitaka/ceilometer/notification.py#L242-L245" rel="noreferrer" target="_blank">https://github.com/openstack/<wbr>ceilometer/blob/stable/mitaka/<wbr>ceilometer/notification.py#<wbr>L242-L245</a><br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
gord<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>