<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=36%><font size=1 face="sans-serif"><b>"Afek, Ifat (Nokia
- IL)" <ifat.afek@nokia.com></b> </font>
<p><font size=1 face="sans-serif">2016-10-19 15:21</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">请答复 给<br>
"OpenStack Development Mailing List \(not for usage questions\)"
<openstack-dev@lists.openstack.org></font></div></table>
<br>
<td width=63%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">收件人</font></div>
<td><font size=1 face="sans-serif">"OpenStack Development Mailing
List (not for usage questions)" <openstack-dev@lists.openstack.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">抄送</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">主题</font></div>
<td><font size=1 face="sans-serif">Re: [openstack-dev] [vitrage][aodh]
about aodh notifier to create a event alarm</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3 face="Calibri"><b>From: </b>"</font><a href=mailto:dong.wenjuan@zte.com.cn><font size=3 color=blue face="Calibri"><u>dong.wenjuan@zte.com.cn</u></font></a><font size=3 face="Calibri">"</font>
<br><font size=3 face="Calibri"><b>Date: </b>Wednesday, 19 October 2016
at 09:21</font>
<br><font size=2 face="sans-serif"><br>
The BP of aodh-message-bus-notifications[1] was blocked as Aodh message
bus notification</font><font size=3 face="Calibri">. </font><font size=2 face="sans-serif"><br>
As the discuession of Vitrage and Aodh in etherpad[2], only the Aodh alarm_deletion
notification is missing.<br>
I proposed a patch to add the Aodh alarm_deletion notification.[3]<br>
Please help me to review this patch.</font><font size=2 face="Calibri">
</font><font size=2 face="sans-serif"><br>
Do the alarm.creation, alarm.state_transition and alarm.deletion satisfy
the Vitrage requirement?<br>
I'd like to help to implement the aodh-message-bus-notifications BP if
there is nobody interest in it.</font>
<br>
<br><font size=2 face="Calibri">This is more complex. Aodh has a mechanism
for registering a URL to be notified when the state of a specific alarm
is changed. </font>
<br><font size=2 face="Calibri">Vitrage asked for something else - a notification
whenever *any* alarm state is changed. In Vitrage we don’t want to register
to each and every Aodh alarm separately, so we prefer to get the notifications
for all changes on the message bus (as we do with other OpenStack projects).
In addition, there is currently no notification about a newly created alarm,
so even if we register a URL on each alarm we will not be able to register
it on the new alarms. </font>
<br>
<br><font size=2 face="Calibri">[dwj]:  If i understand correctly,
Aodh already support a notification whenever *any* alarm state is changed.</font>
<br><font size=2 face="Calibri">           
  See </font><a href=https://github.com/openstack/aodh/blob/master/aodh/evaluator/__init__.py#L107><font size=1 color=blue face="Arial"><u>https://github.com/openstack/aodh/blob/master/aodh/evaluator/__init__.py#L107</u></font></a><font size=2 face="sans-serif">.</font>
<br><font size=2 face="sans-serif">      We only need to
config the vitrage_notifications topics in Aodh then Vitrage can get the
notifications from Aodh.</font>
<br><font size=2 face="sans-serif">      Let me know if
i miss something.</font>
<br>
<br>
<br><font size=2 face="sans-serif">About the Aodh custon alarm</font><font size=3 face="Calibri">:<br>
What about the alarm type as `prompt` or something else like this, which
means the alarm <br>
is fired with no evaluation. And the metedata include the `source_id` means
which source<br>
the alarm is on?</font><font size=2 face="Calibri"> </font>
<br>
<br><font size=2 face="Calibri">This is more or less what we had in mind.
Be able to control the state change externally + add metadata to the alarm
(resource_id and optimally other information).</font>
<br>
<br><font size=2 face="sans-serif"><br>
[1]</font><a href="https://blueprints.launchpad.net/vitrage/+spec/aodh-message-bus-notifications"><font size=2 color=blue face="sans-serif"><u>https://blueprints.launchpad.net/vitrage/+spec/aodh-message-bus-notifications</u></font></a><font size=2 face="sans-serif"><br>
[2]</font><a href="https://etherpad.openstack.org/p/newton-telemetry-vitrage"><font size=2 color=blue face="sans-serif"><u>https://etherpad.openstack.org/p/newton-telemetry-vitrage</u></font></a><font size=2 face="sans-serif"><br>
[3]</font><a href=https://review.openstack.org/#/c/387754/><font size=2 color=blue face="sans-serif"><u>https://review.openstack.org/#/c/387754/</u></font></a><font size=2 face="Calibri"><br>
</font>
<br>
<br>
<br><font size=2><tt>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br>
</tt></font>
<br>