alarm action with senlin webhook

Bug #1808279 reported by Chiawei Xie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aodh
Invalid
Undecided
Unassigned

Bug Description

aodh version: queens

Used aodh create alarm, and alarm action was senlin cluster scale out webhook,
The webhook was:
http://10.50.2.4:8780/v1/webhooks/20d6d35b-0cb6-482e-bfd6-3fb0d943e914/trigger?V=1&count=2

Created alarm with url .

when alarm is trigger, check aodh-notifier log, got some message:

INFO aodh.notifier.rest [-]
Notifying alarm cpu-high with severity low from insufficient data to alarm with action
SplitResult(scheme=u'http', netloc=u'10.50.2.4:8780', path=u'/v1/webhooks/20d6d35b-0cb6-482e-bfd6-3fb0d943e914/trigger', query=u'V=1&count=2', fragment='')

INFO aodh.notifier.rest [-] Notifying alarm gets response: 400 Bad Request.

It looks like called webhook but got 400 status response.

But used curl command:
curl -X POST http://10.50.2.4:8780/v1/webhooks/20d6d35b-0cb6-482e-bfd6-3fb0d943e914/trigger?V=1&count=2

It worked to scale out my senlin cluster,

Why aodh called webhook failed?

Revision history for this message
Chiawei Xie (dommgifer) wrote :

Sorry, this bug was senlin and it was fixed
https://review.openstack.org/#/c/564845/

Changed in aodh:
status: New → Invalid
Chiawei Xie (dommgifer)
Changed in aodh:
status: Invalid → New
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.