URL_PREFIX attribute points to source cluster

Symptoms

After you restore IBM® Software Hub and an OpenPages tethered namespace to a new cluster by using a cpd-cli oadp command, the URL_PREFIX attribute of the IBM Software Hub product-configmap for the tethered namespace might still point to the source cluster.

Resolving the problem

A Red Hat® OpenShift® project (namespace) administrator can edit the IBM Software Hub product-configmap to update the URL_PREFIX for your deployment.

To fix this problem, follow these steps:

  1. Log in to Red Hat OpenShift Container Platform as a user with sufficient permissions to complete the task.
    ${OC_LOGIN}
  2. Change to the project where you installed IBM Software Hub:
    oc project ${PROJECT_CPD_INST_OPERANDS}
  3. Run the following command to edit the IBM Software Hub product-configmap:
    oc edit cm product-configmap
  4. Update the URL_PREFIX attribute of the product-configmap manually. For example:
    data:
      ...
      URL_PREFIX: domain.my.company.com
      ...
  5. Restart the openpages-sts pods after the restore by running the following command:
    for i in `oc get pods | grep openpages-<instancename>-sts |  cut -f1 -d\ `; do oc delete po ${i}; done