Tags property should be updatable

Bug #1240885 reported by Simon Pasquier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Angus Salkeld

Bug Description

I have a template with a resource like this:

  Instance:
    Type: AWS::EC2::Instance
    Properties:
      ImageId: F19-x86_64
      InstanceType: m1.small
      Tags: [ { "Key": "service", "Value": "foo" } ]

Then I update the template with a new value for Tags:

  Instance:
    Type: AWS::EC2::Instance
    Properties:
      ImageId: F19-x86_64
      InstanceType: m1.small
      Tags: [ { "Key": "service", "Value": "bar" } ]

The Heat engine triggers a deletion/creation of the instance resource.

Steven Hardy (shardy)
Changed in heat:
milestone: none → icehouse-1
Revision history for this message
Angus Salkeld (asalkeld) wrote :

Just a caution, to test well the interaction with alarms, launch configs and scaling groups.
We probably need to make these consistent if possible.
So should/can they all be updatable?

Revision history for this message
Simon Pasquier (simon-pasquier) wrote :

Thanks for the feedback Angus. I guess you're talking about the tags with keys prefixed "metering." so maybe these could be treated separately (if possible?).

FYI this bug report was triggered by bug #1240888 (Resources created during update get invalid AWS::StackId value). My tag value was {Ref: "AWS::StackId"}. Because of that bug, I noticed that tags were not updatable but I didn't dig any further.

description: updated
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

We just need to be careful not to modify tags that weren't/aren't specified by the template

Changed in heat:
status: New → Triaged
importance: Undecided → Medium
Angus Salkeld (asalkeld)
Changed in heat:
assignee: nobody → Angus Salkeld (asalkeld)
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/56126

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

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

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

Reviewed: https://review.openstack.org/56127
Committed: http://github.com/openstack/heat/commit/e822347a7d5c4619e1ad48a1ce3d66fbf6055f55
Submitter: Jenkins
Branch: master

commit e822347a7d5c4619e1ad48a1ce3d66fbf6055f55
Author: Angus Salkeld <email address hidden>
Date: Sun Nov 17 13:23:19 2013 +1100

    Make instance Tags updatable

    Note: I don't think that there is an issue with autoscaling tags
    as autoscaling drives the instance via the properties and it doesn't
    update intances anyways, it only creates/destroys instances.

    Change-Id: I3cea4180f22690ea226273cc96132db6ae3dde12
    Closes-bug: #1240885

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