<div dir="ltr">Dear Lingxian,<div><br></div><div>I executed '<span style="font-family:verdana,sans-serif">sudo journalctl -u devstack@aodh-listener.service | less</span>' and got this <a href="https://imgur.com/aX7jDVA">response</a>.</div><div><br></div><div>Thank you.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 7, 2019 at 6:28 PM Lingxian Kong <<a href="mailto:anlin.kong@gmail.com">anlin.kong@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">OpenStack services in DevStack are managed by systemd, so you can check aodh-listener log by running `sudo journalctl -u devstack@aodh-listener.service | less`</div><div><div dir="ltr" class="gmail-m_-5648809673901124700gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div><font face="monospace">-</font></div><div><font face="monospace, monospace" color="#666666">Best regards,<br>Lingxian Kong</font></div><div><font face="monospace, monospace" color="#666666">Catalyst Cloud</font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 7, 2019 at 2:51 PM Anmar Salih <<a href="mailto:anmar.salih1@gmail.com" target="_blank">anmar.salih1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br>Dear Lingxian,<br></div><div><br></div><div>I cloud't find aodh log file.</div><div><br></div><div>Also I did 'ps -ef | grep aodh' and <a href="https://imgur.com/UMGOKAk" target="_blank">here</a> is the response.</div><div><br></div><div>Best regards.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 5, 2019 at 6:56 PM Lingxian Kong <<a href="mailto:anlin.kong@gmail.com" target="_blank">anlin.kong@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi Anmar,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Please see my comments in-line below.</div><div><div dir="ltr" class="gmail-m_-5648809673901124700gmail-m_-9056371413890149547gmail-m_5986610123036505486gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div><font face="monospace">-</font></div><div><font face="monospace, monospace" color="#666666">Best regards,<br>Lingxian Kong</font></div><div><font face="monospace, monospace" color="#666666">Catalyst Cloud</font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 4, 2019 at 2:51 PM Anmar Salih <<a href="mailto:anmar.salih1@gmail.com" target="_blank">anmar.salih1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><font face="verdana, sans-serif">Hi Lingxian,</font><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">First of all, I would like to apologize because the email is pretty long. I listed all the steps I went through just to make sure that I did everything correctly.<br></font></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">No need to apologize, more information is always helpful to solve the problem.</div><div class="gmail_default" style="font-family:verdana,sans-serif"> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><div><font face="verdana, sans-serif">4- <span style="color:rgb(51,51,51);font-size:14px">Creating the webhook for the function by: </span><span style="background-color:rgb(204,204,204)">openstack webhook create --function 07edc434-a4b8-424a-8d3a-af253aa31bf8</span><span style="background-color:rgb(255,255,255)"> . Here is a <a href="https://imgur.com/BNRPE2G" target="_blank">screen capture</a> for the response. I tried to copy and paste the webhook_url " </span><a href="http://192.168.1.155:7070/v1/webhooks/c5608648-bd73-478f-b452-ad1eabf93328/invoke" target="_blank">http://192.168.1.155:7070/v1/webhooks/c5608648-bd73-478f-b452-ad1eabf93328/invoke</a>" into my internet browser, so I got <span style="background-color:rgb(204,204,204)">404 not found</span>. I am not sure if this is normal response or I have something wrong here.</font></div></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Like Gaetan said, the webhook is supposed to be invoked by http POST.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><div><font face="verdana, sans-serif">9- Checking aodh alarm history by <span style="background-color:rgb(204,204,204)">aodh alarm-history show ea16edb9-2000-471b-88e5-46f54208995e -f yaml</span> . So I got this <a href="https://imgur.com/catMfYL" target="_blank">response</a></font></div><div><br></div><div><font face="verdana, sans-serif">10- Last step is to check the function execution in qinling and here is the <a href="https://imgur.com/tV9yPPc" target="_blank">response</a>. (empty bracket). I am not sure what is the problem.</font></div></div></div></div></blockquote><div><span style="font-family:verdana,sans-serif"><br></span></div><div><span style="font-family:verdana,sans-serif"><span class="gmail_default" style="font-family:verdana,sans-serif">Yeah, from the output of alarm history, the alarm is not triggered, as a result, there won't be execution created by the webhook.</span></span></div><div><span style="font-family:verdana,sans-serif"><span class="gmail_default" style="font-family:verdana,sans-serif"><br></span></span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif">Seems like the aodh-listener didn't receive the message or the message was ignored. Could you paste the aodh-listener log but make sure:</span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif"><br></span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif">1. `</span><span style="font-family:verdana,sans-serif">debug = True</span><span style="font-family:verdana,sans-serif">`</span><span class="gmail_default" style="font-family:verdana,sans-serif"> in </span><span style="font-family:verdana,sans-serif">/etc/aodh/aodh.conf</span><span style="font-family:verdana,sans-serif"></span><span class="gmail_default" style="font-family:verdana,sans-serif"></span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif">2. Trigger the python script again</span></div><div><span style="font-family:verdana,sans-serif"><span class="gmail_default" style="font-family:verdana,sans-serif"></span></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>