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

Duplicate webhooks are present after operator upgrade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 4.12
    • OLM
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • No
    • None
    • None
    • Rejected
    • Phlogiston 250, Quality OLM Sprint 251
    • 2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

       Older webhooks of the operators are not getting deleted when the operator is upgraded to the latest version.
      

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

          

      How reproducible:

          Intermittently

      Steps to Reproduce:

      Operator name: IBM Storage Fusion (metadata.name: isf-operator.v2.7.1). There are multiple operators deployed by this operator in the ibm-spectrum-fusion-ns namespace. The duplicate webhook was found for all the operators deployed by it after its upgrade.
      
      Exact operator version: 2.7.1; Channel: v2.0.
      
      Webhook names:  There are several duplicate webhooks present such as mupdatemanager and vupdatemanager. There are a lot of other duplicate webhooks present as well. It can be found under the must-gather folder:
       a. Mutating webhooks: quay-io-openshift-release-dev-ocp-v4-0-art-dev-sha256-8477c3819e9c7dad1503d8af01a276ca7f8ae85137181d25da8cec5965febee0/cluster-scoped-resources/admissionregistration.k8s.io/mutatingwebhookconfigurations
       b. Validating webhooks:  quay-io-openshift-release-dev-ocp-v4-0-art-dev-sha256-8477c3819e9c7dad1503d8af01a276ca7f8ae85137181d25da8cec5965febee0/cluster-scoped-resources/admissionregistration.k8s.io/validatingwebhookconfigurations
      
      One of the CRs affected by the duplicate webhook:
      
         a. Kind: UpdateManager
         b. metadata.name: version
      
      The UpdateManager CR doesn't get updated as there are duplicate webhooks present (mupdatemanager and vupdatemanager) for the isf-update-operator (one of the operators deployed by the IBM Storage Fusion operator)     

      Actual results:

      Older webhooks of the operators are not getting deleted when the operator is upgraded to the latest version.    

      Expected results:

      Expectation: The older webhooks should be automatically deleted after the operator is upgraded.    

      Additional info:

          

              rh-ee-bpalmer Bryce Palmer
              rhn-support-sambekar Shubham Ambekar (Inactive)
              None
              None
              Xia Zhao Xia Zhao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: