Bug 1850344

Summary: Operators won't install if the CSV dependency is already installed
Product: OpenShift Container Platform Reporter: Jian Zhang <jiazha>
Component: OLMAssignee: Evan Cordell <ecordell>
OLM sub component: OLM QA Contact: Bruno Andrade <bandrade>
Status: CLOSED DUPLICATE Docs Contact:
Severity: high    
Priority: high CC: bandrade, dageoffr
Version: 4.4   
Target Milestone: ---   
Target Release: 4.4.z   
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-06-25 16:55:19 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:
Bug Depends On: 1850619    
Bug Blocks:    

Description Jian Zhang 2020-06-24 06:20:30 UTC
----This bug is a clone of bug 1849164 ----

Description of problem: 

We have an operator with CSV dependencies. When we install it, we expect OLM to install the dependencies as well. However, if the dependencies are already in a namespace, the operator won't install.

We have to delete the dependent operators in order to install the operator.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results: Failed to install the operator because of dependencies being already installed


Expected results: Should be easily installed if it already exists.


Additional info:

   PrivateComment 1Jaspreet Kaur 2020-06-19 18:07:40 UTC
RED HAT CONFIDENTIAL
Created attachment 1698140 [details]
install plan

Jaspreet Kaur 2020-06-19 18:07:56 UTC
Priority: unspecified → high
   PrivateComment 2Jaspreet Kaur 2020-06-19 18:47:45 UTC
RED HAT CONFIDENTIAL
Created attachment 1698149 [details]
logs

   PrivateComment 3Jaspreet Kaur 2020-06-19 18:49:45 UTC
RED HAT CONFIDENTIAL
We also see below logs :

I see: E0619 17:58:35.712165       1 queueinformer_operator.go:290] sync {"update" "openshift-operators/install-c4pm7"} failed: failed to update installplan bundle lookups: rpc error: code = ResourceExhausted desc = trying to send message larger than max (2268082 vs. 2097152)

Vladislav Walek 2020-06-19 19:05:12 UTC
Link ID: Red Hat Customer Portal 02657441
Vladislav Walek 2020-06-19 19:05:34 UTC
Priority: high → urgent
CC: vwalek
Severity: high → urgent
Vladislav Walek 2020-06-19 19:14:11 UTC
Link ID: Red Hat Customer Portal 02683499
   PrivateComment 4Vladislav Walek 2020-06-19 22:28:31 UTC
RED HAT CONFIDENTIAL
just adding the update from customer:

Q: 1. Which is the main operator and dependent operator you are referring to. So Engineering can try to reproduce it if possible.

A: Cloud Pak for Integration Operator, we haven't published it yet. We depend on ~9-11 operators that are part of the product.


Q: 2.  Also, output for command - "oc get subscriptions -n <namespace>"
$ oc get subscriptions
NAME                 PACKAGE              SOURCE           CHANNEL
ibm-cp-integration   ibm-cp-integration   cp-integration   v1.0


The clusterid is "6e856bf2-12b0-43f7-8a7b-899fbf1e0857".

   PrivateComment 5Evan Cordell 2020-06-20 13:49:13 UTC
RED HAT CONFIDENTIAL
> failed to update installplan bundle lookups: rpc error: code = ResourceExhausted desc = trying to send message larger than max (2268082 vs. 2097152)

This error suggests that the total set of resolved manifests to install is larger than can fit in a single resource for the cluster. We do not currently have a good workaround for this case, we will discuss and get back to this.

(The primary issue reported in the top-level bug does not seem accurate)

Keywords: UpcomingSprint
   PrivateComment 6Stephen Cuppett 2020-06-22 12:10:22 UTC
Setting target release to current development version (4.6) for investigation. Where fixes (if any) are required/requested for prior versions, cloned BZs will be created when appropriate.

Comment 1 Dan Geoffroy 2020-06-25 16:55:19 UTC

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