Upgrading Watson Studio to a newer refresh on Version 4.0
To obtain fixes, security updates, and new functionality, you must upgrade to the latest refresh of Watson Studio. If Watson Studio is already installed on top of Cloud Pak for Data Version 4.0, a project administrator can upgrade Watson Studio to the latest refresh.
For a complete list of Watson Studio refreshes available on Cloud Pak for Data Version 4.0, see Operator and operand versions.
- Permissions you need for this task
- You must be an administrator of the OpenShift® project (Kubernetes namespace) where Watson Studio is installed.
- Information you need to confirm before you start this task
- Before you upgrade Watson Studio, confirm the name of the project where Watson Studio is installed.
Watson Studio is installed in the same project as Cloud Pak for Data.
- Information you need to complete this task
-
- Watson Studio requires the Cloud Pak for Data common core services. If the common core services are not installed in the project or are not at the correct version, the common core services will be automatically installed when you upgrade Watson Studio, which will increase the amount of time the upgrade takes to complete.
- You cannot change the storage that is associated with this installation. If you try to change the storage, the upgrade will fail.
Before you begin
Ensure that the cluster meets the minimum requirements for Watson Studio. For details, see System requirements.
Additionally, ensure that a cluster administrator completed the required Upgrade preparation tasks for your environment. Specifically, verify that a cluster administrator completed the following tasks:
- The latest Cloud Pak for Data refresh is installed. For details, see Upgrading Cloud Pak for Data.
- For environments that use a private container registry, such as air-gapped environments, the Watson Studio software images are mirrored to the private container registry. For details, see Mirroring images to your container registry.
- The catalog source for Watson Studio is updated. For details, see Updating catalog source.
- The operator for Watson Studio is upgraded. For details, see Upgrading operator subscriptions.
- If you are upgrading from a Cloud Pak for Data version earlier than 4.0.8 and you want to continue using your Python 3.7 and Python 3.8 notebooks, see Migrating Python 3.7 and 3.8 environments to Refresh 9 of Cloud Pak for Data 4.0 before you upgrade.
If these tasks are not complete, the Watson Studio upgrade will fail.
Procedure
Complete the following tasks to upgrade Watson Studio:
Upgrading the service
version
entry, you can skip this
task. Watson Studio is automatically upgraded when you install a newer version of the Watson Studio operator on the cluster.To upgrade Watson Studio:
- Log in to Red Hat® OpenShift Container Platform as a user with sufficient permissions to
complete the
task:
oc login OpenShift_URL:port
- Edit the WS custom
resource:
oc edit WS ws-cr \ --namespace project-name
- Update the
version
entry to 4.0.9 - Save your changes and exit. For example, if you are using
vi
, hit esc and enter :wq.
When you update the custom resource, the Watson Studio operator upgrades Watson Studio.
Verifying the upgrade
The Watson Studio operator continually
monitors the contents of the custom resource and updates the microservices that comprise Watson Studio as needed. The WS microservice is defined by the ws-cr custom resource. Watson Studio is upgraded when the WS status is Completed
.
To check the status of the upgrade:
- Change to the project where Watson Studio is
installed:
oc project project-name
- Get the status of Watson Studio (ws-cr):
oc get WS ws-cr -o jsonpath='{.status.wsStatus} {"\n"}'
Watson Studio is ready when the command returns
Completed
.
Choosing a service upgrade plan
You can choose how Watson Studio is upgraded when you install a newer version of the Watson Studio operator on the cluster.
- Automatic upgrade (recommended)
- If you want Watson Studio to be automatically
upgraded when you install a newer version of the Watson Studio operator on the
cluster, remove the
version
entry from the WS custom resource.To remove theversion
entry, run the following command. You must update the command with the appropriate project name before you run the command.oc patch WS ws-cr \ --namespace project-name \ --type=json \ --patch '[{ "op": "remove", "path": "/spec/version" }]'
- Manual upgrade
- If you want to manually upgrade Watson Studio when
you install a newer version of the Watson Studio operator, you can optionally
pin the installation to a specific version in the WS custom
resource.
For a list of operand versions supported by the Watson Studio operator, see Operator and operand versions.
The following command adds or updates theversion
entry to pin the installation at 4.0.9. You must update the command with the appropriate project name and version before you run the command.oc patch WS ws-cr \ --namespace project-name \ --type=merge \ --patch '{"spec": {"version":"4.0.9"}}'
What to do next
Upgrade all installed Watson™ Studio Runtimes. For details, see Watson Studio Runtimes for Watson Studio.
The service is ready to use. For details, see Analyzing data.