The stack_status did not changed to right status immediately when doing stack_update and stack_delete

Bug #1509932 reported by Di XiaoLi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Incomplete
Undecided
Di XiaoLi

Bug Description

1. The stack_status did not changed to "UPDATE_IN_PROGRESS" immediately when executed "heat stack-update"

stack@dixiaoli-heat-devstack-2:~$ heat stack-update -f resource-group-stack.yaml -P flavor=m1.small stack_01
+--------------------------------------+------------+-----------------+---------------------+--------------+
| id | stack_name | stack_status | creation_time | updated_time |
+--------------------------------------+------------+-----------------+---------------------+--------------+
| 6a9ee7b4-b58e-413a-83c2-5683b32a7b7c | stack_01 | CREATE_COMPLETE | 2015-10-26T05:09:09 | None |
+--------------------------------------+------------+-----------------+---------------------+--------------+
stack@dixiaoli-heat-devstack-2:~$ heat stack-list
+--------------------------------------+------------+--------------------+---------------------+---------------------+
| id | stack_name | stack_status | creation_time | updated_time |
+--------------------------------------+------------+--------------------+---------------------+---------------------+
| 6a9ee7b4-b58e-413a-83c2-5683b32a7b7c | stack_01 | UPDATE_IN_PROGRESS | 2015-10-26T05:09:09 | 2015-10-26T05:10:35 |
+--------------------------------------+------------+--------------------+---------------------+---------------------+

2.The stack_status did not changed to "DELETE_IN_PROGRESS" immediately when executed "heat stack-delete"

stack@dixiaoli-heat-devstack-2:~$ heat stack-delete stack_01
+--------------------------------------+------------+-----------------+---------------------+---------------------+
| id | stack_name | stack_status | creation_time | updated_time |
+--------------------------------------+------------+-----------------+---------------------+---------------------+
| f00b65be-e9c9-48d2-a275-e9c663649124 | stack_01 | UPDATE_COMPLETE | 2015-10-26T05:18:11 | 2015-10-26T05:19:17 |
+--------------------------------------+------------+-----------------+---------------------+---------------------+
stack@dixiaoli-heat-devstack-2:~$ heat stack-list
+--------------------------------------+------------+--------------------+---------------------+---------------------+
| id | stack_name | stack_status | creation_time | updated_time |
+--------------------------------------+------------+--------------------+---------------------+---------------------+
| f00b65be-e9c9-48d2-a275-e9c663649124 | stack_01 | DELETE_IN_PROGRESS | 2015-10-26T05:18:11 | 2015-10-26T05:19:17 |
+--------------------------------------+------------+--------------------+---------------------+---------------------+

Di XiaoLi (dixiaoli)
Changed in heat:
assignee: nobody → Di XiaoLi (dixiaobj)
Revision history for this message
Steven Hardy (shardy) wrote :

This is expected, both those calls are asynchronous, and as such the API call starts the operation and the status gets updated after the call completes.

The bug really is that the API doesn't consistently return 202 (accepted) for all asynchronous operations, which is a known issue and something we're planning to fix if/when we create a v2 API:

https://wiki.openstack.org/wiki/Heat/Blueprints/V2API

https://review.openstack.org/#/c/184863/

Changed in heat:
status: New → Incomplete
Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
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.