Updating the PostgreSQL credentials

Update the PostgreSQL credentials in the IBM® Cloud Pak for Network Automation Vault, then log in to IBM Automation to verify that IBM Cloud Pak for Network Automation is available.

About this task

When you restore the PostgreSQL database and restart the microservices, a new password is generated for the app user for PostgreSQL.

Procedure

  1. Get the new PostgreSQL password for the app user from the cp4na-o-postgresql-app secret by running the following command:
    oc get secret cp4na-o-postgresql-app -o 'jsonpath={.data.password}' | base64 --decode;echo
    Use this password when you update the application secret in the Vault UI.
  2. Delete the Cloud Pak secrets by running the following commands:
    oc delete secret cp4na-o-vault-config
    oc delete secret cp4na-o-siteplanner-configuration
  3. Complete steps 3 to 4 in Changing credentials.

Results

The instance of IBM Cloud Pak for Network Automation is restored.