stack-show output has AWS hardcoded for stack name

Bug #1229415 reported by Sahdev Zala
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Pablo Andres Fuente

Bug Description

1. Create a stack using heat native only template (e.g. https://review.openstack.org/#/c/47116/2/hot/F18/WordPress_Native.yaml)
2. Run "stack-show". Part of the out is below,
| parameters | { |
| | "instance_type": "m1.small", |
| | "key_name": "heat_key", |
| | "availability_zone": "nova", |
| | "AWS::StackId": "arn:openstack:heat::85e5c894ba43425e854695b25b854b6a:stacks/hello/1aca913a-24fa-4696-998c-674b365a87e7", |
| | "image_id": "F18-x86_64-cfntools", |
| | "AWS::StackName": "hello", |
| | "AWS::Region": "ap-southeast-1", |
| | "volume_size": "1"

There are three AWS specific parameters in the above output:
1. "AWS::StackId
2. AWS::Region
3. AWS::StackName

For native template output, I think it really doesn't make much sense specially for StackName or StackId.

I am not sure if this is per design but if not, I think it may be a good idea to remove hard coded AWS for any template (AWS or native).
I will fix it or cancel the bug per Triage.
Thanks!

Sahdev Zala (spzala)
Changed in heat:
assignee: nobody → Sahdev Zala (spzala)
Revision history for this message
Steven Hardy (shardy) wrote :

So the issue is we don't yet have native replacements for the intrinsic functions:

https://github.com/openstack/heat/blob/master/heat/engine/parameters.py#L40

So we'll need to add those, then reference the native versions in the stack-show output

Changed in heat:
status: New → Triaged
importance: Undecided → Medium
milestone: none → icehouse-1
Revision history for this message
Faramir (faramir) wrote : AUTO: Hai Liang Wang is on vacation from 09-29 to 10-08 (returning 10/09/2013)

I am out of the office until 10/09/2013.

Conact me by phone for anything urgency.
Phone Number - 15801213126 . thanks !

Note: This is an automated response to your message "[Bug 1229415] Re:
stack-show output has AWS hardcoded for stack name" sent on 09/30/2013
14:58:59.

This is the only notification you will receive while this person is away.

Revision history for this message
Sahdev Zala (spzala) wrote :

Hi Steve (shardy), thank you much! Sounds good.

I have created this blueprint for native implementation of the AWS Pseudo Parameters,
https://blueprints.launchpad.net/heat/+spec/native-implementation-aws-pseudo-parameters

I hope it makes sense? Thanks!

Changed in heat:
milestone: icehouse-1 → icehouse-2
Revision history for this message
Sahdev Zala (spzala) wrote :
Changed in heat:
assignee: Sahdev Zala (spzala) → Pablo Andres Fuente (pablo-a-fuente)
status: Triaged → In Progress
Revision history for this message
Steve Baker (steve-stevebaker) wrote :
Changed in heat:
milestone: icehouse-2 → icehouse-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

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

commit ff195c471299b429085b7323555d30b7b4a3e0bd
Author: Pablo Andres Fuente <email address hidden>
Date: Tue Jan 21 18:11:29 2014 -0300

    Native Pseudo Parameters

    This is the second patch in order to implement native pseudo parameters
    for HOT templates.

    The current pseudo-parameters (AWS:: ones) are now mapped to "native"
    parameter names.

    Now HOTemplate uses HOTParameters instead of Parameters in order to
    set up correctly the stack id, which for the HOTemplates is an uuid and
    for CFN templates is an arn.

    Change-Id: I6361ef1aae55eee762c3f21c9c01ae6ca4a9ff01
    Implements: blueprint native-pseudo-params
    Closes-Bug: #1229415

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-3 → 2014.1
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.