Upgrading IBM Cloud Pak for Data (Upgrading from Version 4.5 to Version 4.7)
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.7 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.
After you upgrade the IBM Cloud Pak foundational services for the instance, you can upgrade the IBM Cloud Pak for Data control plane and services.
- Upgrade phase
Updating your client workstation
- Who needs to complete this task?
-
Instance administrator An instance administrator can complete this task.
- When do you need to complete this task?
-
Repeat as needed If you have multiple instances of Cloud Pak for Data on the cluster, this task for each instance that you plan to upgrade to Version 4.7.
Before you begin
In addition, ensure that you source the environment variables before you run the commands in this task.
Analytics Engine powered by Apache Spark
The following steps apply only to environments that use Red Hat® OpenShift® Data Foundation storage.
- Run the following command to determine whether the
blockStorageClassparameter is set toocs-storagecluster-ceph-rbdin theZenServicecustom resource:oc get ZenService lite-cr -n ${PROJECT_CPD_INST_OPERANDS} -o yaml | grep blockStorageClass- If the command returns
ocs-storagecluster-ceph-rbd, proceed to the next step. - If the command returns a value other than
ocs-storagecluster-ceph-rbd, you can skip the remaining steps.
- If the command returns
- Run the following command to determine whether the
blockStorageClassparameter is set toocs-storagecluster-ceph-rbdin theaecustom resource:oc get ae analyticsengine-sample -n ${PROJECT_CPD_INST_OPERANDS} -o yaml | grep blockStorageClass- If the command returns
ocs-storagecluster-ceph-rbd, no changes are needed. - If the command returns a value other than
ocs-storagecluster-ceph-rbd, proceed to the next step to update the Analytics Engine powered by Apache Spark custom resource. - If the command returns an empty response, proceed to the next step to update the Analytics Engine powered by Apache Spark custom resource.
- If the command returns
- Update the
blockStorageClassproperty in the Analytics Engine powered by Apache Spark custom resource:oc patch ae analyticsengine-sample \ --namespace=${PROJECT_CPD_INST_OPERANDS} \ --type merge \ --patch '{"spec": {"blockStorageClass": "ocs-storagecluster-ceph-rbd"}}'
Watson Machine Learning
If Watson Machine Learning is installed, run the following commands to force the Watson Machine Learning operator to run a reconcile loop.
- Put the Watson Machine
Learning service in maintenance
mode:
oc patch wmlbase wml-cr \ --namespace=${PROJECT_CPD_INST_OPERANDS} \ --type merge \ --patch '{"spec": {"ignoreForMaintenance": true}}' - Confirm that the service is in maintenance
mode:
The command should return output with the following format:oc get wmlbase \ --namespace=${PROJECT_CPD_INST_OPERANDS}NAME VERSION BUILD STATUS RECONCILED AGE wml-cr 4.5.x 4.5.x In-Maintenance 4.5.x 4d21h - Take the Watson Machine
Learning service out of maintenance
mode:
oc patch wmlbase wml-cr \ --namespace=${PROJECT_CPD_INST_OPERANDS} \ --type merge \ --patch '{"spec": {"ignoreForMaintenance": false}}'
Watson Machine Learning Accelerator
Starting in Cloud Pak for Data Version 4.7, Watson Machine Learning Accelerator notebooks are not supported.
If you use Watson Machine Learning Accelerator notebooks, you must export your notebooks before you upgrade Watson Machine Learning Accelerator. For more information, see Working with Watson Machine Learning Accelerator notebooks in IBM Cloud Pak for Data in the Watson Machine Learning Accelerator documentation.
Watson Knowledge Studio
If Watson Knowledge Studio is installed, prepare the service for upgrade:
- Update the Watson
Knowledge Studio custom
resource to include information about the required block and file storage
classes:
oc patch KnowledgeStudio wks \ --namespace=${PROJECT_CPD_INST_OPERANDS} \ --type merge \ --patch "{\"spec\": {\"global\": {\"blockStorageClass\": \"${STG_CLASS_BLOCK}\", \"fileStorageClass\": \"${STG_CLASS_FILE}\"}}}" - Scale down the MinIO pods for Watson
Knowledge Studio:
oc patch MinioCluster wks-minio \ --namespace=${PROJECT_CPD_INST_OPERANDS} \ --type merge \ --patch '{"spec":{"replicasForDev":0,"replicasForProd":0}}' oc patch KnowledgeStudio wks \ --namespace=${PROJECT_CPD_INST_OPERANDS} \ --type merge \ --patch '{"spec":{"minio":{"replicas":0}}}'
About this task
- Upgrade the Cloud Pak for Data control plane before you upgrade the services in the instance
- Upgrade the Cloud Pak for Data control plane and the services at the same time.
When you run the cpd-cli
manage
apply-olm command, all of the operators in the instance are
upgraded to the same version.
Procedure
What to do next
- Cloud Pak for Data control plane and services
- If you upgraded the Cloud Pak for Data control plane and the services in the instance, see Setting up services after install or upgrade.
- Cloud Pak for Data control plane only
- If you upgraded only the Cloud Pak for Data control plane, you must upgrade the services in the instance. For more information, see Services.