Description of problem: Console leads users to unrelated install plan, if subscription does not have its own Version-Release number of selected component (if applicable): How reproducible: Just create subscription with non-existing starting CSV specified, and check installed operator tab Steps to Reproduce: 1. Create test namespace. 2. Install any operator into openshift-operators namespace with operator hub IU, like CodeReady Workspaces 3. Import the following YAML apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: ditto-operator namespace: test spec: channel: alpha installPlanApproval: Automatic name: ditto-operator source: community-operators sourceNamespace: openshift-marketplace startingCSV: ditto-operator.v0.non-existing 4. Go to OperatorHub and look for Ditto operator, it's marked as installed. 5. Click on Ditto operator and verify info Actual results: Console displays `Version 2.8.0 of this Operator has been installed on the cluster. View it here.` where view it here is a link to CodeReady Workspaces install plan. Expected results: OpenShift Console says, at least something like: operator is not installed yet. A suitable CSV is not found yet. Note: Installed Operators tab reports Unknown state for this operator. Additional info:
This bug will be solved indirectly by https://issues.redhat.com/browse/CONSOLE-2805 and https://github.com/openshift/console/pull/9346
Moving to MODIFIED as https://github.com/openshift/console/pull/9346 has merged.
Follow the steps in bug description 1. Create test namespace. 2. Install ArgoCD operator into openshift-operators namespace via OperatorHub 3. Import the following YAML apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: ditto-operator namespace: test spec: channel: alpha installPlanApproval: Automatic name: ditto-operator source: community-operators sourceNamespace: openshift-marketplace startingCSV: ditto-operator.v0.non-existing 4. Go to Operators -> Installed Operators -> Choose `All Projects` , the `Status` is shown Unknown for ditto-operator 5. Click on Ditto operator user will be taken to Subscription details page k8s/ns/test/operators.coreos.com~v1alpha1~Subscription/ditto-operator 6. also on Operators -> OperatorHub page, ditto-operator is not included in `Installed` operator when filtering by Install state Verified on 4.9.0-0.nightly-2021-07-22-015245
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:3759