Can't create stack if outputs with get_attr:[resource_name]

Bug #1505560 reported by huangtianhua
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
huangtianhua

Bug Description

1. create a stack with the template:
**************************************

heat_template_version: 2015-10-15
resources:
  port:
    type: OS::Neutron::Port
    properties:
      network: 3447dd80-14ef-4059-8ea6-35f4fd60ba26
      mac_address: fa:16:3e:76:df:f8
outputs:
  alla:
    value: {get_attr: [port]}
******************************************
2. an error raised when stack.validate(): ERROR: Output validation error: : outputs.alla.value: : The Referenced Attribute (port None) is incorrect.

Changed in heat:
assignee: nobody → huangtianhua (huangtianhua)
Revision history for this message
Thomas Herve (therve) wrote :

I don't understand, what behavior are you expecting?

Revision history for this message
Thomas Herve (therve) wrote :

Oh I guess you expect all the attributes to be returned, nevermind.

Changed in heat:
status: New → Triaged
importance: Undecided → High
tags: added: liberty-rc-potential
Changed in heat:
milestone: none → mitaka-1
tags: added: liberty-backport-potential
removed: liberty-rc-potential
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/234523

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

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

commit 1240c33a3ffc887378011e1d171036c575444ba0
Author: huangtianhua <email address hidden>
Date: Wed Oct 14 10:41:50 2015 +0800

    Allow get_attr: [res_name] format to get all attribute

    Don't check None attribute name if want to get all
    attributes of resource, and this only works in template
    '2015-10-15' or higher version.

    Change-Id: I6699bfc8bc8096e5dc313d01b3a829694c105fea
    Closes-Bug: #1505560

Changed in heat:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/237368

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

Reviewed: https://review.openstack.org/237368
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=6c510b7e616ba2a3dff1aa3ba3ff3136f22c1655
Submitter: Jenkins
Branch: stable/liberty

commit 6c510b7e616ba2a3dff1aa3ba3ff3136f22c1655
Author: huangtianhua <email address hidden>
Date: Wed Oct 14 10:41:50 2015 +0800

    Allow get_attr: [res_name] format to get all attribute

    Don't check None attribute name if want to get all
    attributes of resource, and this only works in template
    '2015-10-15' or higher version.

    Change-Id: I6699bfc8bc8096e5dc313d01b3a829694c105fea
    Closes-Bug: #1505560
    (cherry picked from commit 1240c33a3ffc887378011e1d171036c575444ba0)

tags: added: in-stable-liberty
tags: removed: liberty-backport-potential
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/heat 6.0.0.0b1

This issue was fixed in the openstack/heat 6.0.0.0b1 development milestone.

Changed in heat:
status: Fix Committed → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/heat 5.0.1

This issue was fixed in the openstack/heat 5.0.1 release.

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.