Bug 1633885

Summary: Duplicate Prometheus Operator installplan is created when creating Prometheus Operator subscriptions for the first time
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: OLMAssignee: Evan Cordell <ecordell>
Status: CLOSED DUPLICATE QA Contact: Jian Zhang <jiazha>
Severity: low Docs Contact:
Priority: low    
Version: 3.11.0CC: minden
Target Milestone: ---Keywords: Regression
Target Release: ---   
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: 2018-10-16 02:50:53 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 Junqi Zhao 2018-09-28 02:12:33 UTC
Description of problem:
Fresh environment, there is not Prometheus Operator subscriptions exist in the environment, create Prometheus Operator subscriptions from cluster console or via command for the first time, duplicate Prometheus Operator installplan would be created.(Note: This does not affect the operator function)

create Prometheus Operator subscriptions for the first time
# oc -n test1 get installplan
NAME                                                                       CSV                         SOURCE         APPROVAL    APPROVED
installplan.operators.coreos.com/install-prometheusoperator.0.22.2-hz5mf   prometheusoperator.0.22.2   rh-operators   Automatic   false
installplan.operators.coreos.com/install-prometheusoperator.0.22.2-krgl9   prometheusoperator.0.22.2   rh-operators   Automatic   false

Create another project and create Prometheus Operator subscriptions under the project, there is not duplicate installplan
# oc -n test2 get installplan
NAME                                                                       CSV                         SOURCE         APPROVAL    APPROVED
installplan.operators.coreos.com/install-prometheusoperator.0.22.2-7j8wb   prometheusoperator.0.22.2   rh-operators   Automatic   false

Version-Release number of selected component (if applicable):
startingCSV: prometheusoperator.0.22.2
# openshift version
openshift v3.11.16

How reproducible:


Steps to Reproduce:
1. Create one project and create Prometheus Operator subscriptions, then check via `oc get installplan`
2. Create another project and create Prometheus Operator subscriptions, then check via `oc get installplan`
3.

Actual results:
Duplicate Prometheus Operator installplan is created

Expected results:
Should not have duplicate Prometheus Operator installplan

Additional info:

Comment 1 Frederic Branczyk 2018-09-28 09:47:00 UTC
This sounds like it's rather a bug in OLM, and just happens to happen with the Prometheus install plan.

Comment 2 Jian Zhang 2018-10-16 02:50:53 UTC
Junqi,

Thanks for your reporting. This is a known issue, please see bug 1628107 for more details.

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