Bug 1732155 - OLM dependency resolution is inoperable due to incorrectly placed CatalogSources [NEEDINFO]
Summary: OLM dependency resolution is inoperable due to incorrectly placed CatalogSources
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.1.z
Hardware: x86_64
OS: Linux
Target Milestone: ---
: ---
Assignee: Evan Cordell
QA Contact: Fan Jia
Depends On:
TreeView+ depends on / blocked
Reported: 2019-07-22 19:43 UTC by Daniel Messer
Modified: 2019-08-06 12:58 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-08-06 12:58:30 UTC
Target Upstream Version:
jfan: needinfo? (dmesser)

Attachments (Terms of Use)

Description Daniel Messer 2019-07-22 19:43:43 UTC
Description of problem:

OLM dependency resolution takes into account Operators from catalogs in the same namespace as the Operator stating the dependency as well as all those Operators from catalogs in the so-called “global catalog” namespace. Catalogs from this namespace are available to all users in the cluster.
With the 4.1 release OperatorHub incorrectly places CatalogSources in a namespace that is not the global catalog namespace configured for OLM. When an Operator gets installed via OperatorHub the catalog will be created in the target namespace of that Operator, effectively triggering the behavior described above. As such no dependency resolution can be performed.

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

How reproducible:


Steps to Reproduce:
1. Try to install an Operator from OperatorHub that has at least 1 dependency on another Operator 
2. OperatorHub creates intermediate catalog in target namespace
3. OLM attempts to reconcile a Subscription

Actual results:

OLM fails to install the Operator from this catalog as the other catalogs are not placed in the global catalog namespace

Expected results:

OperatorHub catalogs are created in a global catalog namespace, making the content available for dependency resolution. OLM can successfully reconcile subscriptions on Operators that have a dependency.
Additional info:

Note You need to log in before you can comment on or make changes to this bug.