Pipelines operator installation fails and shows status of "unknown" in console.

Solution Verified - Updated

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:

  1. In the Administrator perspective of the web console, navigate to Administration → Custom Resource Definition.
  2. Type config.operator.tekton.dev in the Filter by name box to search for the OpenShift Pipelines Operator CRs.
  3. Click CRD Config to see the Custom Resource Definition Details page.
  4. Click the Actions drop-down menu and select Delete Custom Resource Definition.
  5. Click Delete to confirm the deletion of the CRs.
    (warning: uninstalling the community operator will delete all Pipelines, Tasks and Pipelineruns.)

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.

SBR

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.