-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.12
-
None
-
CLOUD Sprint 230, CLOUD Sprint 234
-
2
-
False
-
Description of problem:
[GCP] [capi] Deletion of cluster is happening , it shouldn't be allowed
Version-Release number of selected component (if applicable):
4.12.0-0.nightly-2022-12-20-225612
How reproducible:
Always
Steps to Reproduce:
1.Enable featuregate , using featureSet: TechPreviewNoUpgrade 2.Wait for capi pods to get deployed to openshift-cluster-api namespace , it might take 10-15 mins or so 3.Create cluster using
apiVersion: cluster.x-k8s.io/v1beta1 kind: Cluster metadata: name: miyadav-xxx-xxxx namespace: openshift-cluster-api spec: infrastructureRef: apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 kind: GCPCluster name: miyadav-xxx-xxxx namespace: openshift-cluster-api [miyadav@miyadav gcp]$ oc create -f cluster.yaml cluster.cluster.x-k8s.io/miyadav-2112v2-dpbkz created [miyadav@miyadav gcp]$ oc get cluster NAME PHASE AGE VERSION miyadav-2112v2-dpbkz Provisioning 4s [miyadav@miyadav gcp]$ oc get cluster NAME PHASE AGE VERSION miyadav-2112v2-dpbkz Provisioning 2m16s [miyadav@miyadav gcp]$ oc get cluster NAME PHASE AGE VERSION miyadav-2112v2-dpbkz Provisioning 2m20s [miyadav@miyadav gcp]$ oc delete cluster miyadav-2112v2-dpbkz cluster.cluster.x-k8s.io "miyadav-2112v2-dpbkz" deleted Expected : Error should occur like - deletion of cluster is not allowed Actual - deletion happened successfully
Additional info:
Might be similar, but may need different changes hence raising to track clearly - https://issues.redhat.com/browse/OCPBUGS-1493.
Please review -
https://drive.google.com/file/d/1y3wXvVCQLh3xhhLKaaw8dNMIMb3uL4Tl/view?usp=sharing