Offline restore fails with Create OperandRequest Timeout warnings

When you restore an offline backup of a IBM® Software Hub deployment, the restore operation runs for a long time and then fails.

Symptoms

In the CPD-CLI*.log file, you see multiple warnings like in the following example:

Time: <timestamp> level=warning - Create OperandRequest Timeout Warning
Time: <timestamp> level=warning - Create OperandRequest Timeout Warning
Time: <timestamp> level=warning - Create OperandRequest Timeout Warning
Time: <timestamp> level=warning - Create OperandRequest Timeout Warning
Time: <timestamp> level=warning - Create OperandRequest Timeout Warning
Time: <timestamp> level=warning - Create OperandRequest Timeout Warning
Time: <timestamp> level=warning - Create OperandRequest Timeout Warning
Time: <timestamp> level=warning - Create OperandRequest Timeout Warning
Time: <timestamp> level=warning - Create OperandRequest Timeout Warning
Time: <timestamp> level=warning - Create OperandRequest Timeout Warning

Causes

The most likely cause is that the Operand Deployment Lifecycle Manager (ODLM) failed to install role or rolebindings in the IBM Software Hub instance project (${PROJECT_CPD_INST_OPERANDS}).

Diagnosing the problem

Run the following commands to show the OperandRequests in the IBM Software Hub operators project and in the IBM Software Hub instance project:

oc get opreq -n ${PROJECT_CPD_INST_OPERATORS}
oc get opreq -n ${PROJECT_CPD_INST_OPERANDS}
In the output for each command, the PHASE column is empty for some OperandRequests. For example:
oc get opreq -n ${PROJECT_CPD_INST_OPERATORS}
NAME                             AGE     PHASE     CREATED AT
im-service                                         <timestamp>
zen-ca-operand-request                             <timestamp>
zen-service                                        <timestamp>

Resolving the problem

Clean up the IBM Software Hub projects and retry the restore.