Failed to evaluate combination alarms

Bug #1511252 reported by Yurii Prokulevych
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aodh
Fix Released
High
Mehdi Abaakouk

Bug Description

Combination alarms ain't evaluated with next message :

2015-10-29 07:54:14.616 1807 DEBUG aodh.evaluator [req-b5d96f1e-7618-4bb9-aed5-7296724a23a9 - - - - -] evaluating alarm b0788203-9647-4622-98d1-b6f610ce94ce _evaluate_alarm /usr/lib/python2.7/site-packages/aodh$evaluator/__init__.py:220
2015-10-29 07:54:14.616 1807 ERROR aodh.evaluator [req-b5d96f1e-7618-4bb9-aed5-7296724a23a9 - - - - -] Failed to evaluate alarm b0788203-9647-4622-98d1-b6f610ce94ce
2015-10-29 07:54:14.616 1807 ERROR aodh.evaluator Traceback (most recent call last):
2015-10-29 07:54:14.616 1807 ERROR aodh.evaluator File "/usr/lib/python2.7/site-packages/aodh/evaluator/__init__.py", line 222, in _evaluate_alarm
2015-10-29 07:54:14.616 1807 ERROR aodh.evaluator self.evaluators[alarm.type].obj.evaluate(alarm)
2015-10-29 07:54:14.616 1807 ERROR aodh.evaluator File "/usr/lib/python2.7/site-packages/aodh/evaluator/combination.py", line 109, in evaluate
2015-10-29 07:54:14.616 1807 ERROR aodh.evaluator moves.map(self._get_alarm_state, alarm.rule['alarm_ids']))
2015-10-29 07:54:14.616 1807 ERROR aodh.evaluator File "/usr/lib/python2.7/site-packages/aodh/evaluator/combination.py", line 38, in _get_alarm_state
2015-10-29 07:54:14.616 1807 ERROR aodh.evaluator return alarm.state
2015-10-29 07:54:14.616 1807 ERROR aodh.evaluator AttributeError: 'generator' object has no attribute 'state'
2015-10-29 07:54:14.616 1807 ERROR aodh.evaluator

Threshold alarms are properly evaluated.

Packages:

openstack-aodh-compat-1.0.1-dev38.el7.centos.noarch
openstack-aodh-notifier-1.0.1-dev38.el7.centos.noarch
openstack-aodh-common-1.0.1-dev38.el7.centos.noarch
openstack-aodh-expirer-1.0.1-dev38.el7.centos.noarch
python-aodh-1.0.1-dev38.el7.centos.noarch
openstack-aodh-api-1.0.1-dev38.el7.centos.noarch
openstack-aodh-evaluator-1.0.1-dev38.el7.centos.noarch
openstack-aodh-listener-1.0.1-dev38.el7.centos.noarch

Regards,
Yurii

Mehdi Abaakouk (sileht)
Changed in aodh:
assignee: nobody → Mehdi Abaakouk (sileht)
status: New → Confirmed
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to aodh (master)

Fix proposed to branch: master
Review: https://review.openstack.org/242423

Changed in aodh:
status: Confirmed → In Progress
Mehdi Abaakouk (sileht)
tags: added: liberty-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to aodh (master)

Reviewed: https://review.openstack.org/242423
Committed: https://git.openstack.org/cgit/openstack/aodh/commit/?id=5fa8e4293c53948361da18fc1fee65219e8e50ee
Submitter: Jenkins
Branch: master

commit 5fa8e4293c53948361da18fc1fee65219e8e50ee
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Nov 6 11:17:56 2015 +0100

    Fix combination alarms

    The combination are not evaluated correctly.
    This change fixes that.

    Closes-bug: #1511252

    Change-Id: I7f9e6dd46a330b8d9374ca59655fc67e3ef2332a

Changed in aodh:
status: In Progress → Fix Committed
Changed in aodh:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to aodh (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/275809

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to aodh (stable/liberty)

Reviewed: https://review.openstack.org/275809
Committed: https://git.openstack.org/cgit/openstack/aodh/commit/?id=daa461e2c702fedb70e0fbb9029cb50a1111225d
Submitter: Jenkins
Branch: stable/liberty

commit daa461e2c702fedb70e0fbb9029cb50a1111225d
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Nov 6 11:17:56 2015 +0100

    Fix combination alarms

    The combination are not evaluated correctly.
    This change fixes that.

    Closes-bug: #1511252

    Change-Id: I7f9e6dd46a330b8d9374ca59655fc67e3ef2332a
    (cherry picked from commit 5fa8e4293c53948361da18fc1fee65219e8e50ee)

tags: added: in-stable-liberty
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.