-
Bug
-
Resolution: Done
-
Normal
-
4.12.z, 4.11.z
-
None
Description of problem:
openshift-install destroy unable to delete PVC disks in GCP if cluster identifier is longer than 22 characters
Version-Release number of selected component (if applicable):
$ openshift-install version openshift-install 4.11.0-0.nightly-2022-06-21-040754 built from commit f912534f12491721e3874e2bf64f7fa8d44aa7f5 release image registry.ci.openshift.org/ocp/release@sha256:8c9769feeebd89a032e6d3710304634dc45ec5a3b29f0d70d2d295428a1d2789 release architecture amd64 $
How reproducible:
Always
Steps to Reproduce:
1. IPI install a cluster on GCP, with the cluster name is longer than 22 characters 2. Create pvc 3. Destroy the cluster
Actual results:
The disk created by the pvc is not deleted.
Expected results:
Everything of the cluster should be deleted, after destroying the cluster.
Additional info:
$ openshift-install version openshift-install 4.11.0-0.nightly-2022-06-21-040754 built from commit f912534f12491721e3874e2bf64f7fa8d44aa7f5 release image registry.ci.openshift.org/ocp/release@sha256:8c9769feeebd89a032e6d3710304634dc45ec5a3b29f0d70d2d295428a1d2789 release architecture amd64 $ $ export KUBECONFIG=/home/fedora/testabc/auth/kubeconfig $ oc create -f pvc01.yaml persistentvolumeclaim/jiwei-pvc01-csi created Warning: would violate PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "hello-storage" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "hello-storage" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "hello-storage" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "hello-storage" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost") deployment.apps/jiwei-dep01 created $ oc get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE jiwei-pvc01-csi Bound pvc-451c832c-db76-453c-accd-ea7ef8288874 1Gi RWO standard 7s $ oc get deployments NAME READY UP-TO-DATE AVAILABLE AGE jiwei-dep01 1/1 1 1 22s $ gcloud compute disks list --filter='name~gcpuser' NAME LOCATION LOCATION_SCOPE SIZE_GB TYPE STATUS gcpuser-a-ocp-redhat-r-pvc-451c832c-db76-453c-accd-ea7ef8288874 us-central1-a zone 1 pd-ssd READY gcpuser-a-ocp-redhat-rbvg8-master-0 us-central1-a zone 128 pd-ssd READY gcpuser-a-ocp-redhat-rbvg8-worker-a-2tj78 us-central1-a zone 128 pd-ssd READY gcpuser-a-ocp-redhat-rbvg8-master-1 us-central1-b zone 128 pd-ssd READY gcpuser-a-ocp-redhat-rbvg8-worker-b-rm7tr us-central1-b zone 128 pd-ssd READY gcpuser-a-ocp-redhat-rbvg8-master-2 us-central1-c zone 128 pd-ssd READY $ $ openshift-install destroy cluster --dir testabc INFO Credentials loaded from file "/home/fedora/.gcp/osServiceAccount.json" INFO Stopped instance gcpuser-a-ocp-redhat-rbvg8-worker-a-2tj78 INFO Stopped instance gcpuser-a-ocp-redhat-rbvg8-worker-b-rm7tr INFO Stopped instance gcpuser-a-ocp-redhat-rbvg8-master-2 INFO Stopped instance gcpuser-a-ocp-redhat-rbvg8-master-0 INFO Stopped instance gcpuser-a-ocp-redhat-rbvg8-master-1 INFO Deleted IAM project role bindings INFO Deleted service account projects/openshift-qe/serviceAccounts/gcpuser-a-oc-cloud-crede-t9csk@openshift-qe.iam.gserviceaccount.com INFO Deleted service account projects/openshift-qe/serviceAccounts/gcpuser-a-oc-openshift-g-wwmgw@openshift-qe.iam.gserviceaccount.com INFO Deleted service account projects/openshift-qe/serviceAccounts/gcpuser-a-oc-openshift-m-d8j7s@openshift-qe.iam.gserviceaccount.com INFO Deleted service account projects/openshift-qe/serviceAccounts/gcpuser-a-ocp-redhat-rbvg8-m@openshift-qe.iam.gserviceaccount.com INFO Deleted service account projects/openshift-qe/serviceAccounts/gcpuser-a-oc-openshift-c-z9c28@openshift-qe.iam.gserviceaccount.com INFO Deleted service account projects/openshift-qe/serviceAccounts/gcpuser-a-oc-openshift-i-56z2r@openshift-qe.iam.gserviceaccount.com INFO Deleted service account projects/openshift-qe/serviceAccounts/gcpuser-a-oc-openshift-g-vq22t@openshift-qe.iam.gserviceaccount.com INFO Deleted service account projects/openshift-qe/serviceAccounts/gcpuser-a-ocp-redhat-rbvg8-w@openshift-qe.iam.gserviceaccount.com INFO Deleted service account projects/openshift-qe/serviceAccounts/gcpuser-a-oc-openshift-i-mzpmt@openshift-qe.iam.gserviceaccount.com INFO Deleted 2 recordset(s) in zone qe INFO Deleted 3 recordset(s) in zone gcpuser-a-ocp-redhat-rbvg8-private-zone INFO Deleted DNS zone gcpuser-a-ocp-redhat-rbvg8-private-zone INFO Deleted bucket gcpuser-a-ocp-redhat-rbvg8-image-registry-us-central1-lgdsgjlf INFO Deleted instance gcpuser-a-ocp-redhat-rbvg8-master-1 INFO Deleted instance gcpuser-a-ocp-redhat-rbvg8-worker-b-rm7tr INFO Deleted instance gcpuser-a-ocp-redhat-rbvg8-master-2 INFO Deleted instance gcpuser-a-ocp-redhat-rbvg8-master-0 INFO Deleted instance gcpuser-a-ocp-redhat-rbvg8-worker-a-2tj78 INFO Deleted disk gcpuser-a-ocp-redhat-rbvg8-master-0 INFO Deleted disk gcpuser-a-ocp-redhat-rbvg8-worker-a-2tj78 INFO Deleted disk gcpuser-a-ocp-redhat-rbvg8-master-1 INFO Deleted disk gcpuser-a-ocp-redhat-rbvg8-worker-b-rm7tr INFO Deleted disk gcpuser-a-ocp-redhat-rbvg8-master-2 INFO Deleted firewall rule k8s-fw-a448760980c8b49928ffb551a8feaf72 INFO Deleted firewall rule k8s-a448760980c8b49928ffb551a8feaf72-http-hc INFO Deleted firewall rule gcpuser-a-ocp-redhat-rbvg8-api INFO Deleted firewall rule gcpuser-a-ocp-redhat-rbvg8-control-plane INFO Deleted firewall rule gcpuser-a-ocp-redhat-rbvg8-etcd INFO Deleted firewall rule gcpuser-a-ocp-redhat-rbvg8-health-checks INFO Deleted firewall rule gcpuser-a-ocp-redhat-rbvg8-internal-cluster INFO Deleted firewall rule gcpuser-a-ocp-redhat-rbvg8-internal-network INFO Deleted address gcpuser-a-ocp-redhat-rbvg8-cluster-ip INFO Deleted address gcpuser-a-ocp-redhat-rbvg8-cluster-public-ip INFO Deleted forwarding rule a448760980c8b49928ffb551a8feaf72 INFO Deleted forwarding rule gcpuser-a-ocp-redhat-rbvg8-api INFO Deleted forwarding rule gcpuser-a-ocp-redhat-rbvg8-api-internal INFO Deleted router gcpuser-a-ocp-redhat-rbvg8-router INFO Deleted subnetwork gcpuser-a-ocp-redhat-rbvg8-worker-subnet INFO Deleted target pool gcpuser-a-ocp-redhat-rbvg8-api INFO Deleted target pool a448760980c8b49928ffb551a8feaf72 INFO Deleted backend service gcpuser-a-ocp-redhat-rbvg8-api-internal INFO Deleted subnetwork gcpuser-a-ocp-redhat-rbvg8-master-subnet INFO Deleted instance group gcpuser-a-ocp-redhat-rbvg8-master-us-central1-a INFO Deleted instance group gcpuser-a-ocp-redhat-rbvg8-master-us-central1-b INFO Deleted instance group gcpuser-a-ocp-redhat-rbvg8-master-us-central1-c INFO Deleted health check gcpuser-a-ocp-redhat-rbvg8-api-internal INFO Deleted HTTP health check a448760980c8b49928ffb551a8feaf72 INFO Deleted HTTP health check gcpuser-a-ocp-redhat-rbvg8-api INFO Deleted network gcpuser-a-ocp-redhat-rbvg8-network INFO Time elapsed: 4m19s $ $ gcloud compute disks list --filter='name~gcpuser' NAME LOCATION LOCATION_SCOPE SIZE_GB TYPE STATUS gcpuser-a-ocp-redhat-r-pvc-451c832c-db76-453c-accd-ea7ef8288874 us-central1-a zone 1 pd-ssd READY $
- blocks
-
OCPBUGS-5931 openshift-install destroy unable to delete PVC disks in GCP if cluster identifier is longer than 22 characters
- Closed