heat: doesn't use EC2 tags API

Bug #1097430 reported by Stephen Gran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Invalid
Medium
Stephen Gran
Grizzly
Invalid
Medium
Stephen Gran

Bug Description

in EC2, creating either an autoscaling group or a cloudformation stack will tag the instances with

aws:autoscaling:groupName: $stack_name-$resource_name-<alphanumeric>
aws:cloudformation:logical-id: $resource_name
aws:cloudformation:stack-id: arn:aws:cloudformation:$region_name:$account_name:stack/$stack_name/$stack_id
aws:cloudformation:stack-name: $stack_name

for just an autoscaling group not created as part of a cloudformation stack, only the first tag is automatically created.

The API used is the EC2 CreateTags call. This is distinct from the openstack metadata (I think) key/value pairs as tags do not appear in instance metadata. I have written a patch set to implement the *Tags calls in the openstack EC2 API, as well as the ability to search for instances by tags.

Revision history for this message
Steven Hardy (shardy) wrote :

Related links:

For AWS::EC2::Instance, we currently implement the Tags property, but incorrectly append the tags data to the instance metadata (which is only availably via the openstack-native nova metadata API). This does not align with AWS since they specify the Tags get appended to the EC2 tags, as described above by the reporter.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-tags

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-tags.html

From:

http://aws.amazon.com/cloudformation/faqs/

"AWS CloudFormation automatically tags EBS volumes and EC2 instances with the name of the AWS CloudFormation stack they are part of."

Assigning this to the reporter as they indicated they may contribute this fix when their nova EC2 Tags patch is accepted.

Changed in heat:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Stephen Gran (sgran)
Steven Dake (sdake)
Changed in heat:
milestone: none → grizzly-3
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

Hey Stephen, could you point me at the gerrit review for your implementation of the *Tags calls?

Revision history for this message
Stephen Gran (sgran) wrote :

Hi,

https://review.openstack.org/#/c/20376/

Sorry about the delay.

Cheers,

Revision history for this message
Stephen Gran (sgran) wrote :

Hi,

I've been asked to break the review into smaller chunks. Here is the bit just for the tags API:
https://review.openstack.org/#/c/20412/

Thanks

Revision history for this message
Steven Hardy (shardy) wrote :

Note as per my comment on https://review.openstack.org/#/c/20412/, we'll need support for manipulating tags via the nova openstack-native API (not just the EC2 API), as I don't think we want to start mixing calls to the native and EC2 nova APIs if at all possible (all calls currently go via the native API)

Revision history for this message
Steven Hardy (shardy) wrote :

The nova code is not getting merged for grizzly, so we need to bump this to havanna. Should probably raise a blueprint and close this bug invalid (since it's really a feature):

https://review.openstack.org/#/c/23256/
https://review.openstack.org/#/c/23258/

Revision history for this message
Steven Hardy (shardy) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.