Skip to content

Commit 05a713a

Browse files
authored
Merge pull request #97897 from dfitzmau/OCPBUGS-59924
OCPBUGS-59924: Added disk wipe note to Removing a cluster that uses i…
2 parents a7b36f3 + fa72b20 commit 05a713a

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

installing/installing_openstack/uninstalling-cluster-openstack.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ toc::[]
88

99
You can remove a cluster that you deployed to {rh-openstack-first}.
1010

11+
// Removing a cluster that uses installer-provisioned infrastructure
1112
include::modules/installation-uninstall-clouds.adoc[leveloffset=+1]

modules/installation-uninstall-clouds.adoc

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ endif::[]
2323
ifeval::["{context}" == "uninstalling-cluster-ibm-power-vs"]
2424
:ibm-power-vs:
2525
endif::[]
26+
ifeval::["{context}" == "uninstalling-cluster-openstack"]
27+
:osp:
28+
endif::[]
2629

2730
:_mod-docs-content-type: PROCEDURE
2831
[id="installation-uninstall-clouds_{context}"]
2932
= Removing a cluster that uses installer-provisioned infrastructure
3033

31-
You can remove a cluster that uses installer-provisioned infrastructure from your cloud.
34+
You can remove a cluster that uses installer-provisioned infrastructure that you provisioned from your cloud platform.
3235

3336
ifdef::aws[]
3437
[NOTE]
@@ -39,7 +42,7 @@ endif::aws[]
3942

4043
[NOTE]
4144
====
42-
After uninstallation, check your cloud provider for any resources not removed properly, especially with User Provisioned Infrastructure (UPI) clusters. There might be resources that the installer did not create or that the installer is unable to access.
45+
After uninstallation, check your cloud provider for any resources that were not removed properly, especially with user-provisioned infrastructure clusters. Some resources might exist because either the installation program did not create the resource or could not access the resource.
4346
ifdef::gcp[]
4447
For example, some Google Cloud resources require link:https://cloud.google.com/iam/docs/overview#concepts_related_to_access_management[IAM permissions] in shared VPC host projects, or there might be unused link:https://cloud.google.com/sdk/gcloud/reference/compute/health-checks/delete[health checks that must be deleted].
4548
endif::gcp[]
@@ -50,6 +53,9 @@ endif::gcp[]
5053
* You have a copy of the installation program that you used to deploy the cluster.
5154
* You have the files that the installation program generated when you created your
5255
cluster.
56+
ifdef::osp[]
57+
* You installed the `core-installer` tool by entering the `sudo dnf install coreos-installer` command in your CLI.
58+
endif::osp[]
5359
ifdef::ibm-cloud,ibm-power-vs[]
5460
* You have configured the `ccoctl` binary.
5561
* You have installed the {ibm-cloud-name} CLI and installed or updated the VPC infrastructure service plugin. For more information see "Prerequisites" in the link:https://cloud.ibm.com/docs/vpc?topic=vpc-infrastructure-cli-plugin-vpc-reference&interface=ui#cli-ref-prereqs[{ibm-cloud-name} CLI documentation].
@@ -60,11 +66,11 @@ ifdef::ibm-cloud,ibm-power-vs[]
6066
. If the following conditions are met, this step is required:
6167
** The installer created a resource group as part of the installation process.
6268
** You or one of your applications created persistent volume claims (PVCs) after the cluster was deployed.
63-
6469
+
6570
In which case, the PVCs are not removed when uninstalling the cluster, which might prevent the resource group from being successfully removed. To prevent a failure:
66-
71+
+
6772
.. Log in to the {ibm-cloud-name} using the CLI.
73+
+
6874
.. To list the PVCs, run the following command:
6975
+
7076
[source,terminal]
@@ -73,7 +79,7 @@ $ ibmcloud is volumes --resource-group-name <infrastructure_id>
7379
----
7480
+
7581
For more information about listing volumes, see the link:https://cloud.ibm.com/docs/vpc?topic=vpc-infrastructure-cli-plugin-vpc-reference&interface=ui#volume-cli[{ibm-cloud-name} CLI documentation].
76-
82+
+
7783
.. To delete the PVCs, run the following command:
7884
+
7985
[source,terminal]
@@ -107,7 +113,8 @@ ifdef::ibm-cloud,ibm-power-vs[]
107113
You must set the variable name exactly as specified. The installation program expects the variable name to be present to remove the service IDs that were created when the cluster was installed.
108114
====
109115
endif::ibm-cloud,ibm-power-vs[]
110-
. From the directory that contains the installation program on the computer that you used to install the cluster, run the following command:
116+
117+
. From the directory that has the installation program on the computer that you used to install the cluster, run the following command:
111118
+
112119
[source,terminal]
113120
----
@@ -121,18 +128,14 @@ ifndef::ibm-power-vs[]
121128
+
122129
[NOTE]
123130
====
124-
You must specify the directory that contains the cluster definition files for
125-
your cluster. The installation program requires the `metadata.json` file in this
126-
directory to delete the cluster.
131+
You must specify the directory that includes the cluster definition files for your cluster. The installation program requires the `metadata.json` file in this directory to delete the cluster.
127132
====
128133
endif::ibm-power-vs[]
129134
ifdef::ibm-power-vs[]
130135
+
131136
[NOTE]
132137
====
133-
* You must specify the directory that contains the cluster definition files for
134-
your cluster. The installation program requires the `metadata.json` file in this
135-
directory to delete the cluster.
138+
* You must specify the directory that has the cluster definition files for your cluster. The installation program requires the `metadata.json` file in this directory to delete the cluster.
136139
137140
* You might have to run the `openshift-install destroy` command up to three times to ensure a proper cleanup.
138141
====
@@ -156,9 +159,11 @@ If your cluster uses Technology Preview features that are enabled by the `TechPr
156159
--
157160
endif::ibm-cloud,ibm-power-vs[]
158161

159-
. Optional: Delete the `<installation_directory>` directory and the
160-
{product-title} installation program.
162+
ifdef::osp[]
163+
. Optional: Use the `coreos-installer` tool to add the `coreos.inst.wipe=yes` flag to the Preboot Execution Environment (PXE) boot configuration. This operation wipes the disk on your system so that if you create a new cluster, you have a clean installation environment. For more detailed instructions, see link:https://access.redhat.com/solutions/7128657[How to wipe OpenStack disks in {product-title} 4 reinstallation] (Knowledgebase article).
164+
endif::osp[]
161165

166+
. Optional: Delete the `<installation_directory>` directory and the {product-title} installation program.
162167

163168
ifeval::["{context}" == "uninstalling-cluster-aws"]
164169
:!aws:
@@ -172,5 +177,8 @@ endif::[]
172177
ifeval::["{context}" == "uninstalling-cluster-ibm-power-vs"]
173178
:!ibm-power-vs:
174179
endif::[]
180+
ifeval::["{context}" == "uninstalling-cluster-openstack"]
181+
:!osp:
182+
endif::[]
175183

176184
// The above CCO credential removal for {ibm-cloud-title} is only necessary for manual mode. Future releases that support other credential methods will not require this step.

0 commit comments

Comments
 (0)