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

Bug #1402531 reported by Unmesh Gurjar on 2014-12-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Unmesh Gurjar

Bug Description

Branch: master

This is a usability concern raised by a user (here|

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)

Fix proposed to branch: master

Changed in heat:
status: New → In Progress

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

    Change-Id: Ic0a031294f4f1dffc3c9978014480d15fd2fa27b
    Closes-bug: #1402531

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2015-02-05
Changed in heat:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2015-04-30
Changed in heat:
milestone: kilo-2 → 2015.1.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers