Uninstalling Watson Query
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.
An instance administrator can uninstall Watson Query.
- Who needs to complete this task?
-
Instance administrator To uninstall Watson Query, you must be an instance administrator. An instance administrator has permission to manage software in the following projects:
- The operators project for the instance
-
The operators for this instance of Cloud Pak for Data are installed in the operators project. In the uninstall commands, the
${PROJECT_CPD_INST_OPERATORS}environment variable refers to the operators project. - The operands project for the instance
-
The Cloud Pak for Data control plane and the services for this instance of Cloud Pak for Data are installed in the operands project. In the uninstall commands, the
${PROJECT_CPD_INST_OPERANDS}environment variable refers to the operands project. - The tethered projects for the instance
- If any projects are tethered to the operands project, you have permission to manage the software in the tethered projects.
- When do you need to complete this task?
-
Complete this task if you want to remove Watson Query from an instance of Cloud Pak for Data.
Repeat as needed If you are responsible for multiple instances of Cloud Pak for Data, you can repeat this task to remove other instances of Watson Query on the cluster.
Information you need to complete this task
Review the following information before you uninstall Watson Query:
- Environment variables
- The commands in this task use environment variables so that you can run the commands exactly as
written.
- If you don't have the script that defines the environment variables, see Setting up installation environment variables.
- To use the environment variables from the script, you must source the environment variables
before you run the commands in this task. For example,
run:
source ./cpd_vars.sh
Procedure
Complete the following tasks to uninstall Watson Query:
Deleting service instances
- Who needs to complete this task?
- A user with the Manage service instances permission must complete this task.
- When do you need to complete this task?
- Complete this task before you uninstall Watson Query.
- Log in to the web client as a user with sufficient permissions to complete the task.
- From the menu, select .
- Filter the list to show the watson-query type.
- Delete each watson-query instance in the list.
Deleting optional configuration files
cpd-dv-aux-ckpt-cmconfigmapdv-aux-br-cmconfigmap
If you have configured either of the following two optional resources in your deployment, you must manually delete them:
krb5-config-filesconfigmapconnection-ca-certssecret
Delete these files from the namespace where you just deleted the tethered
instance in the Deleting service instances step. For example, if you deleted a watson-query instance from namespace tethered-1, delete the configmaps
and the secret from the tethered-1 namespace.
Uninstalling the service
To uninstall Watson Query:
-
Run the
cpd-cli manage login-to-ocpcommand to log in to the cluster as a user with sufficient permissions to complete this task. For example:cpd-cli manage login-to-ocp \ --username=${OCP_USERNAME} \ --password=${OCP_PASSWORD} \ --server=${OCP_URL}Tip: Thelogin-to-ocpcommand takes the same input as theoc logincommand. Runoc login --helpfor details. - Delete the custom resource for the Watson
Query
service.
cpd-cli manage delete-cr \ --components=dv \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS}Note: When you delete the service by using the cpd-cli command, running instances are not deleted from the OpenShift®cluster.Wait for thecpd-clito return the following message before you proceed to the next step:[SUCCESS]... The delete-cr command ran successfully - Delete
the OLM objects for Watson
Query:
cpd-cli manage delete-olm-artifacts \ --cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --components=dvWait for the
cpd-clito return the following message:[SUCCESS]... The delete-olm-artifacts command ran successfully
What to do next
If IBM® Db2 Data Management Console was installed as part of Prerequisite services when you installed Watson Query and it is longer required, you can uninstall Db2® Data Management Console. For more information, see Uninstalling Db2 Data Management Console.