Bug 1732155 - OLM dependency resolution is inoperable due to incorrectly placed CatalogSources
Summary: OLM dependency resolution is inoperable due to incorrectly placed CatalogSources
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.1.z
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Evan Cordell
QA Contact: Fan Jia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-22 19:43 UTC by Daniel Messer
Modified: 2023-09-14 05:32 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-06 12:58:30 UTC
Target Upstream Version:
Embargoed:


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:

Always


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:

Comment 3 Red Hat Bugzilla 2023-09-14 05:32:11 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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