Upgrading OpenPages from Version 4.8.x to a later 4.8 refresh

Important: IBM Cloud Pak® for Data Version 4.8 will reach end of support (EOS) on 31 July, 2025. For more information, see the Discontinuance of service announcement for IBM Cloud Pak for Data Version 4.X.

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:
  • Cloud Pak for Data CLI: cpd-cli
  • OpenShift® CLI: oc
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:

  1. If you are using the database that is provided with OpenPages, Update the application memory settings for Db2.
  2. Upgrading the service
  3. Validating the upgrade
  4. Upgrading existing service instances
  5. 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.

  1. Find the Db2uCluster custom resource that you want to configure and assign it to an environment variable.
    1. Retrieve a list of your Db2uCluster custom resources by running the following command:
      oc get db2ucluster -n ${PROJECT_CPD_INST_OPERANDS}
    2. 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')
  2. Run the following command to edit the Db2uCluster custom resource:
    oc edit db2ucluster db2oltp-${DB2UCLUSTER_ID} -n ${PROJECT_CPD_INST_OPERANDS}
  3. Make changes to your database configuration parameter settings. To find your database configuration parameters, see the yaml path: spec.environment.database.dbConfig.

    Under the key dbConfig, ensure that the key-value pairs for appl_memory and applheapsz are 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.

  4. Log in to the Db2® container.
    oc exec -it c-db2oltp-${DB2UCLUSTER_ID}-db2u-0 bash
  5. 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
  6. Restart the database pod by running the following command:
    oc delete po c-db2oltp-${DB2UCLUSTER_ID}-db2u-0

Upgrading the service

Important: The Operator Lifecycle Manager (OLM) objects for OpenPages were updated when you upgraded the Cloud Pak for Data platform. The cpd-cli manage apply-olm updates all of the OLM objects in the operators project at the same time.

To upgrade OpenPages:

  1. Log the cpd-cli in to the Red Hat® OpenShift Container Platform cluster:
    ${CPDM_OC_LOGIN}
    Remember: CPDM_OC_LOGIN is an alias for the cpd-cli manage login-to-ocp command.
  2. 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

OpenPages is upgraded when the 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.

Important: If you're using a database that is outside of Cloud Pak for Data and you're using Db2 11.5.8.x, verify that you're using Special Build 37208 or later.
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.

Procedure

To upgrade the service instances:

  1. Get the list of OpenPages service instances:
    cpd-cli service-instance list \
    --service-type=openpages \
    --profile=${CPD_PROFILE_NAME}
  2. Set the INSTANCE_NAME environment variable to the name of the service instance that you want to upgrade:
    export INSTANCE_NAME=<instance-name>
  3. Upgrade the service instance:
    cpd-cli service-instance upgrade \
    --service-type=openpages \
    --instance-name=${INSTANCE_NAME}
    --profile=${CPD_PROFILE_NAME}
  4. Repeat these steps for each OpenPages service instance.

What to do next