AlarmCombination resource repeat_actions property has no effect

Bug #1394159 reported by Eoghan Glynn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Eoghan Glynn
Juno
Fix Released
Undecided
Eoghan Glynn

Bug Description

In order to drive Heat autoscaling, the repeat_actions attribute of a Ceilometer alarm must be set to true (as the autoscaling logic requires a continuing stream of notifications that alarm remains in the target state).

In the case of a combination alarm, the value of the repeat_actions property has no effect on the alarm creation, so this attribute defaults to false on the Ceilometer side.

This occurs because the Heat AlarmCombination resource incorrectly places the repeat_actions value within the combination rule, instead of at the top-level of the alarm representation:

 {"alarm_actions": [<URL>], "type": "combination", "combination_rule": {"operator": "and", "alarm_ids": ["ALARM1_ID", "ALARM2_ID"], "repeat_actions": true}, "name": "Combination Alarm"}

instead of:

 {"alarm_actions": [<URL>], "type": "combination", "combination_rule": {"operator": "and", "alarm_ids": ["ALARM1_ID", "ALARM2_ID"]}, "repeat_actions": true, "name": "Combination Alarm"}

Eoghan Glynn (eglynn)
Changed in heat:
assignee: nobody → Eoghan Glynn (eglynn)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

Eoghan Glynn (eglynn)
tags: added: icehouse-backport-potential juno-backport-potential
Steven Hardy (shardy)
Changed in heat:
importance: Undecided → High
milestone: none → kilo-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/135576
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=02ec693a4701f3423be811a3a5de334c78744465
Submitter: Jenkins
Branch: master

commit 02ec693a4701f3423be811a3a5de334c78744465
Author: Eoghan Glynn <email address hidden>
Date: Wed Nov 19 11:52:38 2014 +0000

    Correctly set CombinationAlarm repeat_actions

    Previously, the value of the repeat_actions property has no effect on
    combination alarm creation, so this attribute defaulted to false on the
    Ceilometer side, breaking Heat autoscaling.

    Now, this attribute is set correctly as a top-level attribute on the
    alarm.

    Closes-Bug: #1394159

    Change-Id: I1335d5664e9f3f408fbe6815d6cd6fd0a75ba1b8

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

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/135870

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

Reviewed: https://review.openstack.org/135870
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=0401e75f23666612cc45f91bbb9b5efe97d56581
Submitter: Jenkins
Branch: stable/juno

commit 0401e75f23666612cc45f91bbb9b5efe97d56581
Author: Eoghan Glynn <email address hidden>
Date: Wed Nov 19 11:52:38 2014 +0000

    Correctly set CombinationAlarm repeat_actions

    Previously, the value of the repeat_actions property has no effect on
    combination alarm creation, so this attribute defaulted to false on the
    Ceilometer side, breaking Heat autoscaling.

    Now, this attribute is set correctly as a top-level attribute on the
    alarm.

    Closes-Bug: #1394159

    Change-Id: I1335d5664e9f3f408fbe6815d6cd6fd0a75ba1b8
    (cherry picked from commit 02ec693a4701f3423be811a3a5de334c78744465)

Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: kilo-1 → 2015.1.0
Zane Bitter (zaneb)
tags: added: in-stable-juno
removed: juno-backport-potential
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.