notifier/zaqar.py use old auth_opts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aodh |
Fix Released
|
Undecided
|
yuqian |
Bug Description
Use zaqar notifier, this notifier posts alarm notifications either to a Zaqar subscription or to an existing Zaqar queue with a pre-signed URL.
You can use these commonds to show allocation:
# aodh alarm list
+------
| alarm_id | type | name | state | severity | enabled |
+------
| 9e980c0d-135d- | gnocchi_resourc | demo-aodh-cpu- | alarm | low | True |
| 42c6-ad2e- | es_threshold | util-alarm | | | |
| a9e9e95d06a2 | | | | | |
+------
# aodh alarm show ******
+------
| Field | Value |
+------
| ok_actions | [u'zaqar:
| alarm_actions | [u'zaqar:
+------
# openstack subscription list test_queue
+------
| ID | Subscriber | TTL | Options |
+------
| 594887d2b55f734
| 594a19e2b55f734
+------
Then /var/log/
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar [-] Unknown error occurred; Failed to post message to Zaqar queue
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar Traceback (most recent call last):
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar File "/usr/lib/
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar zaqar_client = self.client
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar File "/usr/lib/
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar self._zclient = self.get_
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar File "/usr/lib/
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar 'os_username': conf.os_username,
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar File "/usr/lib/
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar return self._conf.
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar File "/usr/lib/
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar value = self._do_get(name, group, namespace)
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar File "/usr/lib/
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar info = self._get_
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar File "/usr/lib/
2017-06-21 09:10:31.695 5502 ERROR aodh.notifier.zaqar raise NoSuchOptError(
Changed in aodh: | |
assignee: | nobody → yuqian (roger-yu) |
Fix proposed to branch: master /review. openstack. org/493425
Review: https:/