Bug 1397741

Summary: [Docs][Heat] Overcloud Stack deletion requires more steps than specified
Product: Red Hat OpenStack Reporter: Chaitanya Shastri <cshastri>
Component: documentationAssignee: Dan Macpherson <dmacpher>
Status: CLOSED CURRENTRELEASE QA Contact: RHOS Documentation Team <rhos-docs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: cshastri, dmacpher, srevivo
Target Milestone: ---Keywords: Documentation
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-25 08:04:46 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:

Description Chaitanya Shastri 2016-11-23 09:58:01 UTC
Description of problem:
Referring: https://access.redhat.com/documentation/en/red-hat-openstack-platform/10-beta/single/director-installation-and-usage/#sect-Removing_the_Overcloud

In RHOSP10 Beta release, to delete overcloud stack, we need to perform following 2 additional steps to delete it completely:

#openstack stack delete overcloud
#mistral environment-delete overcloud
#swift delete overcloud

If we just delete the stack using 'openstack stack delete overcloud', and try to create a new stack, it will not be allowed until the overcloud container is deleted.

Some outputs:

[stack@instack ~]$ mistral environment-list
+---------------------------+----------------------------------+---------+---------------------+---------------------+
| Name                      | Description                      | Scope   | Created at          | Updated at          |
+---------------------------+----------------------------------+---------+---------------------+---------------------+
| tripleo.undercloud-config | None                             | private | 2016-11-12 09:17:07 | <none>              |
| ssh_keys                  | SSH keys for TripleO validations | private | 2016-11-12 09:17:35 | <none>              |
| overcloud                 | None                             | private | 2016-11-12 11:39:19 | 2016-11-12 13:01:16 |
+---------------------------+----------------------------------+---------+---------------------+---------------------+

[stack@instack ~]$ swift list
ov-hc2tybp3ude-0-7bcyag7vhpvf-Controller-haxwhl72vrmk
ov-hc2tybp3ude-1-dmloixlvoyud-Controller-eranigf3wc22
ov-hc2tybp3ude-2-covo3grzhe5p-Controller-uyczgtaw63g6
ov-mrlskvnctd-0-6jypeqpylscd-NovaCompute-qhpruamqvq63
ov-mrlskvnctd-1-22ttlcmchxli-NovaCompute-f7xifygezvmy
overcloud


Version-Release number of selected component (if applicable):
RHOSP 10 Beta

How reproducible:
Always


Actual results:

Documentation only lists 'openstack stack delete overcloud' command to delete the overcloud stack.

Expected results:

Additional commands should be explicitly mentioned in the documentation to delete the overcloud.

Comment 1 Dan Macpherson 2016-12-09 06:14:34 UTC
Hi Chaitanya,

Thanks for reporting this. I'm not sure if this is completely accurate. As far as I know, if you delete the overcloud then redeploy, the director should replace the plan in the overcloud container with a new plan. I know this because I can delete and redeploy multiple times without clearing the container.

Can you provide logs to show the redeployment failure?

Comment 2 Chaitanya Shastri 2016-12-13 07:38:54 UTC
Hi Dan,

   Thank you for looking into this. Can we just hold on this bug for a while? I found a similar bug which has been reported and we can wait for its resolution to see if we need to change anything in our documentation: https://bugzilla.redhat.com/show_bug.cgi?id=1398323

The exact steps to reproduce the issue are mentioned in the aforementioned BZ.

Let me know your thoughts on this.

Comment 3 Dan Macpherson 2017-09-25 06:42:48 UTC
Hi Chaitanya,

Have added a command to remove the overcloud plan as per the doc text in BZ#1398323

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/10/html-single/director_installation_and_usage/#sect-Removing_the_Overcloud

For OSP11+, the command to use is "openstack overcloud delete [stack]", which should delete everything.

How does it look? Anything further required for this BZ?

Comment 4 Chaitanya Shastri 2017-09-25 06:47:20 UTC
Hi Dan,
  
   Thanks! That will do. You can close the BZ.

Regards,
Chaitanya

Comment 5 Dan Macpherson 2017-09-25 08:04:46 UTC
Thanks, Chaitanya!