Operator installation hangs during upgrade
When you upgrade IBM Cloud Pak foundational services, the installation of some operators does not complete.
Symptom
The catalog operator logs show messages similar to the following message:
Following is the command to get the catalog operator logs:
oc -n openshift-operator-lifecycle-manager logs deploy/catalog-operator
Following is a sample content:
E1201 07:54:37.617295 1 queueinformer_operator.go:290] sync "<your-foundational-services-namespace>" failed: found more than one head for channel
Cause
This is a known issue in the Operator Lifecycle Manager (OLM), which might be fixed in a future release of OpenShift Container Platform. During upgrade, there is an operator with replace
in CSV that is missing skip range
,
which causes it to hang.
For more information about the issue, see Red Hat Bugzilla – Bug 1869441 .
Resolving the problem
If the operator that is causing the error is either IBM NamespaceScope Operator
or Operand Deployment Lifecycle Manager (ODLM)
:
-
From your OpenShift console, uninstall the hanging operator.
- From the navigation pane, click Operators > Installed Operators.
- For the operator with
Pending
status, click the overflow menu icon and clickUninstall
.
(Or)
Delete the subscription and CSV of the operator by using the
oc
CLI.- Log in to the cluster by using the
oc login
command. - Run the following commands to delete the subscription and CSV.
oc -n <your-foundational-services-namespace> delete sub <hanging-operator-sub> oc -n <your-foundational-services-namespace> delete csv <hanging-operator-csv>
-
Delete
ibm-common-service-operator
pod
oc delete pod <ibm-common-service-operator-pod-name> -n <your-foundational-services-namespace>
If the error is caused by other operator:
-
From your OpenShift console, uninstall the hanging operator.
- From the navigation pane, click Operators > Installed Operators.
- For the operator with
Pending
status, click the overflow menu icon and clickUninstall
.
(Or)
Delete the subscription and CSV of the operator by using the
oc
CLI.- Log in to the cluster by using the
oc login
command. - Run the following commands to delete the subscription and CSV.
oc -n <your-foundational-services-namespace> delete sub <hanging-operator-sub> oc -n <your-foundational-services-namespace> delete csv <hanging-operator-csv>
-
Delete the ODLM pod.
oc delete pod <operand-deployment-lifecycle-manager-pod-name> -n <your-foundational-services-namespace>