Uninstalling OpenPages
An instance administrator can uninstall OpenPages.
- Who needs to complete this task?
-
Instance administrator To uninstall OpenPages, 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 IBM® Software Hub 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 IBM Software Hub control plane and the services for this instance of IBM Software Hub 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 OpenPages from an instance of IBM Software Hub.
Repeat as needed If you are responsible for multiple instances of IBM Software Hub, you can repeat this task to remove other instances of OpenPages on the cluster.
Information you need to complete this task
Review the following information before you uninstall OpenPages:
- 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
Before you begin
Create a IBM Software Hub user profile on the workstation from which you will uninstall OpenPages. For more information, see Creating a profile to use the cpd-cli management commands.
Procedure
Complete the following tasks to uninstall OpenPages:
Deleting service instances
Before you uninstall OpenPages, you must delete any service instances that are associated with OpenPages to ensure that each instance releases the resources that it reserved.
- 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 OpenPages.
From the IBM Software Hub web client:
- 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 openpages type.
-
Delete each openpages instance in the list.
Uninstalling the service
To uninstall OpenPages:
-
Log the
cpd-cliin to the Red Hat® OpenShift® Container Platform cluster:${CPDM_OC_LOGIN}Remember:CPDM_OC_LOGINis an alias for thecpd-cli manage login-to-ocpcommand. - Delete the custom resource and operator for OpenPages.
cpd-cli manage uninstall-components \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=openpages \ --include_dependency=trueWait for thecpd-clito return the following message:[SUCCESS]... The uninstall-components command ran successfully
./cpd_cli_linux/cpd-cli manage delete-cr /
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} /
--components=openpages /
--tethered_instance_ns=${PROJECT_CPD_INSTANCE_TETHERED} /
--include_dependency=true