Cognos®
Analytics uses the external content store
password that is stored in the OpenShift® secret. Complete the following steps to update the password stored in the OpenShift secret.
Before you begin
Ensure you meet the following prerequisites:
- You installed and provisioned the Cognos
Analytics
service on IBM Cloud Pak® for Data.
- You have access to a Mac OS or Linux®
computer that meets the following conditions:
- Can connect to the cluster.
- Has the
oc
command-line interface installed.
- You can log in to the OpenShift cluster as a cluster administrator.
- You know the name of the OpenShift project where the Cognos
Analytics service is
installed.
About this task
You need to know what you want the new content store password to be.
Procedure
-
From your local client, log in to OpenShift as a cluster administrator.
Tip: Use the Copy Login Command option in the OpenShift web console to get the
oc
login command.
- Convert the new content store password to base64.
For example, if your new content store password is
Cognos456!
, run the
following command to convert the
password:
echo -n 'Cognos456!' | base64
The result looks similar to the following
output:
Q29nbm9zNDU2IQ==
- Identify the secret object that is used for the content store.
- Run the following command to get the secrets in the OpenShift project where Cognos
Analytics is deployed:
oc get secrets -n OpenShift_Project | grep cs-creds
- Replace
OpenShift_Project
with the project where Cognos
Analytics is deployed.
- Look for a secret that looks similar to the following example:
ca1592234996446-cs-creds Opaque 2 25h
- Edit the secret that you identified in the previous step.
- Run the following command:
oc edit secret ca-cs-creds_Secret -n OpenShift_Project
Replace ca-cs-creds_Secret
with the ID of the secret from the previous step.
Replace OpenShift_Project
with the project where Cognos
Analytics is deployed.
- In the secret object definition YAML file, update the
content_store_password
entry.
Paste the base64 encoded password that you generated in a preceding step. For example,
content_store_password: Q29nbm9zNDU2IQ==
- Run the following command to get the list of Cognos
Analytics pods that need to be restarted:
oc get po -n OpenShift_Project | grep "ca.*ca-cpd"
Replace OpenShift_Project
with the project where Cognos
Analytics is deployed.
The command returns a list of pods, similar to the following list:
ca1655142804754887-ca-cpd-cm-5cb8c4dcb5-lq7wg 1/1 Running 0 3d3h
ca1655142804754887-ca-cpd-reporting-7d7bf9dddd-mrfdb 2/2 Running 0 3d3h
ca1655142804754887-ca-cpd-rest-7cfffc7b87-j6jxz 1/1 Running 0 3d3h
ca1655142804754887-ca-cpd-smarts-c4664fdd4-ndxbq 1/1 Running 0 3d3h
- Run the following command to restart the pods:
oc delete <pods id> -n OpenShift_Project
Replace
<pods id>
with the ID of the pods from the previous
step.
Replace OpenShift_Project
with the project where Cognos
Analytics is deployed.
- Wait until all of the containers are
Running
and the pods are in the
Ready
state.