Bug 1281557
| Summary: | rhel-osp-director: 8.0 - first attempt to run "heat stack-delete overcloud" shows in the status column the last available status. | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Alexander Chuzhoy <sasha> |
| Component: | python-heatclient | Assignee: | Steve Baker <sbaker> |
| Status: | CLOSED ERRATA | QA Contact: | Alexander Chuzhoy <sasha> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.0 (Liberty) | CC: | dnavale, jjoyce, jruzicka, jschluet, mburns, nlevinki, oblaut, ramishra, rhel-osp-director-maint, sasha, sbaker, shardy, srevivo, zbitter |
| Target Milestone: | ga | Keywords: | Reopened, UserExperience |
| Target Release: | 9.0 (Mitaka) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-heatclient-1.2.0-1.el7ost | Doc Type: | Bug Fix |
| Doc Text: |
The 'stack-delete' command displayed information about the heat stack immediately after requesting the delete. Deleting a heat stack is an asynchronous operation so the display status may not have yet changed to 'DELETE_IN_PROGRESS', and users may find this confusing.
The 'stack-delete' command now returns nothing, which is consistent with other OpenStack services delete commands.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-08-11 12:13:18 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Alexander Chuzhoy
2015-11-12 19:06:12 UTC
Because Heat starts stack operations in a separate thread, it can return a result to the client before the stack moves to the IN_PROGRESS state. When the client immediately queries the stack status it may see either the previous or the new status. It would be nice if this couldn't happen, but it is very difficult to fix cleanly and there are no plans to do so at the moment. I think the current behaviour is changed upstream not to do a stack-list with stack-delete. upstream bug: https://bugs.launchpad.net/python-heatclient/+bug/1556407 gerrit review: https://review.openstack.org/#/c/292697/ This will be fixed in rhos-9.0 but please note that rhos-8.0 has a new "openstack stack delete" command which doesn't have this issue. This has been fixed in upstream python-heatclient-1.2.0, which is not yet in RHOS-9. I suggest we rebase RHOS-9 to use python-heatclient-1.2.0 Verified: Environment: python-heatclient-1.2.0-1.el7ost.noarch Tried with both: heat stack-delete and openstack stack delete Both worked as expected. [stack@instack ~]$ heat stack-delete overcloud --yes WARNING (shell) "heat stack-delete" is deprecated, please use "openstack stack delete" instead Request to delete stack overcloud has been accepted. [stack@instack ~]$ heat stack-list WARNING (shell) "heat stack-list" is deprecated, please use "openstack stack list" instead +--------------------------------------+------------+--------------------+---------------------+---------------------+ | id | stack_name | stack_status | creation_time | updated_time | +--------------------------------------+------------+--------------------+---------------------+---------------------+ | 828e7f53-40db-4803-a3e2-9af7936d1e11 | overcloud | DELETE_IN_PROGRESS | 2016-06-28T16:30:27 | 2016-06-28T17:33:09 | +--------------------------------------+------------+--------------------+---------------------+---------------------+ [stack@instack ~]$ heat stack-list WARNING (shell) "heat stack-list" is deprecated, please use "openstack stack list" instead +--------------------------------------+------------+---------------+---------------------+---------------------+ | id | stack_name | stack_status | creation_time | updated_time | +--------------------------------------+------------+---------------+---------------------+---------------------+ | 1ca43517-f827-4509-be1f-ce5c412f276a | overcloud | UPDATE_FAILED | 2016-06-27T15:40:57 | 2016-06-28T15:53:48 | +--------------------------------------+------------+---------------+---------------------+---------------------+ [stack@instack ~]$ [stack@instack ~]$ openstack stack delete overcloud --yes [stack@instack ~]$ heat stack-list WARNING (shell) "heat stack-list" is deprecated, please use "openstack stack list" instead +--------------------------------------+------------+--------------------+---------------------+---------------------+ | id | stack_name | stack_status | creation_time | updated_time | +--------------------------------------+------------+--------------------+---------------------+---------------------+ | 1ca43517-f827-4509-be1f-ce5c412f276a | overcloud | DELETE_IN_PROGRESS | 2016-06-27T15:40:57 | 2016-06-28T15:53:48 | +--------------------------------------+------------+--------------------+---------------------+---------------------+ Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-1597.html |