resource show returns 'stack or resource not found' for a resource yet to be created

Bug #1402531 reported by Unmesh Gurjar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Undecided
Unmesh Gurjar

Bug Description

Branch: master

This is a usability concern raised by a user (here|https://ask.openstack.org/en/question/52292/heat-resource-show-gives-stack-or-resource-not-found/).

Scenario:
1. Create a stack using a template where resource A depends on another resource B (and resource B takes considerable amount of time to create).
2. Check the details of resource A even before resource B is created using 'heat resource-show my-stack A'.

Actual output:
Stack or resource not found: my-stack A

Expected output:
API should return resource with the available details. Though this means that few resource details like attributes, physical_resource_id, etc would be 'null' at this point. Because, this is consistent with the output provided to the user when resource B is CREATE_IN_PROGRESS and does not yet have a physical_resource_id associated!

Changed in heat:
assignee: nobody → Unmesh Gurjar (unmesh-gurjar)
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/143425

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

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

commit 207872b06012b031b34e5da45823dd26629277f9
Author: Unmesh Gurjar <email address hidden>
Date: Mon Dec 22 16:03:29 2014 +0530

    Return available info for uncreated resource

    The resource show API verified that a resource is defined in stack
    and has an id associated with it. Because of this, for a valid stack
    resource which is not persisted, the resource show API returned the
    error 'stack or resource not found'.
    Fixed by validating only that the resource is defined in a stack
    and return the available information in the resource show API
    response.

    Change-Id: Ic0a031294f4f1dffc3c9978014480d15fd2fa27b
    Closes-bug: #1402531

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