Bug 1970466 - Console's OperatorHub leads users to unrelated install plan, if subscription does not have its own
Summary: Console's OperatorHub leads users to unrelated install plan, if subscription ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.9.0
Assignee: ralpert
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks: 1985356
TreeView+ depends on / blocked
 
Reported: 2021-06-10 14:10 UTC by sleshche
Modified: 2021-10-18 17:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: There was an edge case (no install plan) that wasn't being handled in the logic pulling in the data for a link in OperatorHub. Consequence: We linked users to unrelated install plans if subscriptions didn't have their own. Fix: We added a state that should take over from the default behavior as part of a story, so that should fix it. We will also backport a simpler change to fix the original issue. Result: Bug is fixed.
Clone Of:
Environment:
Last Closed: 2021-10-18 17:33:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 9346 0 None open CONSOLE-2805: Improve visibility of Operator installation status 2021-07-06 20:03:33 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:34:03 UTC

Description sleshche 2021-06-10 14:10:39 UTC
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:

Comment 1 Samuel Padgett 2021-07-02 21:11:32 UTC
This bug will be solved indirectly by https://issues.redhat.com/browse/CONSOLE-2805 and https://github.com/openshift/console/pull/9346

Comment 3 Samuel Padgett 2021-07-21 17:53:40 UTC
Moving to MODIFIED as https://github.com/openshift/console/pull/9346 has merged.

Comment 5 Yadan Pei 2021-07-22 05:36:08 UTC
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

Comment 8 errata-xmlrpc 2021-10-18 17:33:33 UTC
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


Note You need to log in before you can comment on or make changes to this bug.