Time out error during a restore
Symptoms
When you are doing an offline restore of IBM® Software Hub and an OpenPages instance into a
different cluster, you might see the following error in the cpd-cli
log:
time=2023-09-06T13:33:36.145727Z level=error
msg=failed to wait for statefulset openpages-openpagesinstance-with-25-sts in
namespace zen-ns: timed out waiting for the condition
Environment
This problem occurs in IBM Software Hub 5.2.0 and 5.2.1.
Resolving the problem
To resolve the issue, do the following steps:
- Manually scale OpenPages down to 0
replicas.
oc scale --replicas=0 sts/openpages-<instance_name>-sts - Rerun the restore
posthookscommand.cpd-cli oadp restore posthooks \ --tenant-operator-namespace=${PROJECT_CPD_INST_OPERATORS} \ --log-level=debug \ --verbose - Scale back up to the number of replicas that you want to use for OpenPages.
oc scale --replicas=<n> sts/openpages-<instance_name>-stsReplace <n> with the number of replicas.