Upgrading in Red Hat® OpenShift® Container Platform environments

Before you begin

Upgrading IBM Foundational Services

Before you upgrade to IBM Process Mining version 2.0.1, you must install or upgrade to IBM Foundational Services version 4.10. You can use the procedure that is included in Upgrading foundational services to upgrade to the IBM Foundational Services version 4.10.

Installing Operator dependencies

Before you upgrade to IBM Process Mining version 2.0.1, you must upgrade the CatalogSource for the following dependencies:

  • IBM Db2 Operator
  • IBM PostgreSQL Operator
  • IBM Cert Manager Catalog
  • IBM Licensing Catalog
Important: You need to upgrade these dependencies only if they are not already installed on the system.
cat <<EOF | oc apply -f -
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: ibm-db2uoperator-catalog
  namespace: openshift-marketplace
spec:
  displayName: IBM DB2 Operator Catalog
  publisher: IBM
  sourceType: grpc
  image: icr.io/cpopen/ibm-db2uoperator-catalog@sha256:278fa6bbaa834faa4a0ec522cd85a301a088e610d8f5a74d7981f172d30cd5d4
  updateStrategy:
    registryPoll:
      interval: 45m
EOF


cat <<EOF | oc apply -f -
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: cloud-native-postgresql-catalog
  namespace: openshift-marketplace
  annotations:
    bedrock_catalogsource_priority: '1'
spec:
  displayName: Cloud Native Postgresql Catalog
  publisher: IBM
  sourceType: grpc
  image: icr.io/cpopen/ibm-cpd-cloud-native-postgresql-operator-catalog@sha256:0b46a3ec66622dd4a96d96243602a21d7a29cd854f67a876ad745ec524337a1f
  updateStrategy:
    registryPoll:
      interval: 45m
  priority: 100
EOF

apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: ibm-cert-manager-catalog
  namespace: openshift-marketplace
spec:
  displayName: ibm-cert-manager
  publisher: IBM
  sourceType: grpc
  image: icr.io/cpopen/ibm-cert-manager-operator-catalog:4.2.11
  updateStrategy:
    registryPoll: interval: 4
EOF

kind: CatalogSource
metadata:
  name: ibm-licensing-catalog
  namespace: openshift-marketplace
spec:
  displayName: ibm-licensing
  publisher: IBM
  sourceType: grpc
  image: icr.io/cpopen/ibm-licensing-catalog:4.2.11
  updateStrategy:
    registryPoll: interval: 45m
EOF

You can upgrade an external MongoDB to an external PostrgreSQL. For more information, see Migration to PostgreSQL.

Changing the CRD

You must change the spec.version field to match the new version of the operand in the IBM Process Mining Custom Resource Definition (CRD), and add the mandatory attributes of the new version in the custom resource definition.

  1. Log in to the target cluster by running the following commands:

    oc login https://<CLUSTERIP>:<port> -u <ADMINISTRATOR>
    
    oc project <project_name>
    

    Optionally, you can use the following command to open a terminal window and log in to your cluster:

    oc login --token=<LOGIN TOKEN> --server=https://<SERVER URL> 
    

    Do the following steps to get the login command:

    1. Log in to the Red Hat OpenShift Web Console.
    2. Under the profile of the admin user (for example, kubeadmin), click Copy login command > Display Token, copy the command, and paste it in the terminal.
  2. Change the IBM Process Mining custom resource by running the following command:

    oc edit processmining <processmining_instance_name>
    

    Where <processmining_instance_name> is the IBM Process Mining instance name.

  3. Check the spec.version field, and modify it to match the new version.

Verifying the upgrade

To verify that IBM Process Mining is correctly upgraded, refer to the steps in Validating installation.

Recovering to last stable running state

To recover to the last stable running state, you must roll back the version as described in the previous step.

Upgrading to an interim fix

It might be necessary to upgrade the dependencies before upgrading IBM Process Mining to an interim fix release. Follow the instructions in the readme to learn about the upgrade procedure.

When an interim fix is available, you can upgrade IBM Process Mining to a newer interim fix release. For more information, see interim fix readme files and Upgrading interim fix dependencies.