Chapter 11. Updating OpenShift Container Storage
It is recommended to use the same version of Red Hat OpenShift Container Platform with Red Hat OpenShift Container Storage. Refer to this Red Hat Knowledgebase article for a complete OpenShift Container Platform and OpenShift Container Storage supportability and compatibility matrix.
First, you must update Red Hat OpenShift Container Platform ,and then, update Red Hat OpenShift Container Storage. If using Local Storage Operator, Local Storage Operator version must match with the Red Hat OpenShift Container Platform version in order to have the Local Storage Operator fully supported with Red Hat OpenShift Container Storage. Local Storage Operator does not get updated when Red Hat OpenShift Container Platform is updated. To check if your OpenShift Container Storage cluster uses the Local Storage Operator, see the Checking for Local Storage Operator deployments section of the Troubleshooting Guide.
If your cluster was deployed using local storage devices and uses the Local Storage Operator in Openshift Container Storage version 4.3, you must re-install the cluster and not update to version 4.4. For details on installation, see Installing OpenShift Container Storage using local storage devices.
11.1. Enabling automatic updates for OpenShift Container Storage operator
Use this procedure to enable automatic update approval for updating OpenShift Container Storage operator in OpenShift Container Platform.
Prerequisites
- Update the OpenShift Container Platform cluster to the latest stable release of version 4.3.X or 4.4.Y, see Updating Clusters.
Switch the Red Hat OpenShift Container Storage channel channel from
stable-4.3
tostable-4.4
. For details about channels, see OpenShift Container Platform upgrade channels and releases.NoteYou are required to switch channels only when you are updating minor versions (for example, updating from 4.3 to 4.4) and not when updating between batch updates of 4.4 (for example, updating from 4.4.0 to 4.4.1).
-
Ensure that all OpenShift Container Storage nodes are in
Ready
status. - Under Persistent Storage in Status card, confirm that the Ceph cluster is healthy and data is resilient.
- Ensure that you have sufficient time to complete the Openshift Container Storage (OCS) update process, as the update time varies depending on the number of OSDs that run in the cluster.
Procedure
- Log in to OpenShift Web Console.
-
Click Operators
Installed Operators -
Select the
openshift-storage
project. - Click on the OpenShift Container Storage operator name.
- Click Subscription tab and click the link under Approval.
- Select Automatic (default) and click Save.
Perform one of the following depending on the Upgrade Status:
Upgrade Status shows requires approval.
- Click on the Install Plan link.
- On the InstallPlan Details page, click Preview Install Plan.
- Review the install plan and click Approve.
- Wait for the Status to change from Unknown to Created.
-
Click Operators
Installed Operators -
Select the
openshift-storage
project. - Wait for the Status to change to Up to date
Upgrade Status does not show requires approval:
- Wait for the update to initiate. This may take up to 20 minutes.
-
Click Operators
Installed Operators -
Select the
openshift-storage
project. - Wait for the Status to change to Up to date
Verification steps
-
Click Overview
Persistent Storage tab and in Status card confirm that the OpenShift Container Storage cluster has a green tick mark indicating it is healthy. -
Click Operators
Installed Operators OpenShift Container Storage Operator. Under Storage Cluster, verify that the cluster service status in
Ready
.NoteOnce updated from OpenShift Container Storage version 4.3 to 4.4, the
Version
field here will still display 4.3. This is because theocs-operator
does not update the string represented in this field.- If verification steps fail, kindly contact Red Hat Support.
11.2. Manually updating OpenShift Container Storage operator
Use this procedure to update OpenShift Container Storage operator by providing manual approval to the install plan.
Prerequisites
- Update the OpenShift Container Platform cluster to the latest stable release of version 4.3.X or 4.4.Y, see Updating Clusters.
Switch the Red Hat OpenShift Container Storage channel channel from
stable-4.3
tostable-4.4
. For details about channels, see OpenShift Container Platform upgrade channels and releases.NoteYou are required to switch channels only when you are updating minor versions (for example, updating from 4.3 to 4.4) and not when updating between batch updates of 4.4 (for example, updating from 4.4.0 to 4.4.1).
-
Ensure that all OpenShift Container Storage nodes are in
Ready
status. - Under Persistent Storage in Status card, confirm that the Ceph cluster is healthy and data is resilient.
- Ensure that you have sufficient time to complete the Openshift Container Storage (OCS) update process, as the update time varies depending on the number of OSDs that run in the cluster.
Procedure
- Log in to OpenShift Web Console.
-
Click Operators
Installed Operators -
Select the
openshift-storage
project. - Click Subscription tab and click the link under Approval.
- Select Manual and click Save.
- Wait for the Upgrade Status to change to Upgrading.
- If the Upgrade Status shows requires approval, click on requires approval.
- On the InstallPlan Details page, click Preview Install Plan.
- Review the install plan and click Approve.
- Wait for the Status to change from Unknown to Created.
-
Click Operators
Installed Operators -
Select the
openshift-storage
project. - Wait for the Status to change to Up to date
Verification steps
-
Click Overview
Persistent Storage tab and in Status card confirm that the Ceph cluster has a green tick mark indicating it is healthy. -
Click Operators
Installed Operators OpenShift Container Storage Operator. Under Storage Cluster, verify that the cluster service status in
Ready
.NoteOnce updated from OpenShift Container Storage version 4.3 to 4.4, the
Version
field here will still display 4.3. This is because theocs-operator
does not update the string represented in this field.- If verification steps fail, kindly contact Red Hat Support.