Heat stack-list reports wrong state on failed create

Bug #1104617 reported by Angus Salkeld
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Angus Salkeld

Bug Description

I didn't register my image (restarting devstack - doh)

heat create teststack --template-file=../heat/templates/InstanceGroup.template --parameters="InstanceType=m1.large;DBUsername=wp;DBPassword=verybadpassword;KeyName=heat_key;LinuxDistribution=F16"

heat stack-list
+--------------------------------------+-----------+-----------------+----------------------+
| ID | Name | Status | Created |
+--------------------------------------+-----------+-----------------+----------------------+
| 3a0b3186-e7df-48e2-830a-4e3dad7b8e7a | teststack | CREATE_COMPLETE | 2013-01-25T01:06:19Z |
+--------------------------------------+-----------+-----------------+----------------------+

that doesn't seem right, how about create_failed?

Angus Salkeld (asalkeld)
Changed in heat:
importance: Undecided → High
Revision history for this message
Angus Salkeld (asalkeld) wrote :

Forgot to mention in the log it had the error:

 ImageNotFound: The Image (F16-x86_64-cfntools) could not be found.

Revision history for this message
Angus Salkeld (asalkeld) wrote :

This is because it is a nested resource (autoscaling or grouped instance).
the exception gets caught
state set to failed
then the grouped resource doesn't see the failure and sets it back to good.

Changed in heat:
assignee: nobody → Angus Salkeld (asalkeld)
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/20460

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/20460
Committed: http://github.com/openstack/heat/commit/6d32597f067f20797a204ff89e528336288fb8d4
Submitter: Jenkins
Branch: master

commit 6d32597f067f20797a204ff89e528336288fb8d4
Author: Angus Salkeld <email address hidden>
Date: Mon Jan 28 21:57:27 2013 +1100

    Make sure failures in groups (autoscaling & static) are raised.

    Fixes bug 1104617

    Change-Id: Iebd2b0c6a4adf8c252db31348e4dc241c0479765

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