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

Bug 1746194

Summary: Should deny create the `same` subscription in the same namespace
Product: OpenShift Container Platform Reporter: Evan Cordell <ecordell>
Component: OLMAssignee: Evan Cordell <ecordell>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: bandrade, chezhang, chuo, dyan, eparis, jfan, jiazha, scolange
Version: 4.2.0Keywords: Reopened
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1714945 Environment:
Last Closed: 2019-10-16 06:38:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1714945    

Comment 3 Jian Zhang 2019-08-28 09:10:40 UTC
Cluster version is 4.2.0-0.nightly-2019-08-28-004049

OLM version:
mac:~ jianzhang$ oc exec catalog-operator-5b7798599-52dqb -- olm --version
OLM version: 0.11.0
git commit: 21160c27bcc7ecb34a7babf33d010c557e0f075f

1, Subscribe the hazelcast operator(Signal version) in project jian on the Web console, select the Certified version.
mac:~ jianzhang$ oc get sub -n jian
NAME                             PACKAGE                          SOURCE                CHANNEL
hazelcast-enterprise-certified   hazelcast-enterprise-certified   certified-operators   alpha
mac:~ jianzhang$ oc get csv -n jian
NAME                      DISPLAY              VERSION   REPLACES   PHASE
hazelcast-operator.v0.1   Hazelcast Operator   0.1.0                Succeeded

2, Subscribe the hazelcast operator in project jian on the Web console, select the Community version.
Got the errors below, the users cannot subscribe to it in the same project.
Danger alert:Operator conflicts exist
Installing Operator in selected namespace would cause conflicts with another Operator providing these APIs:
Hazelcast (hazelcast.com/v1alpha1)

3, Subscribe it to another project, for example, default, the hazelcast operator(Community version) can be installed well.
mac:~ jianzhang$ oc get csv -n default
NAME                        DISPLAY              VERSION   REPLACES   PHASE
hazelcast-operator.v0.0.1   Hazelcast Operator   0.0.1                Succeeded
mac:~ jianzhang$ oc get sub -n default
NAME                   PACKAGE                SOURCE                CHANNEL
hazelcast-enterprise   hazelcast-enterprise   community-operators   alpha

LGTM, verify it.

Comment 4 errata-xmlrpc 2019-10-16 06:38:11 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:2922