Ceilometer alarm based AWS::CloudWatch::Alarm implementation does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Rabi Mishra |
Bug Description
When trying to use the supplied (/etc/heat/
"ValueError: Value must be a comma-delimited list string: 'list' object has no attribute 'split'"
This is with Havana, but Icehouse seems to have the same implementation.
It seems to correspond with the way the "Dimensions" property of AWS::Cloudwatch
Here is what is in the heat-engine.log:
2014-05-06 22:31:41.965 3619 INFO heat.engine.
2014-05-06 22:31:41.966 3619 DEBUG heat.engine.
2014-05-06 22:31:41.984 3619 INFO urllib3.
2014-05-06 22:31:42.055 3619 DEBUG urllib3.
:296
2014-05-06 22:31:42.091 3619 ERROR heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.091 3619 TRACE heat.engine.
2014-05-06 22:31:42.122 3619 DEBUG heat.engine.
2014-05-06 22:31:42.130 3619 DEBUG heat.engine.
2014-05-06 22:31:42.131 3619 WARNING heat.engine.service [-] Stack create failed, status FAILED
My basic test template is as follows:
{
"AWSTemplateF
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing KeyPair to enable SSH access to the instance",
"Type" : "String"
},
"InstanceType" : {
"Description" : "Instance type",
"Type" : "String",
"Default" : "U1.small",
"
"
},
"Image": {
"Default": "redhat",
"Description" : "Distribution of choice",
"Type": "String",
"
},
"MinPoolSize" : {
"Default": "1",
"
"Type": "String"
},
"MaxPoolSize" : {
"Default": "10",
"
"Type": "String"
}
},
"Mappings" : {
"DistroArch
"cirros" : { "64" : "cirros-
"redhat" : { "64" : "CentOS-
}
},
"Resources" : {
"Nodes" : {
"Type" : "AWS::AutoScali
"Properties" : {
"MinSize" : { "Ref" : "MinPoolSize" },
"MaxSize" : { "Ref" : "MaxPoolSize" }
}
},
"LaunchConfig" : {
"Type" : "AWS::AutoScali
"Metadata" : {
"config" : {
}
}
},
"Properties" : {
"KeyName" : { "Ref" : "KeyName" },
"ImageId" : { "Fn::FindInMap" : [ "DistroArch2AMI", { "Ref" : "Image" }, "64" ] },
"UserData" : {
]]
}
}
}
},
"ScaleUpPolicy" : {
"Type" : "AWS::AutoScali
"Properties" : {
"Cooldown" : "60",
}
},
"CPUHighAlarm" : {
"Type" : "AWS::CloudWatc
{
}
],
}
}
},
"Outputs" : {
"ScaleUpTri
"Description" : "Scale Up Policy Trigger",
"Value" : { "Fn::Join" : [ "", [ "ScaleUpTrigger=", { "Ref" : "ScaleUpPolicy" } ]] }
}
}
}
Changed in heat: | |
assignee: | nobody → Rabi Mishra (ramishra) |
Changed in heat: | |
importance: | Undecided → High |
milestone: | none → juno-1 |
tags: | added: icehouse-backport-potential |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | juno-1 → 2014.2 |
It does not work with custom template resource mapping. Looks like the custom resource template is not in sync with property changes and treats some properties as strings rather than lists.