Changing the password of the OPSystem user in Cloud Pak for Data

You can change the password of the OPSystem user. OPSystem is a default service user account that is required by internal system actions.

Before you begin

The chng-sys-pswd tool must be installed on a remote system that can access the OpenPages® URL. For more information, see Installing tools and utilities in Cloud Pak for Data.

Procedure

  1. Log in to the Red Hat® OpenShift® web client as an administrator.
  2. Click Workload > Secrets, and then click openpages-<instance_name>-platform-secret.
  3. Find the value for opsystem-pw.
    The value in opsystem-pw is the current password of the OPSystem user. You need this password in a later step.
  4. Log in to the remote system where you installed the OpenPages tools and utilities.
  5. Go to the openpages-tools-client/bin directory.
  6. Run the following command:
    chng-sys-pswd.sh
  7. Follow the prompts to set the new password.
    Important: You must respond to the authentication prompts using one of the following options:
    • If you respond to the prompt Enter 'jwt' or CP4D user name: with jwt, you must respond to the prompt Enter Json Web Token or CP4D API Key: with a JSON Web Token.
    • If you respond to the prompt Enter 'jwt' or CP4D user name: with your Cloud Pak for Data user name, you must respond to the prompt Enter Json Web Token or CP4D API Key: with your Cloud Pak for Data API key.

    An API Key can be generated in Cloud Pak for Data. For more information, see Generating API keys for authentication.

  8. Make a note of the password. You will need it in a later step.
    The script asks you to restart the services. Skip this step. You restart the services in a later step.
  9. Return to the Red Hat OpenShift web client and log in as an administrator.
  10. Click Workload > Pods, and then click openpages-<instance_name>-sts-0.
  11. Click Terminal.
  12. Back up the configuration by running the following command:
    cd /opt/ibm/OpenPages/aurora/bin ./OPBackup.sh /opt/ibm/OpenPages/openpages-backup-restore app-cp4d nosrvrst

    The backup is created in the /opt/ibm/OpenPages/openpages-backup-restore directory.

  13. Click Workload > Secrets, and then click openpages-<instance_name>-platform-secret.
  14. Click Actions > Edit Secret.
  15. Update opsystem-pw with the new OPSystem password.
  16. Restart the application server pods.
    1. Click Workload > StatefulSets, and then click openpages-<instance_name>-sts.
    2. Decrease the number of pods to 0. Wait for all pods to be removed.
    3. Increase the number of pods to the value that you use in your environment.