invalid template syntax in lists can result in undeleteable stacks

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

Bug Description

Running with Neutron:

[sdake@bigiron ~]$ heat list
+--------------------------------------+------------+---------------+----------------------+
| id | stack_name | stack_status | creation_time |
+--------------------------------------+------------+---------------+----------------------+
| e79194c6-17d6-4b81-8cac-7f36dc0ebdc8 | ls1 | DELETE_FAILED | 2013-10-06T10:11:10Z |
+--------------------------------------+------------+---------------+----------------------+
[sdake@bigiron ~]$ heat describe ls1
+----------------------+----------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+----------------------+----------------------------------------------------------------------------------------------------------------------------+
| capabilities | [] |
| creation_time | 2013-10-06T10:11:10Z |
| description | Heat WordPress template to support F19 with no SSH key |
| | requirements: WordPress is web software you can use to |
| | create a beautiful website or blog. This template |
| | installs a single-instance WordPress deployment using a |
| | local MySQL database to store the data. |
| disable_rollback | True |
| id | e79194c6-17d6-4b81-8cac-7f36dc0ebdc8 |
| links | http://192.168.1.20:8004/v1/65efc30bef6949ba886dde9774c16844/stacks/ls1/e79194c6-17d6-4b81-8cac-7f36dc0ebdc8 |
| notification_topics | [] |
| parameters | { |
| | "DBUsername": "******", |
| | "AWS::StackName": "ls1", |
| | "DBRootPassword": "******", |
| | "AWS::StackId": "arn:openstack:heat::65efc30bef6949ba886dde9774c16844:stacks/ls1/e79194c6-17d6-4b81-8cac-7f36dc0ebdc8", |
| | "DBName": "wordpress", |
| | "DBPassword": "******", |
| | "AWS::Region": "ap-southeast-1", |
| | "InstanceType": "m1.small" |
| | } |
| stack_name | ls1 |
| stack_status | DELETE_FAILED |
| stack_status_reason | Resource delete failed: NetworkNotFoundClient: Network |
| | 9eab6f25-cffc-4b2f-a891-a0fea366622b could not be found |
| template_description | Heat WordPress template to support F19 with no SSH key |
| | requirements: WordPress is web software you can use to |
| | create a beautiful website or blog. This template |
| | installs a single-instance WordPress deployment using a |
| | local MySQL database to store the data. |
| timeout_mins | 60 |
| updated_time | 2013-10-06T10:12:02Z |
+----------------------+----------------------------------------------------------------------------------------------------------------------------+

[sdake@bigiron F19]$ nova net-list
/usr/lib64/python2.7/site-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
+--------------------------------------+---------+------+
| ID | Label | CIDR |
+--------------------------------------+---------+------+
| ae3c3dac-49a0-4366-8f73-bd59787cb772 | public | None |
| bdae4bda-1736-42e2-a116-38323934362d | private | None |
+--------------------------------------+---------+------+

The UUID doesn't match the quantum networks in the system.

The template is missing a Ref - trying that next ;)

the stack becomes un-deleteable and must be re-stack.sh'ed

template attached

Revision history for this message
Steven Dake (sdake) wrote :
Changed in heat:
importance: Undecided → Critical
status: New → Triaged
milestone: none → icehouse-1
Revision history for this message
Steven Dake (sdake) wrote :
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

Is this issue improved by https://review.openstack.org/#/c/43798/ ?

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

Here is my "fixed" version of the attached template. Changes include:
* define a subnet resource for each net resource
* in networks definition, specify a ref, ie - uuid: {Ref: private_network}

Every version of this template that I ran could be deleted, so I think this issue has already been solved.

Revision history for this message
Steve Baker (steve-stevebaker) wrote :
Changed in heat:
importance: Critical → High
assignee: nobody → Steve Baker (steve-stevebaker)
Revision history for this message
Steve Baker (steve-stevebaker) wrote :
Changed in heat:
status: Triaged → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: icehouse-1 → 2014.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.