Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1870502

Summary: Operators from different catalogsource with same name are all shown "Installed" after install one of them
Product: OpenShift Container Platform Reporter: Yanping Zhang <yanpzhan>
Component: Management ConsoleAssignee: Robb Hamilton <rhamilto>
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6CC: aos-bugs, jokerman, pweil
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-21 13:47:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
installed-operator none

Description Yanping Zhang 2020-08-20 09:09:36 UTC
Created attachment 1711984 [details]
installed-operator

Description of problem:
Create custom operator with custom catalogsource, the custom operator has same name with a operator in community-operators catalogsource, install one of them into one project, check these operators in operatorhub of the project, both operators are shown with "Installed" status.

Version-Release number of selected component (if applicable):
4.6.0-0.nightly-2020-08-18-165040

How reproducible:
Always

Steps to Reproduce:
1.Create custom operator with custom catalogsource.
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: custom-console-catalogsource-infrasubs
  namespace: openshift-marketplace
spec:
  sourceType: grpc
  image: quay.io/yapei/crossplane-operator:mytest
  displayName: Custom UI Auto Console Testing
  publisher: OpenShift UI QE

2.Go to OperatorHub page, filter "portw" by keyword, there are two operators filtered out, one is in community-operators catalogsource, the other is custome catalogsource.

3.Choose one of them to install in a project.
4.After installation finished, filter "portw" by keyword on OperatorHub page in the project again.

Actual results:
4. Both operators are shown with "Installed". 

Expected results:
4. Only the operator chosen to install should show "Installed".

Additional info:

Comment 1 Robb Hamilton 2020-08-20 14:00:06 UTC
This is the result of a bug in OLM.  See https://bugzilla.redhat.com/show_bug.cgi?id=1814822#c2

Comment 2 Robb Hamilton 2020-08-21 12:44:11 UTC
Need to determine if we want to try to patch console given the source of the bug is in OLM.

Comment 4 Robb Hamilton 2020-08-21 13:47:18 UTC
Closing as a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1814822 since there is no easy workaround we can apply in the console.

*** This bug has been marked as a duplicate of bug 1814822 ***