metering tagging fails in AutoScalingCeilometer.yaml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Heat Templates |
Fix Committed
|
Undecided
|
William C. Arnold |
Bug Description
cfn/f17/
WebServerGroup:
Type: AWS::AutoScalin
Properties:
...
Tags:
- {Key: metering.
and
CPUAlarmHigh:
Type: OS::Ceilometer:
Properties:
...
matching_
...
The members get tagged with the string literal "WebServerGroup". The relevant logic is in the _tags method of the InstanceGroup class in the heat/engine/
for t in tags:
if t[self.
# the user has added one, don't add another.
return tags + [{self.TAG_KEY: 'metering.
In the template at hand, that first return is used, and so the literal tag is returned. However, the alarm is looking for the ID of the group, not its stack-local name. The alarm fails to work properly due to this mismatch.
The template can be fixed by simply removing the Tags property from the ASG. In that case the last line of _tags is used, which tags the group's members with the group's ID, which is what the alarm looks for.
Changed in heat-templates: | |
status: | New → In Progress |
Changed in heat-templates: | |
assignee: | nobody → William C. Arnold (barnold-8) |
Bill Arnold has submitted a fix, I do not understand why it is not listed here.
https:/ /review. openstack. org/#/c/ 82158/