Upgrading your OpenShift Data Foundation Regional Disaster Recovery environment
Virtual Private Cloud 4.21 and later
Learn when and how to upgrade the components of your OpenShift Data Foundation (ODF) Regional Disaster Recovery (RDR) environment, including Red Hat OpenShift on IBM Cloud, the Advanced Cluster Management (ACM) add-on, ODF, and the ODF-DR operator.
Before you begin
Upgrade your ODF-RDR environment when a new version of Red Hat OpenShift on IBM Cloud, ACM, or ODF is available, or when any component is old or approaching deprecation. Failure to upgrade may result in future outages.
Wait until upgrade versions for all three components are available before you start. This reduces the overall upgrade effort.
Upgrading the hub cluster
Hub cluster
Upgrade both the control plane and worker nodes on the hub cluster before upgrading any add-ons.
Before running any commands in this step, set your CLI context to the hub cluster.
ibmcloud oc cluster config --cluster HUB_CLUSTER_NAME --admin
- Update the cluster master to the target version.
ibmcloud oc cluster master update --cluster CLUSTER_NAME --version VERSION - Wait a few minutes, then confirm that the master update is complete.
ibmcloud oc cluster ls - List the worker nodes and note the ID of each node to update.
ibmcloud oc worker ls --cluster CLUSTER_NAME - Replace each worker node to update it to the same version as the master. Repeat for each worker node.
ibmcloud oc worker replace --cluster CLUSTER_NAME --worker WORKER_NODE_ID --update - Confirm that all worker nodes are running the target version and show a Ready status. This may take several minutes.
ibmcloud oc worker ls --cluster CLUSTER_NAME
Upgrading the managed clusters
Managed cluster
Before running any commands in this step, set your CLI context to the managed cluster you are upgrading. Repeat for each managed cluster.
ibmcloud oc cluster config --cluster MANAGED_CLUSTER_NAME --admin
Because the managed clusters run ODF, follow the ODF-aware node upgrade procedure, which covers both the Red Hat OpenShift on IBM Cloud and ODF upgrades. For detailed instructions, see Updating or replacing VPC worker nodes that use ODF.
Upgrading ACM on the hub cluster
Hub cluster
After all clusters are running the target Red Hat OpenShift on IBM Cloud version, upgrade the ACM add-on on the hub cluster.
Before running any commands in this step, set your CLI context to the hub cluster.
ibmcloud oc cluster config --cluster HUB_CLUSTER_NAME --admin
- Upgrade the ACM add-on to the target version. Replace
CLUSTER_NAMEwith the name of your hub cluster andVERSIONwith the target ACM version (for example,2.16).ibmcloud oc cluster addon update acm --cluster CLUSTER_NAME --version VERSION - Confirm that the add-on updated successfully. In the output, verify the ACM add-on shows the target version.
ibmcloud oc cluster addon ls --cluster CLUSTER_NAME
Upgrading the ODF Multicluster Orchestrator on the hub cluster
Hub cluster
After ODF is upgraded on all managed clusters, upgrade the ODF Multicluster Orchestrator on the hub cluster.
The OpenShift DR Hub Operator and OpenShift DR Cluster Operators are installed as dependencies of the ODF Multicluster Orchestrator and are upgraded automatically. You do not need to upgrade them manually.
-
Confirm the current subscription channel for the ODF Multicluster Orchestrator operator.
oc get subscription.operators.coreos.com odf-multicluster-orchestrator -n openshift-operators -o jsonpath='{.spec.channel}' -
Patch the subscription channel to the version that matches the ODF version you upgraded to on your managed clusters. The channel follows the format
stable-X.Y, whereX.Yis the ODF version. For example, if you upgraded ODF to 4.21, usestable-4.21.The ODF Multicluster Orchestrator version must match the ODF version installed on your managed clusters. Using a mismatched version may cause the DR policy to fail validation.
To confirm which channels are available, run the following command.
oc get packagemanifest odf-multicluster-orchestrator -n openshift-marketplace -o jsonpath='{.status.channels[*].name}'Then patch the subscription to the target channel. Replace
stable-4.21with the channel that matches your ODF version.oc patch subscription.operators.coreos.com odf-multicluster-orchestrator -n openshift-operators \ --type merge -p '{"spec":{"channel":"stable-4.21"}}' -
Confirm that the install plan for the new version has been created.
oc get installplan -n openshift-operatorsIf the install plan for the target version shows
APPROVED: false, you must manually approve it before the upgrade proceeds. ReplaceINSTALLPLAN_NAMEwith the name of the install plan for the target version.oc patch installplan INSTALLPLAN_NAME -n openshift-operators --type merge -p '{"spec":{"approved":true}}' -
Verify that the CSV for the target version shows
Succeededstatus.oc get csv -n openshift-operators | grep odf-multicluster -
Verify that the ODF Multicluster Orchestrator operator pods are running in the
openshift-operatorsnamespace.oc get pods -n openshift-operators | grep -i odfConfirm that both
odf-multicluster-consoleandodfmo-controller-managerpods showRunningstatus. -
Verify that the
DRPolicyis validated after reconciliation.oc get drpolicy -AConfirm that the
VALIDATEDcolumn showsTruefor all policies. If not, run the following command to check the status conditions.oc describe drpolicy <drpolicy_name> -
Verify that the
MirrorPeerhas finished reconciling.oc get mirrorpeers -AConfirm that the
PhaseshowsExchangedSecret. If it showsExchangingSecret, verify Submariner connectivity before proceeding.
For more information, see Installing ODF Multicluster Orchestrator in the Red Hat documentation.
Upgrading optional operators
If your environment includes the following operators, upgrade them after the ODF-DR operator.
- GitOps
- For more information, see GitOps overview in the Red Hat documentation.
- OADP
- For more information, see Introduction to OpenShift API for data protection in the Red Hat documentation.
Next steps
After completing all upgrades, verify that the environment is healthy and that disaster recovery is functioning correctly. For detailed verification steps, see Verifying your ODF Regional Disaster Recovery configuration.