AWS::CloudWatch::Alarm does not work with AWS::ElasticLoadBalancing::LoadBalancer

Bug #1402015 reported by Bruno Bompastor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Peter Razumovsky
Juno
Fix Released
Undecided
Unassigned

Bug Description

Hi,

So as the title says these two resources are not working properly together.

Template to test: http://paste.openstack.org/show/A7AxbcQlLFuLCM8EBHYn/

Backtrace: http://paste.openstack.org/show/Ok096HUbM4Y8W0BT1HS8/

This should be related with several bugs opened concerning the "Dimensions" property on AWS alarm.

Adding the dimensions on engine/resources/loadbalancer.py makes it work:

    "latency_watcher": {
     "Type": "AWS::CloudWatch::Alarm",
     "Properties": {
        "MetricName": "Latency",
        "Namespace": "AWS/ELB",
        "Statistic": "Average",
        "Period": "60",
        "EvaluationPeriods": "1",
        "Threshold": "2",
        "AlarmActions": [],
        "Dimensions": [
          {
            "Name": "AlarmName",
            "Value": "latency_watcher"
          }
       ],
        "ComparisonOperator": "GreaterThanThreshold"
     }

Cheers,

Bruno Bompastor.

Changed in heat:
assignee: nobody → Razumovsky Peter (prazumovsky)
Revision history for this message
Peter Razumovsky (prazumovsky) wrote :

Could you provide information about what release of OpenStack do you use?

Revision history for this message
Bruno Bompastor (bruno-bompastor) wrote :

The release is juno: 2014.2.1-1.el7.centos

Revision history for this message
Peter Razumovsky (prazumovsky) wrote :

Thank you for information

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/142473

Angus Salkeld (asalkeld)
Changed in heat:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/juno)

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

commit aabd3d8fc7b301b2f9a92311f89274c64b1afa11
Author: Peter Razumovsky <email address hidden>
Date: Thu Nov 13 18:31:46 2014 +0300

    Add Dimensions Default in AWS_CloudWatch_Alarm.yaml

    Relying on [1], property Dimensions isn't required, but
    this template has no Default value for Dimensions
    (thereby making it required). This patch fixes that omission.
    Besides that, parameters have wrong parsing, because if
    parameter with type 'CommaDelimitedList' has default
    value '', parameter's parsing result would be [u''] instead
    of []. this is wrong, so this patch fixes it.

    [1] http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html

    Change-Id: I259249659c8b5dc846432f8e08985b148b30d682
    Closes-bug: #1402015
    (cherry picked from commit 13435988905df7de2d804ba2201ec08f13f61de6)

tags: added: in-stable-juno
Changed in heat:
status: Triaged → Confirmed
Changed in heat:
status: Confirmed → Fix Released
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.