Bug 1843076 - Catalog initializer hangs indefinitely if a CSV has a cyclic replaces field
Summary: Catalog initializer hangs indefinitely if a CSV has a cyclic replaces field
Keywords:
Status: CLOSED DUPLICATE of bug 1843647
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.3.z
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.6.0
Assignee: Evan Cordell
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-02 17:23 UTC by kpavic
Modified: 2020-06-03 17:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-03 17:47:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description kpavic 2020-06-02 17:23:44 UTC
Description of problem:
The catalog-initializer hangs indefinitely if a cycle is created via "replaces" attributes in CSVs.

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


How reproducible:
Modifying a CSV to replace itself and running the catalog-initializer command on the medatada.

Steps to Reproduce:
1. Modify an operator CSV's "replaces" field to replace itself.
2. Run the initializer command on the manifests containing the modified CSV

Actual results:
The catalog initializer command hangs when it gets to adding the modified operator to the database.


Expected results:
Detection of the loop and an error message explaining the problem.

Additional info:

Comment 1 Nick Hale 2020-06-03 17:47:04 UTC
Closing this a duplicate of a bug that missed being backported. I've opened the cherry-pick PR and bug for the fix against 4.3 (see https://bugzilla.redhat.com/show_bug.cgi?id=1843647).

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


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