Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1884404

Summary: opm index add does not error when multiple channel head candidates exist
Product: OpenShift Container Platform Reporter: lgallett
Component: OLMAssignee: Ankita Thomas <ankithom>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: medium CC: ankithom, htariq, krizza, nhale
Version: 4.6   
Target Milestone: ---   
Target Release: 4.7.0   
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-11-30 18:26:49 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 lgallett 2020-10-01 20:44:38 UTC
Description of problem:

adding two bundles that are both channel heads to an index should produce an error


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

latest

How reproducible:

always

Steps to Reproduce:

opm index add -b="registry-proxy.engineering.redhat.com/rh-osbs/web-terminal-operator-metadata@sha256:f172e2293caa7ef04e0f4bf9570c4e91000d570456b0d9b7f34ce54c14d895fa,registry-proxy.engineering.redhat.com/rh-osbs/web-terminal-operator-metadata@sha256:6c2e7e3abe33ea2e4fbd4fb8d4a75c0b52288be74a70e0cba59a59df2d0ac5fc" -t="quay.io/galletti94/my-index:web-terminal" -u=docker

create two bundles that have no replaces field and are pushing to the same channel. add these to an index

Actual results:

succeeds and order is determined by the order of the bundles in the command.

Expected results:

should fail and raise an error

Additional info:

Comment 3 Kevin Rizza 2020-11-30 18:26:49 UTC

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