stack resource-list does NotFound for ResourceGroups with CREATE_ERROR resources

Bug #1476834 reported by Steve Baker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Steve Baker
Kilo
Fix Released
High
Steve Baker

Bug Description

scenario: A stack with a ResourceGroup where a resource inside that group is in CREATE_FAILED, when that stack is deleted the following happens:

Calling heat resource-list results in a NotFound response even though heat stack-show confirms the stack exists

Resource.nested() may raise a NotFound exception, but heat.engine.api.format_stack_resource is not catching this.

description: updated
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/204294

Changed in heat:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/204302

tags: added: kilo-backport-potential
summary: - ResourceGroups with ERROR resources fail and leak resources on delete
+ stack resource-list does NotFound for ResourceGroups with CREATE_ERROR
+ resources
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

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

commit c3f9337c11b78f98704dce9e76e2b74e9098670a
Author: Steve Baker <email address hidden>
Date: Wed Jul 22 10:56:55 2015 +1200

    Catch NotFound in format_stack_resource for nested()

    If the underlying nested stack doesn't exist for whatever reason,
    calling heat resource-list results in a NotFound response even though heat
    stack-show confirms the stack exists.

    This change catches NotFound when calling resource.nested() in
    format_stack_resource.

    Change-Id: Iba92d0590561dffb8f902865cc7134b2eddc23ac
    Closes-Bug: #1476834

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → liberty-2
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on heat (stable/kilo)

Change abandoned by Steve Baker (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/204302
Reason: Replaced by https://review.openstack.org/#/c/216481/

Revision history for this message
Steve Baker (steve-stevebaker) wrote :
tags: added: in-stable-kilo
removed: kilo-backport-potential
tags: added: kilo-backport-potential
removed: in-stable-kilo
Angus Salkeld (asalkeld)
tags: removed: kilo-backport-potential
Thierry Carrez (ttx)
Changed in heat:
milestone: liberty-2 → 5.0.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.