Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-14611

Uninstallation blocked by dangling PersistentVolume

XMLWordPrintable

    • Important
    • No
    • Hypershift Sprint 238, Hypershift Sprint 239, Hypershift Sprint 240, Hypershift Sprint 241
    • 4
    • Approved
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The successful uninstall of a hosted cluster can be prevented by a customer's PersistentVolume that fails to clean up. This specific case happened in production.

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

       

      How reproducible:

      This is a guess, but it should be fairly reproducible.

      Steps to Reproduce:

      1. Install some external CSI operator/StorageClass, like the EFS operator in this case
      2. Create a PersistentVolume using that StorageClass
      3. Uninstall the cluster, which may not cleanup the PersistentVolume
      

      Actual results:

      bash-4.4$ k get pv
      NAME                                 CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS     CLAIM                                 STORAGECLASS   REASON   AGE
      pv-openshift-operators-pvc-dev-pep   1Gi        RWX            Retain           Released   openshift-operators/pvc-pvc-dev-pep   efs-sc                  4d3h
      
      YAML attached below in the comments - but there is no deletionTimestamp. After manually deleting the PV, the uninstall continued.

      Expected results:

      In the spirit of previous, similar OCPBUGS like https://issues.redhat.com/browse/OCPBUGS-11930, the uninstall should be able to give up on the complete cleanup of a PersistentVolume and progress after some time with some indication.

      Additional info:

      HCCO Logs looping with the following contents, specifically
      
      {"level":"info","ts":"2023-06-05T22:19:27Z","msg":"Ensuring persistent volumes are removed","controller":"resources","object":{"name":""},"namespace":"","name":"","reconcileID":"68967f3b-7f23-47f4-b547-8844e8bdc044"}
      
      Full loop:
      ❮ k logs -n ocm-production-243jo26a5v6i11gbqqp1a37hdslcp6dg-dev hosted-cluster-config-operator-6bbdd9cc4f-p8kqv --tail 20 -f
      Defaulted container "hosted-cluster-config-operator" out of: hosted-cluster-config-operator, availability-prober (init)
      {"level":"info","ts":"2023-06-05T22:19:27Z","msg":"Registry operator management state is blank or removed, done cleaning up","controller":"resources","object":{"name":""},"namespace":"","name":"","reconcileID":"68967f3b-7f23-47f4-b547-8844e8bdc044"}
      {"level":"info","ts":"2023-06-05T22:19:27Z","msg":"Image registry is removed","controller":"resources","object":{"name":""},"namespace":"","name":"","reconcileID":"68967f3b-7f23-47f4-b547-8844e8bdc044"}
      {"level":"info","ts":"2023-06-05T22:19:27Z","msg":"Ensuring ingress controllers are removed","controller":"resources","object":{"name":""},"namespace":"","name":"","reconcileID":"68967f3b-7f23-47f4-b547-8844e8bdc044"}
      {"level":"info","ts":"2023-06-05T22:19:27Z","msg":"There are no ingresscontrollers, nothing to do","controller":"resources","object":{"name":""},"namespace":"","name":"","reconcileID":"68967f3b-7f23-47f4-b547-8844e8bdc044"}
      {"level":"info","ts":"2023-06-05T22:19:27Z","msg":"Ingress controllers are removed","controller":"resources","object":{"name":""},"namespace":"","name":"","reconcileID":"68967f3b-7f23-47f4-b547-8844e8bdc044"}
      {"level":"info","ts":"2023-06-05T22:19:27Z","msg":"Ensuring load balancers are removed","controller":"resources","object":{"name":""},"namespace":"","name":"","reconcileID":"68967f3b-7f23-47f4-b547-8844e8bdc044"}
      {"level":"info","ts":"2023-06-05T22:19:27Z","msg":"Load balancers are removed","controller":"resources","object":{"name":""},"namespace":"","name":"","reconcileID":"68967f3b-7f23-47f4-b547-8844e8bdc044"}
      {"level":"info","ts":"2023-06-05T22:19:27Z","msg":"Ensuring persistent volumes are removed","controller":"resources","object":{"name":""},"namespace":"","name":"","reconcileID":"68967f3b-7f23-47f4-b547-8844e8bdc044"}
      {"level":"info","ts":"2023-06-05T22:19:27Z","msg":"Reconciling","controller":"resources","object":{"name":""},"namespace":"","name":"","reconcileID":"5c52d2e2-c700-44b6-968e-531eb641626d"}

              jparrill@redhat.com Juan Manuel Parrilla Madrid
              mshen.openshift Michael Shen (Inactive)
              Jie Zhao Jie Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: