[OpenShift Container Platform][IBM Cloud Pak for Integration]

Uninstalling the IBM MQ Operator

You can use the Red Hat® OpenShift® console or CLI to uninstall the IBM® MQ Operator from Red Hat OpenShift.

Procedure

  • Option 1: Uninstall the IBM MQ Operator with the OpenShift console.
    Note: If the IBM MQ Operator is installed across all projects/namespaces on the cluster, repeat steps 2-6 of the following procedure for each project where you want to delete queue managers.
    1. Log in to the Red Hat OpenShift Container Platform web console with your Red Hat OpenShift Container Platform cluster admin credentials.
    2. Change Project to the namespace from which you want to uninstall the IBM MQ Operator. Select the namespace from the Project dropdown list.
    3. In the navigation pane, click Operators > Installed Operators.
    4. Click the IBM MQ operator.
    5. Click the Queue Managers tab, to view the queue managers managed by this IBM MQ Operator.
    6. Delete one or more queue managers.

      Note that, although these queue managers continue to run, they might not function as expected without an IBM MQ Operator.

    7. Optional: If appropriate, repeat steps 2-6 for each project where you want to delete queue managers.
    8. Return to Operators > Installed Operators.
    9. Next to the IBM MQ operator, click the three dots menu and select Uninstall Operator.
  • Option 2: Uninstall the IBM MQ Operator with the OpenShift CLI
    1. Log in to your Red Hat OpenShift cluster using oc login.
    2. If the IBM MQ Operator is installed in a single namespace, complete the following substeps:
      1. Ensure you are in the project containing the IBM MQ Operator to be uninstalled:
        oc project <project_name>
      2. View the queue managers installed in the project:
        oc get qmgr
      3. Delete one or more queue managers:
        oc delete qmgr <qmgr_name>
        Note that, although these queue managers continue to run, they might not function as expected without an IBM MQ Operator.
      4. View the ClusterServiceVersion instances:
        oc get csv
      5. Delete the IBM MQ ClusterServiceVersion:
        oc delete csv <ibm_mq_csv_name>
      6. View the subscriptions:
        oc get subscription
      7. Delete all subscriptions:
        oc delete subscription <ibm_mq_subscription_name>
      8. If nothing else is using common services, you might want to uninstall the common services operator, and delete the operator group:
        1. Uninstall the common services operator, by following the instructions in Uninstalling foundational services in the IBM Cloud Pak® foundational services product documentation.
        2. View the operator group:
          oc get operatorgroup
        3. Delete the operator group:
          oc delete OperatorGroup <operator_group_name>
    3. If the IBM MQ Operator is installed and available to all namespaces on the cluster, complete the following substeps:
      1. View all the installed queue managers:
        oc get qmgr -A
      2. Delete one or more queue managers:
        oc delete qmgr <qmgr_name> -n <namespace_name>
        Note that, although these queue managers continue to run, they might not function as expected without an IBM MQ Operator.
      3. View the ClusterServiceVersion instances:
        oc get csv -A
      4. Delete the IBM MQ ClusterServiceVersion from the cluster:
        oc delete csv <ibm_mq_csv_name> -n openshift-operators
      5. View the subscriptions:
        oc get subscription -n openshift-operators
      6. Delete the subscriptions:
        oc delete subscription <ibm_mq_subscription_name> -n openshift-operators
      7. Optional: If nothing else is using common services, you might want to uninstall the common services operator. To do so, follow the instructions in Uninstalling foundational services in the IBM Cloud Pak foundational services product documentation.