Nova server needs a name attribute

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

Bug Description

Currently, the only way to retrieve the 'name' attribute of a Nova server from inside a template is to {get_attr: [server, show, name] }. This is not good not only because it is inconvenient, but it implies a call to the Nova API.

An attribute needs to be added to Nova server to solve this.

Qiming Teng (tengqim)
Changed in heat:
assignee: nobody → Qiming Teng (tengqim)
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

tripleo would benefit greatly from this, they do many show calls to get the name:

http://git.openstack.org/cgit/openstack/tripleo-heat-templates/tree/overcloud-source.yaml#n301

Changed in heat:
status: New → Triaged
importance: Undecided → High
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/98776

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/98776
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=06898f79ad6a2d8c22dcb29727a2fb23468a856a
Submitter: Jenkins
Branch: master

commit 06898f79ad6a2d8c22dcb29727a2fb23468a856a
Author: tengqm <email address hidden>
Date: Mon Jun 9 20:38:44 2014 +0800

    Add name attribute to Nova server.

    This patch add a 'name' attribute to OS::Nova::Server resource for
    convenience. It also avoids additional calls to Nova API.

    Change-Id: I67943563268ae0c1c7381ca8b472c7d41190f28b
    Closes-Bug: #1327922

Changed in heat:
status: In Progress → Fix Committed
Changed in heat:
milestone: none → juno-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: juno-2 → 2014.2
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.