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

cert-manager crd hangs on an uninstall

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.14.z
    • cert-manager
    • None
    • Important
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      cert-manager CRD CertManager hangs on an uninstall    

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

      cert-manager v1.14.1    
      OpenShift 4.14.29

      How reproducible:

      always    

      Steps to Reproduce:

      1.  Follow the guide on removing cert-manager [1]
      2.  In step 3c. when removing `CertManager` the CRD just sits and hangs via CLI or the UI
      
      Click the Options menu  next to each of the following CRDs, and select Delete Custom Resource Definition:
      
      Certificate
      CertificateRequest
      CertManager (operator.openshift.io)
      Challenge
      ClusterIssuer
      Issuer
      Order
      
      [1] https://docs.openshift.com/container-platform/4.14/security/cert_manager_operator/cert-manager-operator-uninstall.html    

      Actual results:

      CertManager CRD hangs and does not get deleted, all the other CRDs delete fine (Certificate, CertificateRequest, Challenge, ClusterIssuer, Issuer, Order)    

      Expected results:

      CertManager CRD should be deleted    

      Additional info:

      $ oc get crd certmanagers.operator.openshift.io -o yaml
      apiVersion: apiextensions.k8s.io/v1
      kind: CustomResourceDefinition
      metadata:
        annotations:
          controller-gen.kubebuilder.io/version: v0.14.0
          operatorframework.io/installed-alongside-a1abdf3be28e9e63: cert-manager-operator/cert-manager-operator.v1.14.1
        creationTimestamp: "2024-11-19T02:13:22Z"
        deletionTimestamp: "2024-11-19T13:54:47Z"
        finalizers:
        - customresourcecleanup.apiextensions.k8s.io
        generation: 1
        labels:
          operators.coreos.com/openshift-cert-manager-operator.cert-manager-operator: ""
        name: certmanagers.operator.openshift.io
        resourceVersion: "335132"
        uid: facd0d4f-df8e-4fda-ba80-6fad224f0112
      spec:
        conversion:
          strategy: None
        group: operator.openshift.io
        names:
          kind: CertManager
          listKind: CertManagerList
          plural: certmanagers
          singular: certmanager
        scope: Cluster
        versions:
      [...]
      status:
        acceptedNames:
          kind: CertManager
          listKind: CertManagerList
          plural: certmanagers
          singular: certmanager
        conditions:
        - lastTransitionTime: "2024-11-19T02:13:22Z"
          message: no conflicts found
          reason: NoConflicts
          status: "True"
          type: NamesAccepted
        - lastTransitionTime: "2024-11-19T02:13:22Z"
          message: the initial names have been accepted
          reason: InitialNamesAccepted
          status: "True"
          type: Established
        - lastTransitionTime: "2024-11-19T13:54:47Z"
          message: CustomResource deletion is in progress
          reason: InstanceDeletionInProgress
          status: "True"
          type: Terminating
        storedVersions:
        - v1alpha1
      
      I did notice that reinstalling the cert-manager operator does seem to work though.

              tgeer@redhat.com Trilok Geer
              rh-ee-syangsao Sam Yangsao
              Yuedong Wu Yuedong Wu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: