Unable to create backup because ConfigMaps are missing

You are unable to create a backup when backup and restore ConfigMaps are missing.

Symptoms

In the CPD-CLI*.log file, you see an error message like in the following example:
Error: global registry check failed: 1 error occurred:
	* error from addOnId=zen-lite: 1 error occurred:
	* failed to find aux configmap 'cpd-ikc-ccs-aux-ckpt-cm' in tenant service namespace='${PROJECT_CPD_INST_OPERANDS}': : configmaps "cpd-ikc-ccs-aux-ckpt-cm" not found

Causes

Backup and restore ConfigMaps can go missing after an IBM® Software Hub upgrade or they were accidentally deleted.

Resolving the problem

Recreate the missing ConfigMaps by doing the following steps:

  1. Log in to Red Hat® OpenShift® Container Platform as a cluster administrator:
    ${OC_LOGIN}
    Remember: OC_LOGIN is an alias for the oc login command.
  2. Find the custom resource of the service that you want to repair.
    oc api-resources | grep SHORT_SERVICE_NAME
  3. Create the following environment variables:
    export SERVICE_NAMESPACE=<namespace-service-is-installed-in>
    export CUSTOM_RESOURCE_TYPE=<custom-resource-type-of-service>
    export CUSTOM_RESOURCE_NAME=<custom-resource-name-of-service>
    export CURRENT_DATE=<current-date-and-time>
    Note: Set ${CURRENT_DATE} to a unique value.
  4. Patch the spec field of the service's custom resource:
    oc patch -n ${SERVICE_NAMESPACE} ${CUSTOM_RESOURCE_TYPE} ${CUSTOM_RESOURCE_NAME} --type=merge --patch "{\"spec\":{\"last_br_recon\":\"${CURRENT_DATE}\"}}"
  5. Wait for the service to reconcile.

The missing ConfigMaps are recreated when the reconciliation is finished.