Cannot query stack by ARN via ReST API/heatclient

Bug #1131759 reported by Steven Hardy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Steve Baker

Bug Description

Not entirely sure if this is a bug in the ReST API, heatclient or both, but you cannot get stack details by ARN via heatclient, whereas you can via the CFN API/client:

# heat-cfn describe arn:openstack:heat::2ad6d056fc704293959a05d8186c38c1:stacks/wordpress2/54db5ea9-62d0-4e9f-b47e-538cd914565b | grep StackName
Failed to load keyring modules.
            <ParameterKey>AWS::StackName</ParameterKey>
        <StackName>wordpress2</StackName>

# heat describe arn:openstack:heat::2ad6d056fc704293959a05d8186c38c1:stacks/wordpress2/54db5ea9-62d0-4e9f-b47e-538cd914565b
Failed to load keyring modules.
Stack not found: arn:openstack:heat::2ad6d056fc704293959a05d8186c38c1:stacks/wordpress2/54db5ea9-62d0-4e9f-b47e-538cd914565b

It seems that you can only use the stack name, or the stack ID (ie the UUID at the end of the ARN, which is not particularly useful to users)

Steven Hardy (shardy)
Changed in heat:
status: New → Triaged
importance: Undecided → Medium
milestone: none → grizzly-rc1
Steven Dake (sdake)
Changed in heat:
assignee: nobody → Steven Dake (sdake)
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/23648

Changed in heat:
assignee: Steven Dake (sdake) → Steve Baker (steve-stevebaker)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/23648
Committed: http://github.com/openstack/heat/commit/2f3f98f58d4ffe401cb542508bd62da4f14f0dbf
Submitter: Jenkins
Branch: master

commit 2f3f98f58d4ffe401cb542508bd62da4f14f0dbf
Author: Steve Baker <email address hidden>
Date: Wed Mar 6 16:22:58 2013 +1300

    Allow REST stack lookup by ARN

    This uses the same approach as the cfn api, which assumes the stack
    name is an arn, before falling back to an identify_stack call.

    Change-Id: I64e9826fa58e05863e9459d3aab041a8d7997405
    Fixes: Bug #1131759

Changed in heat:
status: In Progress → Fix Committed
Changed in heat:
status: Fix Committed → In Progress
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/23878

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

Reviewed: https://review.openstack.org/23877
Committed: http://github.com/openstack/heat/commit/010be1cae9b3dcc9d64423e75e509c27ad66365b
Submitter: Jenkins
Branch: master

commit 010be1cae9b3dcc9d64423e75e509c27ad66365b
Author: Steve Baker <email address hidden>
Date: Fri Mar 8 13:06:04 2013 +1300

    Add tests to validate REST path to action mapping.

    The Routes mapping performs some brittle regexp manipulation
    to build the parameter mapping on the path, so its nice to validate
    that it is doing what is expected.

    Supports bug #1131759

    Change-Id: I251178c2bd9cb03fcedc2da7ea31378b62ae309f

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

Reviewed: https://review.openstack.org/23878
Committed: http://github.com/openstack/heat/commit/8939c3e5241c731b010cae4113f63221b19fa5c5
Submitter: Jenkins
Branch: master

commit 8939c3e5241c731b010cae4113f63221b19fa5c5
Author: Steve Baker <email address hidden>
Date: Fri Mar 8 13:08:04 2013 +1300

    Recognise arn: for REST stack lookup.

    Note that the Routes mapper does brittle regexp fu to map parameters,
    hence using \x3A for matching a colon

    Fixes: Bug #1131759
    Change-Id: I063bf9057782c1c0a3f809d4f8068e2594be264d

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: grizzly-rc1 → 2013.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.