Bug 1664559

Summary: [marketplace] operators can be enabled multipule times until it is subscribed to the “global-operators” Operator Group through marketplace UI
Product: OpenShift Container Platform Reporter: Fan Jia <jfan>
Component: OLMAssignee: lgallett
Status: CLOSED ERRATA QA Contact: Fan Jia <jfan>
Severity: high Docs Contact:
Priority: medium    
Version: 4.1.0CC: aravindh, chezhang, dyan, jiazha, zitang
Target Milestone: ---   
Target Release: 4.1.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: 2019-06-04 10:41:38 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:

Description Fan Jia 2019-01-09 06:54:36 UTC
Description of problem:
If the cluster has several Operator Group like “test1”, “test2” and the ordinary  “global-operators”The operators on the Marketplace UI like “etcd” can be enabled to Operator Group “test1”, and enabled to “test2”,then enabled to “global-operators”. Then the “enabled” label will add to the etcd operator’s tile and the enable button will be gray on the detail page. 
If enable “etcd” to OG “global-operators” at first, then the the “enabled” label will add to the etcd operator’s tile and the enable button will be gray on the detail page. The operator “etcd” won’t be enabled to OG “test1”, “test2”. 

Version-Release number of selected component (if applicable):
cluster version: 4.0.0-0.alpha-2019-01-06-163602 
MARKETPLECE: latest

How reproducible:
Always

Steps to Reproduce:
1. enable the operator “etcd” to OG “test1” through Marketplace UI

Actual results:
1) after step 1, the operator “etcd” can be enabled to other OG through Marketplace UI

Expected results:
1)after step 1, the operator “etcd” can’t be enabled to other OG through Marketplace UI

Additional info:
You can still click the subscribe button on the detail page of operator "etcd" to OG "test1" even it has already been subscribed to OG "test1". And nothing will happen, the page won't prompt that the operator has already been subscribeb to OG "test1".

Comment 1 Fan Jia 2019-01-09 07:52:48 UTC
operator group example test1:
apiVersion: operators.coreos.com/v1alpha2
kind: OperatorGroup
metadata:
  name: test1
  namespace: test1
  selfLink: >-
    /apis/operators.coreos.com/v1alpha2/namespaces/openshift-operators/operatorgroups/test1
status:
  namespaces:
    - ''

Comment 2 Aravindh Puthiyaparambil 2019-01-24 19:20:30 UTC
We don't support multiple OperatorGroups for 4.0, so we don't support enabling operators to multiple OperatorGroups through Operator Hub UI. Given that this is not a bug.

Comment 3 Fan Jia 2019-02-28 07:18:51 UTC
The latest version updates the install way of the "operators" by `Install Mode`, So it is not a problem anymore.

Comment 4 Zhang Cheng 2019-02-28 07:34:35 UTC
Jia,

Please update bug status if it is OKay for you base on current implement and design. Thx.

Comment 7 errata-xmlrpc 2019-06-04 10:41:38 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, 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/RHBA-2019:0758