deleting overcloud but stack is not DELETE_IN_PROGRESS

Bug #1556407 reported by PanFengyun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-heatclient
Fix Released
Undecided
PanFengyun

Bug Description

After excuting "heat stack-delete overcloud", the stack_status of overcloud is not DELETE_IN_PROGRESS.

Reduction step:
1.deploying overcloud
---------
# openstack overcloud deploy --templates ~/templates/my-overcloud --control-scale 1 --compute-scale 1 --control-flavor control --compute-flavor compute --neutron-public-interface nic1 --neutron-network-type vxlan --neutron-tunnel-types vxlan --ntp-server 192.168.220.5
# heat stack-list
+--------------------------------------+------------+--------------------+---------------------+--------------+
| id | stack_name | stack_status | creation_time | updated_time |
+--------------------------------------+------------+--------------------+---------------------+--------------+
| 47b54ecb-b010-475d-81fd-619fcc9b601f | overcloud | CREATE_COMPLETE | 2016-03-11T14:52:02 | None |
+--------------------------------------+------------+--------------------+---------------------+--------------+
---------
2.delete overcloud
----------
# heat stack-delete overcloud
+--------------------------------------+------------+-----------------+---------------------+--------------+
| id | stack_name | stack_status | creation_time | updated_time |
+--------------------------------------+------------+-----------------+---------------------+--------------+
| 47b54ecb-b010-475d-81fd-619fcc9b601f | overcloud | CREATE_COMPLETE | 2016-03-11T14:52:02 | None |
+--------------------------------------+------------+-----------------+---------------------+--------------+
# heat stack-list
+--------------------------------------+------------+--------------------+---------------------+--------------+
| id | stack_name | stack_status | creation_time | updated_time |
+--------------------------------------+------------+--------------------+---------------------+--------------+
| 47b54ecb-b010-475d-81fd-619fcc9b601f | overcloud | DELETE_IN_PROGRESS | 2016-03-11T14:52:02 | None |
+--------------------------------------+------------+--------------------+---------------------+--------------+
----------

Desired result:
# heat stack-delete overcloud
+--------------------------------------+------------+--------------------+---------------------+--------------+
| id | stack_name | stack_status | creation_time | updated_time |
+--------------------------------------+------------+--------------------+---------------------+--------------+
| 47b54ecb-b010-475d-81fd-619fcc9b601f | overcloud | DELETE_IN_PROGRESS | 2016-03-11T14:52:02 | None |
+--------------------------------------+------------+--------------------+---------------------+--------------+

reason:
investigating

Changed in heat:
assignee: nobody → PanFengyun (pan-feng-yun)
description: updated
Revision history for this message
Thomas Herve (therve) wrote :

I don't really think there is a bug, or at least I know why it's doing this: the delete operation is asynchronous, and doesn't return anything. To account for that, the client just does a stack-show after the delete, to return something to display. But at that point, the delete may not be already in progress.

Arguably we could remove that show, but can't because of compatibility.

Changed in heat:
status: New → Opinion
Changed in heat:
status: Opinion → New
Revision history for this message
PanFengyun (pan-feng-yun) wrote :

its reason:
stack-delete command will do :
1.do_stack_delete()
2.do_stack_list()

I think stack-delete command shoud not do do_stack_list.

affects: heat → python-heatclient
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-heatclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/292697

Changed in python-heatclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-heatclient (master)

Reviewed: https://review.openstack.org/292697
Committed: https://git.openstack.org/cgit/openstack/python-heatclient/commit/?id=4bf7e55aa369e7694d560284d767257abdf12895
Submitter: Jenkins
Branch: master

commit 4bf7e55aa369e7694d560284d767257abdf12895
Author: PanFengyun <pan_feng_yun@163.com>
Date: Thu Mar 17 12:59:07 2016 +0800

    stack-delete command should not call do_stack_list.

    the stack-delete operation is asynchronous, and should not return
    anything.

    Change-Id: I75287b612358c5e76e47a9e53200c23946f01d8f
    Closes-Bug: #1556407

Changed in python-heatclient:
status: In Progress → Fix Released
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/python-heatclient 1.2.0

This issue was fixed in the openstack/python-heatclient 1.2.0 release.

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.