Metadata is not refreshed on template resources

Bug #1418942 reported by Angus Salkeld
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Angus Salkeld
Juno
Fix Released
Undecided
Unassigned

Bug Description

If you have the following template:

    "custom_lb": {
      "Type": "AWS::EC2::Instance",
      "Properties": {
        "ImageId": {"Ref": "image"},
        "InstanceType": {"Ref": "flavor"},
        "UserData": "foo",
        "SecurityGroups": [ "sg-1" ],
        "Tags": []
      },
      "Metadata": {
        "IPs": {"Fn::GetAtt": ["JobServerGroup", "InstanceList"]}
      }
    },

and you map "AWS::EC2::Instance" to a template resource, the metadata section will not be refreshed when the policy is signalled.

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

Changed in heat:
status: Triaged → In Progress
Steven Hardy (shardy)
tags: added: juno-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

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

commit e5ffaff0b3326bcf2840f781501b9f7bb6513ccd
Author: Angus Salkeld <email address hidden>
Date: Fri Feb 6 22:31:44 2015 +1000

    Make sure template resource's metadata is refreshed

    This copies the code snippet from instance.py, which refreshes
    the metadata when we get a signal on a referenced resource.

    Note: a functional test is coming in a later commit.

    Closes-bug: 1418942
    Change-Id: I5980c9cf4dc355b9bfa93273bc26a768ab9abdb8

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: kilo-3 → 2015.1.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/244406

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

Reviewed: https://review.openstack.org/244406
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=2fb32b11eb32e42058d3a06848af5ed9d09129d6
Submitter: Jenkins
Branch: stable/juno

commit 2fb32b11eb32e42058d3a06848af5ed9d09129d6
Author: Angus Salkeld <email address hidden>
Date: Fri Feb 6 22:31:44 2015 +1000

    Make sure template resource's metadata is refreshed

    This copies the code snippet from instance.py, which refreshes
    the metadata when we get a signal on a referenced resource.

    Note: a functional test is coming in a later commit.

    Closes-bug: 1418942
    Change-Id: I5980c9cf4dc355b9bfa93273bc26a768ab9abdb8
    (cherry picked from commit e5ffaff0b3326bcf2840f781501b9f7bb6513ccd)

tags: added: in-stable-juno
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.