AWS Load Balancer creation fails with Ceilometer Alarm

Bug #1386824 reported by Henrique Truta
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Undecided
Peter Razumovsky

Bug Description

Running Heat on a fresh devstack install, just tried to creat a stack with this HOT: http://paste.openstack.org/show/125992/

This template used to work a few months ago, but when I ran it today, I got an error on the creation of the AWS::ElasticLoadBalancing::LoadBalancer.

$ heat resource-list mystack
+--------------------------+----------------------------------+-----------------------------------------+-----------------+----------------------+
| resource_name | physical_resource_id | resource_type | resource_status | updated_time |
+--------------------------+----------------------------------+-----------------------------------------+-----------------+----------------------+
| CfnUser | 7836212dd5ec4da7a68723f80d6d6882 | AWS::IAM::User | CREATE_COMPLETE | 2014-10-28T13:56:03Z |
| ElasticLoadBalancer | | AWS::ElasticLoadBalancing::LoadBalancer | CREATE_FAILED | 2014-10-28T13:56:03Z |

The error was:
"StackValidationFailed: Property error : latency_watcher: Property Dimensions not assigned"

The strange fact is that "Dimensions" is a CloudWatch Alarm property and I'm using Ceilometer Alarm.

Full log:
"StackValidationFailed: Property error : latency_watcher: Property Dimensions not assigned", "physical_resource_id": "", "resource_type": "AWS::ElasticLoadBalancing::LoadBalancer"}, {"resource_name": "CPUAlarmHigh", "links": [{"href": "http://10.1.0.157:8004/v1/aa96e302c27b4531980dce5b8dc06155/stacks/mystack/5079eb05-df0b-4e13-8094-f3536bcca741/resources/CPUAlarmHigh", "rel": "self"}, {"href": "http://10.1.0.157:8004/v1/aa96e302c27b4531980dce5b8dc06155/stacks/mystack/5079eb05-df0b-4e13-8094-f3536bcca741", "rel": "stack"}], "logical_resource_id": "CPUAlarmHigh", "resource_status": "INIT_COMPLETE", "updated_time": "2014-10-28T14:12:53Z", "required_by": [], "resource_status_reason": "", "physical_resource_id": "", "resource_type": "OS::Ceilometer::Alarm"}, {"resource_name": "WebServerKeys", "links": [{"href": "http://10.1.0.157:8004/v1/aa96e302c27b4531980dce5b8dc06155/stacks/mystack/5079eb05-df0b-4e13-8094-f3536bcca741/resources/WebServerKeys", "rel": "self"}, {"href": "http://10.1.0.157:8004/v1/aa96e302c27b4531980dce5b8dc06155/stacks/mystack/5079eb05-df0b-4e13-8094-f3536bcca741", "rel": "stack"}], "logical_resource_id": "WebServerKeys", "resource_status": "INIT_COMPLETE", "updated_time": "2014-10-28T14:12:53Z", "required_by": ["LaunchConfig"], "resource_status_reason": "", "physical_resource_id": "", "resource_type": "AWS::IAM::AccessKey"}, {"resource_name": "WebServerScaleDownPolicy", "links": [{"href": "http://10.1.0.157:8004/v1/aa96e302c27b4531980dce5b8dc06155/stacks/mystack/5079eb05-df0b-4e13-8094-f3536bcca741/resources/WebServerScaleDownPolicy", "rel": "self"}, {"href": "http://10.1.0.157:8004/v1/aa96e302c27b4531980dce5b8dc06155/stacks/mystack/5079eb05-df0b-4e13-8094-f3536bcca741", "rel": "stack"}], "logical_resource_id": "WebServerScaleDownPolicy", "resource_status": "INIT_COMPLETE", "updated_time": "2014-10-28T14:12:53Z", "required_by": ["CPUAlarmLow"], "resource_status_reason": "", "physical_resource_id": "", "resource_type": "AWS::AutoScaling::ScalingPolicy"}, {"resource_name": "CPUAlarmLow", "links": [{"href": "http://10.1.0.157:8004/v1/aa96e302c27b4531980dce5b8dc06155/stacks/mystack/5079eb05-df0b-4e13-8094-f3536bcca741/resources/CPUAlarmLow", "rel": "self"}, {"href": "http://10.1.0.157:8004/v1/aa96e302c27b4531980dce5b8dc06155/stacks/mystack/5079eb05-df0b-4e13-8094-f3536bcca741", "rel": "stack"}], "logical_resource_id": "CPUAlarmLow", "resource_status": "INIT_COMPLETE", "updated_time": "2014-10-28T14:12:53Z", "required_by": [], "resource_status_reason": "", "physical_resource_id": "", "resource_type": "OS::Ceilometer::Alarm"}]} from (pid=11964) to_json /opt/stack/heat/heat/common/serializers.py:43
screen-h-eng.2014-10-28-120254.log:2014-10-28 13:56:03.747 TRACE heat.engine.resource StackValidationFailed: Property error : latency_watcher: Property Dimensions not assigned

Changed in heat:
assignee: nobody → Razumovsky Peter (prazumovsky)
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/132867

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on heat (master)

Change abandoned by Peter Razumovsky (<email address hidden>) on branch: master
Review: https://review.openstack.org/132867

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

Reviewed: https://review.openstack.org/134251
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=13435988905df7de2d804ba2201ec08f13f61de6
Submitter: Jenkins
Branch: master

commit 13435988905df7de2d804ba2201ec08f13f61de6
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 fix 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 fix it.

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

    Change-Id: I259249659c8b5dc846432f8e08985b148b30d682
    Closes-bug: #1386824

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: kilo-1 → 2015.1.0
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.