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

Uninstalling the IBM MQ Operator using the Red Hat OpenShift CLI

You can use the Red Hat® OpenShift® CLI to uninstall the IBM® MQ Operator from Red Hat OpenShift. There are differences in the uninstall process, depending on whether the IBM MQ Operator is installed in a single namespace, or installed and available to all namespaces on the cluster.

Before you begin

Log in to your Red Hat OpenShift cluster using oc login.

Procedure

  • If the IBM MQ Operator is installed in a single namespace, complete the following substeps:
    1. Ensure you are in the correct project:
      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. Optional: 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 common 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>
  • 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. If you are using Red Hat OpenShift Container Platform 4.7, you might need to manually delete the validating web hook:
      oc delete validatingwebhookconfiguration namespace.validator.queuemanagers.mq.ibm.com
    8. Optional: If nothing else is using common services, you might want to uninstall the common services operator:

      Follow the instructions in Uninstalling common services in the IBM Cloud Pak foundational services product documentation.