Skip to content

Commit b3458c9

Browse files
authored
Merge pull request #97971 from dfitzmau/OCPBUGS-60164
OCPBUGS-60164: Added internal network cluster resource deletion to in…
2 parents 2c674f5 + 24cbb91 commit b3458c9

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

installing/installing_gcp/installing-gcp-user-infra-vpc.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ include::modules/installation-deployment-manager-bootstrap.adoc[leveloffset=+2]
127127
include::modules/installation-creating-gcp-control-plane.adoc[leveloffset=+1]
128128
include::modules/installation-deployment-manager-control-plane.adoc[leveloffset=+2]
129129

130+
// Removing bootstrap resources in GCP
130131
include::modules/installation-gcp-user-infra-wait-for-bootstrap.adoc[leveloffset=+1]
131132

132133
include::modules/installation-creating-gcp-worker.adoc[leveloffset=+1]

installing/installing_gcp/installing-gcp-user-infra.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ include::modules/installation-deployment-manager-bootstrap.adoc[leveloffset=+2]
124124
include::modules/installation-creating-gcp-control-plane.adoc[leveloffset=+1]
125125
include::modules/installation-deployment-manager-control-plane.adoc[leveloffset=+2]
126126

127+
// Removing bootstrap resources in GCP
127128
include::modules/installation-gcp-user-infra-wait-for-bootstrap.adoc[leveloffset=+1]
128129

129130
include::modules/installation-creating-gcp-worker.adoc[leveloffset=+1]

modules/installation-gcp-user-infra-wait-for-bootstrap.adoc

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55

66
:_mod-docs-content-type: PROCEDURE
77
[id="installation-gcp-user-infra-wait-for-bootstrap_{context}"]
8-
= Wait for bootstrap completion and remove bootstrap resources in GCP
8+
= Removing bootstrap resources in GCP
99

10-
After you create all of the required infrastructure in Google Cloud Platform
11-
(GCP), wait for the bootstrap process to complete on the machines that you
12-
provisioned by using the Ignition config files that you generated with the
13-
installation program.
10+
After you create all of the required infrastructure in {gcp-first}, wait for the bootstrap process to complete on the machines that you provisioned by using the Ignition config files. The installation program created the Ignition config files.
1411

1512
.Prerequisites
1613

@@ -20,23 +17,19 @@ installation program.
2017
2118
.Procedure
2219

23-
. Change to the directory that contains the installation program and run the
24-
following command:
20+
. Change to the directory that includes the installation program and run the following command:
2521
+
2622
[source,terminal]
2723
----
2824
$ ./openshift-install wait-for bootstrap-complete --dir <installation_directory> \ <1>
2925
--log-level info <2>
3026
----
31-
<1> For `<installation_directory>`, specify the path to the directory that you
32-
stored the installation files in.
33-
<2> To view different installation details, specify `warn`, `debug`, or
34-
`error` instead of `info`.
27+
<1> For `<installation_directory>`, specify the path to the directory where you stored the installation files.
28+
<2> To view different installation details, specify `warn`, `debug`, or `error` instead of `info`.
3529
+
36-
If the command exits without a `FATAL` warning, your production control plane
37-
has initialized.
30+
If the command exits without a `FATAL` warning, your production control plane has initialized.
3831

39-
. Delete the bootstrap resources:
32+
. To remove the bootstrap instance group from the backend services' backends, run the following commands:
4033
+
4134
[source,terminal]
4235
----
@@ -45,9 +38,25 @@ $ gcloud compute backend-services remove-backend ${INFRA_ID}-api-internal --regi
4538
+
4639
[source,terminal]
4740
----
48-
$ gsutil rm gs://${INFRA_ID}-bootstrap-ignition/bootstrap.ign
41+
$ ingress_backendservice=$(gcloud compute backend-services list --filter="backends.group~${INFRA_ID}" --format='value(name)' | grep -v "${INFRA_ID}")
4942
----
5043
+
44+
.. If `ingress_backendservice` is not empty, run the following `describe` command for the bootstrap group:
45+
+
46+
[source,terminal]
47+
----
48+
$ gcloud compute backend-services describe ${ingress_backendservice} --region=${REGION}
49+
----
50+
+
51+
.. If the `describe` command displays that the bootstrap group is one of its backends, run the following `remove-backend` command to remove the bootstrap group from the backends:
52+
+
53+
[source,terminal]
54+
----
55+
$ gcloud compute backend-services remove-backend ${ingress_backendservice} --region=${REGION} --instance-group=${INFRA_ID}-bootstrap-ig --instance-group-zone=${ZONE_0}
56+
----
57+
58+
.. To remove the bucket and the deployment, run the following commands:
59+
+
5160
[source,terminal]
5261
----
5362
$ gsutil rb gs://${INFRA_ID}-bootstrap-ignition

0 commit comments

Comments
 (0)