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

Uninstall instructions supplied by the CSV creator should be visible no matter the optOut state

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.14.0
    • 4.13.0
    • Management Console
    • None
    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, if the `console.openshift.io/disable-operand delete: "true"` and `operator.openshift.io/uninstall-message: "some message"` annotations were used on an operator CSV, the uninstall instructions did not show up in the web console. With this update, the instructions to opt out of the installment are available. (link:https://issues.redhat.com/browse/OCPBUGS-13782[*OCPBUGS-13782*])
      Show
      * Previously, if the `console.openshift.io/disable-operand delete: "true"` and `operator.openshift.io/uninstall-message: "some message"` annotations were used on an operator CSV, the uninstall instructions did not show up in the web console. With this update, the instructions to opt out of the installment are available. (link: https://issues.redhat.com/browse/OCPBUGS-13782 [* OCPBUGS-13782 *])
    • Bug Fix
    • Done

      Description of problem:

      If both the below mentioned annotations are used on an operator CSV, the uninstall instructions don't show up on the UI.
      - console.openshift.io/disable-operand delete: "true"
      - operator.openshift.io/uninstall-message: "some message"

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

      ➜  $> oc version
      Client Version: 4.12.0
      Kustomize Version: v4.5.7
      Server Version: 4.13.0-rc.5
      Kubernetes Version: v1.26.3+379cd9f
      
      ➜  $> oc get co | grep console
      console                                    4.13.0-rc.5   True        False         False      4h49m
      

      How reproducible:

      Always

      Steps to Reproduce:

      1.Add both the mentioned annotations on an operator CSV. 
      2.Make sure "console.openshift.io/disable-operand delete" is set to "true".
      3.Upon clicking "Uninstall operator", the result can be observed on the pop-up.
      

      Actual results:

      The uninstall pop-up doesn't have the "Message from Operator developer" section.

      Expected results:

      The uninstall instructions should show up under "Message from Operator developer".

      Additional info:

      The two annotations seemed to be linked here, https://github.com/openshift/console/blob/3e0bb0928ce09030bc3340c9639b2a1df9e0a007/frontend/packages/operator-lifecycle-manager/src/components/modals/uninstall-operator-modal.tsx#LL395C10-L395C26

            [OCPBUGS-13782] Uninstall instructions supplied by the CSV creator should be visible no matter the optOut state

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Important: OpenShift Container Platform 4.14.0 bug fix and security update), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHSA-2023:5006

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Important: OpenShift Container Platform 4.14.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:5006

            Xiyun Zhao added a comment -

            This bug has been verified on payload 4.14.0-0.nightly-2023-05-30-110231

            Verification Step:

            1. Prepare an operator with annotation of console.openshift.io/disable-operand-delete: "true" and operator.openshift.io/uninstall-message: "Test OCPBUGS-13782".  eg: quay.io/xiyuzhao/flux-bundle-index:latest
            2. Import the CatalogSource and install the operator
            3. Trigger 'Uninstall Operator' action for the operator
            4. Check if a main message of "Operator <operator name> will be removed from <Operator installed namespace>" and "Message from Operator developer" is added in the Uninstall Operator pops up windows
            5. Check if the message defined in the annotation can be shown in the Uninstall Operator pops up windows
            6. Check if the newly added message is in i18n format

            Result: 

            4,5. Now when the annotation ** console.openshift.io/disable-operand-delete is set to true, the text defined in the operator.openshift.io/uninstall-message is shown under the text of  "Message from Operator developer" on the Uninstall Operator pops up windows

                   A main message of "Operator <operator name> will be removed from <Operator installed namespace> is added for all operators

                   All newly added message is in i18n format

            Xiyun Zhao added a comment - This bug has been verified on payload 4.14.0-0.nightly-2023-05-30-110231 Verification Step: Prepare an operator with annotation of console.openshift.io/disable-operand-delete: "true" and operator.openshift.io/uninstall-message: "Test OCPBUGS-13782 " .  eg: quay.io/xiyuzhao/flux-bundle-index:latest Import the CatalogSource and install the operator Trigger 'Uninstall Operator' action for the operator Check if a main message of "Operator <operator name> will be removed from <Operator installed namespace>" and "Message from Operator developer" is added in the Uninstall Operator pops up windows Check if the message defined in the annotation can be shown in the Uninstall Operator pops up windows Check if the newly added message is in i18n format Result:  4,5. Now when the annotation ** console.openshift.io/disable-operand-delete is set to true, the text defined in the operator.openshift.io/uninstall-message is shown under the text of  "Message from Operator developer" on the Uninstall Operator pops up windows        A main message of "Operator <operator name> will be removed from <Operator installed namespace> is added for all operators        All newly added message is in i18n format

              jhadvig@redhat.com Jakub Hadvig
              thn@redhat.com Thejas N (Inactive)
              Xiyun Zhao Xiyun Zhao
              Olivia Payne Olivia Payne
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: