Pipelines operator installation fails and shows status of "unknown" in console.
Environment
Red Hat OpenShift Container Platform 4.x
Red Hat OpenShift Pipelines Operator 1.x
Issue
When attempting to install the Red Hat Pipelines operator in the OperatorHub, it does not seem to complete and shows a status of "unknown".
Resolution
Remove previously installed CRDs for the Pipelines Operator. Procedure:
- In the Administrator perspective of the web console, navigate to Administration → Custom Resource Definition.
- Type
config.operator.tekton.devin the Filter by name box to search for the OpenShift Pipelines Operator CRs. - Click CRD Config to see the Custom Resource Definition Details page.
- Click the Actions drop-down menu and select Delete Custom Resource Definition.
- Click Delete to confirm the deletion of the CRs.
(warning: uninstalling the community operator will delete allPipelines,TasksandPipelineruns.)
You may also need to remove the existing InstallPlan for Pipelines before attempting a re-install:
$ oc project openshift-operators
Now using project "openshift-operators" on server "https://example.com:6443".
$ oc get ip
NAME CSV APPROVAL APPROVED
install-2l9xc openshift-pipelines-operator.v1.0.1 Automatic true
install-xp4z8 jaeger-operator.v1.17.6 Automatic true
$ oc delete ip/install-2l9xc
installplan.operators.coreos.com "install-2l9xc" deleted
$ oc get ip
NAME CSV APPROVAL APPROVED
install-xp4z8 jaeger-operator.v1.17.6 Automatic true
Root Cause
Previously, the community version of the operator was installed. Components and Custom Resource Definitions get added by default during install, but do not get uninstalled when the operator is deleted. These are conflicting with the Red Hat Pipelines operator installation and must be removed manually.
Diagnostic Steps
The Red Hat Pipelines Operator shows as status "unknown" in the console. There are no pipelines pods or resources in the namespace openshift-operators.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.