![[OpenShift Container Platform]](ngocp.gif)
Upgrading the IBM MQ Operator using Red Hat OpenShift
The IBM® MQ Operator can be upgraded from the Red Hat® OpenShift® console or command line.
Before you begin
- The latest CD version of the IBM MQ Operator is 3.9.0.
- The latest SC2 version of the IBM MQ Operator is 3.2.22.
Procedure
- Option 1 : Upgrade the IBM MQ Operator using the
Red Hat OpenShift console.
- Log into your Red Hat OpenShift cluster console.
- Mirror images (air-gap only). If your cluster is in a restricted (air-gapped) network environment, you must mirror the IBM MQ images using the following values:
export OPERATOR_PACKAGE_NAME=ibm-mq export OPERATOR_VERSION=3.9.0For information about the contents of the IBM MQ CASE, which is used for air-gap installs and upgrades, see IBM MQ CASE for air-gap install and upgrade.
To create mirror images, see Mirroring images for an air-gapped cluster.
- Apply latest Catalog source.
If you are using the specific catalog source for the IBM MQ Operator, rather than the
ibm-operator-catalog, you must apply the catalog source for the new IBM MQ version.To move from using the IBM Operator Catalog to using the specific catalog source for the IBM MQ Operator, and gain greater control over upgrades, refer to the steps in Moving to the specific catalog source for the IBM MQ Operator before returning to complete the next step.
If you are using the IBM Operator catalog (some online installs only), proceed to the next step.
Otherwise, follow the instructions in Adding the IBM MQ Operator catalog source then proceed to the next step.
- Upgrade the IBM MQ Operator. New
major/minor IBM MQ Operator versions are delivered through new
Subscription Channels. To upgrade your Operator to a new major/minor version, you need to update the
selected channel in your IBM MQ Operator Subscription.
- From the navigation pane, click
Operators > Installed
Operators.
All installed Operators in the specified project are displayed.
- Select the IBM MQ Operator.
- Navigate to the Subscription tab.
- Click the Channel.
The Change Subscription Update Channel window is displayed.
- Select the desired channel, then click Save.
The operator upgrades to the latest version available to the new channel. See Version support for the IBM MQ Operator.
- From the navigation pane, click
Operators > Installed
Operators.
- Option 2 : Upgrade the IBM MQ Operator using the
Red Hat OpenShift command line.
- Log into your cluster using oc login.
- Mirror images (air-gap only). If your cluster is in a restricted (air-gapped) network environment, you must mirror the IBM MQ images using the following values:
export OPERATOR_PACKAGE_NAME=ibm-mq export OPERATOR_VERSION=3.9.0For information about the contents of the IBM MQ CASE, which is used for air-gap installs and upgrades, see IBM MQ CASE for air-gap install and upgrade.
To create mirror images, see Mirroring images for an air-gapped cluster.
- Apply latest Catalog source.
If you are using the specific catalog source for the IBM MQ Operator, rather than the
ibm-operator-catalog, you must apply the catalog source for the new IBM MQ version.To move from using the IBM Operator Catalog to using the specific catalog source for the IBM MQ Operator, and gain greater control over upgrades, refer to the steps in Moving to the specific catalog source for the IBM MQ Operator before returning to complete the next step.
If you are using the IBM Operator catalog (some online installs only), proceed to the next step.
Otherwise, follow the instructions in Adding the IBM MQ Operator catalog source then proceed to the next step.
-
Upgrade the IBM MQ Operator. New major or minor IBM MQ Operator versions are delivered through new subscription channels.
To upgrade your Operator to a new major or minor version, complete the following steps to update the
selected channel in your IBM MQ Operator Subscription.
- Ensure the required IBM MQ Operator Upgrade Channel is
available.
oc get packagemanifest ibm-mq -o=jsonpath='{.status.channels[*].name}' - Patch the
Subscriptionto move to the desired update channel (where vX.Y is the desired update channel identified in the previous step.oc patch subscription ibm-mq --patch '{"spec":{"channel":"vX.Y"}}' --type=merge
- Ensure the required IBM MQ Operator Upgrade Channel is
available.