Upgrading OpenPages from Version 4.8.x to a later 4.8 refresh
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.8 reaches end of support. For more information, see Upgrading from IBM Cloud Pak for Data Version 4.8 to IBM Software Hub Version 5.1.
An instance administrator can upgrade OpenPages from Cloud Pak for Data Version 4.8.x to a later 4.8 refresh.
- Who needs to complete this task?
-
Instance administrator To upgrade 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 Cloud Pak for Data are installed in the operators project. In the upgrade 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 upgrade 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?
-
Review the following options to determine whether you need to complete this task:
- If you want to upgrade the Cloud Pak for Data control plane and one or more services at the same time, follow the process in Upgrading an instance of Cloud Pak for Data instead.
- If you didn't upgrade OpenPages when you upgraded the Cloud Pak for Data control plane, complete this task to upgrade OpenPages.
Repeat as needed If you are responsible for multiple instances of Cloud Pak for Data, you can repeat this task to upgrade more instances of OpenPages on the cluster.
Information you need to complete this task
Review the following information before you upgrade OpenPages:
- Version requirements
-
All the components that are associated with an instance of Cloud Pak for Data must be installed at the same release. For example, if the Cloud Pak for Data control plane is at Version 4.8.9, you must upgrade OpenPages to Version 4.8.9.
- 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
- Storage requirements
- You don't need to specify storage when you upgrade OpenPages.
Before you begin
This task assumes that the following prerequisites are met:
| Prerequisite | Where to find more information |
|---|---|
| The cluster meets the minimum requirements for OpenPages. | If this task is not complete, see System requirements. |
The workstation from which you will run the upgrade is set up as a client workstation and
the following command-line interfaces:
|
If this task is not complete, see Updating client workstations. |
| The Cloud Pak for Data control plane is upgraded. | If this task is not complete, see Upgrading an instance of Cloud Pak for Data. |
| For environments that use a private container registry, such as air-gapped environments, the OpenPages software images are mirrored to the private container registry. | If this task is not complete, see Mirroring images to a private container registry. |
For environments that use a private container registry, such as air-gapped environments,
the cpd-cli is configured to pull the olm-utils-v2 image from the private container registry. |
If this task is not complete, see Pulling the olm-utils-v2 image from the private container registry. |
Procedure
Complete the following tasks to upgrade OpenPages:
- If you are using the database that is provided with OpenPages, Update the application memory settings for Db2.
- Upgrading the service
- Validating the upgrade
- Upgrading existing service instances
- What to do next
Update the application memory settings for Db2
Edit the Db2uCluster custom resource to change the Db2 configuration settings
appl_memory to "80000 AUTOMATIC" and applheapsz
to "51200 AUTOMATIC".
The appl_memory configuration parameter specifies the size of the application
memory set.
The applheapsz configuration parameter refers to the total amount of application
memory that can be consumed by the entire application.
- Find the
Db2uClustercustom resource that you want to configure and assign it to an environment variable.- Retrieve a list of your
Db2uClustercustom resources by running the following command:oc get db2ucluster -n ${PROJECT_CPD_INST_OPERANDS} - Extract DB2UCLUSTER_ID from the OpenPages
instance:
DB2UCLUSTER_ID=$(oc get openpagesinstance ${OPENPAGES_INSTANCE_NAME} -n ${PROJECT_CPD_INST_OPERANDS} -o json | jq -r '.spec.zenServiceInstanceId')
- Retrieve a list of your
- Run the following command to edit the
Db2uClustercustom resource:oc edit db2ucluster db2oltp-${DB2UCLUSTER_ID} -n ${PROJECT_CPD_INST_OPERANDS} - Make changes to your database configuration parameter settings. To find your database
configuration parameters, see the
yamlpath:spec.environment.database.dbConfig.Under the key
dbConfig, ensure that the key-value pairs forappl_memoryandapplheapszare set as shown in the following example.spec: environment: database: dbConfig: APPLHEAPSZ: "51200 AUTOMATIC" APPL_MEMORY: "80000 AUTOMATIC"If the key-value pairs do not exist, add them.
For more information on the parameters, see Database configuration parameters in the Db2 documentation.
- Log in to the Db2®
container.
oc exec -it c-db2oltp-${DB2UCLUSTER_ID}-db2u-0 bash - Run the following commands from the database pod:
db2 connect to opx db2 update db cfg for opx using applheapsz 51200 automatic db2 update db cfg for opx using appl_memory 80000 automatic - Restart the database pod by running the following
command:
oc delete po c-db2oltp-${DB2UCLUSTER_ID}-db2u-0
Upgrading the service
cpd-cli
manage
apply-olm updates all of the OLM objects in the operators project
at the same time.To upgrade 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. - Update the custom resource for OpenPages.
cpd-cli manage apply-cr \ --components=openpages \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --license_acceptance=true \ --upgrade=true
Validating the upgrade
apply-cr command
returns:[SUCCESS]... The apply-cr command ran successfully
If you want to confirm that the custom resource status is
Completed, you can run the cpd-cli
manage
get-cr-status command:
cpd-cli manage get-cr-status \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
--components=openpages
Upgrading existing service instances
After you upgrade OpenPages, you must upgrade any service instances that are associated with OpenPages.
When you upgrade an OpenPages instance, OpenPages will be unavailable to users for a period of time. Perform the instance upgrade when users are not logged in.
When you upgrade an OpenPages instance that uses an internal database, the Db2 as a service CR is upgraded to the latest version.
- Before you begin
-
Create a profile on the workstation from which you will upgrade the service instances.
The profile must be associated with a Cloud Pak for Data user who has either the following permissions:
- Create service instances (
can_provision) - Manage service instances (
manage_service_instances)
For more information, see Creating a profile to use the cpd-cli management commands.
- Create service instances (
- Procedure
-
To upgrade the service instances:
- Get the list of OpenPages service
instances:
cpd-cli service-instance list \ --service-type=openpages \ --profile=${CPD_PROFILE_NAME} - Set the
INSTANCE_NAMEenvironment variable to the name of the service instance that you want to upgrade:export INSTANCE_NAME=<instance-name> - Upgrade the service
instance:
cpd-cli service-instance upgrade \ --service-type=openpages \ --instance-name=${INSTANCE_NAME} --profile=${CPD_PROFILE_NAME} - Repeat these steps for each OpenPages service instance.
- Get the list of OpenPages service
instances:
What to do next
- If you are using the database that is provided with OpenPages and you are upgrading to Cloud Pak for Data Version 4.8.1, 4.8.2, 4.8.3, or 4.8.4 from an earlier 4.8.x version, update the database restore script. For more information, see Updating the database restore script.
- Do the following task: Importing reports and generating the framework.