stack stuck in IN_PROGRESS with invalid external_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Rabi Mishra |
Bug Description
1. Creating stack with a wrong external_id, results in the stack stuck in IN_PROGRESS and the resource stuck in INIT_COMPLETE.
[stack@f24-devstack ~]$ cat server.yaml
heat_template_
resources:
server:
type: OS::Nova::Server
external_id: 774a9a4a-
properties:
flavor: m1.nano
image: cirros-
[stack@f24-devstack ~]$ heat stack-create test_stack -f server.yaml
WARNING (shell) "heat stack-create" is deprecated, please use "openstack stack create" instead
WARNING (shell) "heat stack-list" is deprecated, please use "openstack stack list" instead
+------
| id | stack_name | stack_status | creation_time | updated_time |
+------
| 3a5ec529-
+------
[stack@f24-devstack ~]$ heat resource-list test_stack
WARNING (shell) "heat resource-list" is deprecated, please use "openstack stack resource list" instead
+------
| resource_name | physical_
+------
| server | | OS::Nova::Server | INIT_COMPLETE | 2016-12-
+------
2. Also creating stack with external_id and an invalid property results in validation failure.
change a property flavor to 'm1.xxx'
[stack@f24-devstack ~]$ heat stack-create test_stack -f server.yaml
WARNING (shell) "heat stack-create" is deprecated, please use "openstack stack create" instead
ERROR: Property error: : resources.
Fix proposed to branch: master /review. openstack. org/413507
Review: https:/