Bug 2024372

Summary: citrix-ingress-controller-operator has malformed opm index
Product: OpenShift Container Platform Reporter: Dan Clark <danclark>
Component: OLMAssignee: Kevin Rizza <krizza>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED DUPLICATE Docs Contact:
Severity: low    
Priority: unspecified CC: davegord
Version: 4.8   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-18 18:08:18 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 Dan Clark 2021-11-17 23:57:08 UTC
Description of problem:

citrix-ingress-controller-operator has a malformed index that opm does not tolerate

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

certified-operator-catalog:v4.8

How reproducible:

100%

Steps to Reproduce:

Use opm to prune the operator index down to any subset of operators. citrix-ingress-controller-operator is not in the list. Example command:

opm index prune -f registry.redhat.io/redhat/certified-operator-index:v4.8 -p nginx-ingress-operator -t myregistry.com:5000/redhat/nginx-ingress-operator-catalog:v4.8

Actual results:

FATA[0019] permissive mode disabled                      error="error deleting packages from database: error removing operator package cic-operator: FOREIGN KEY constraint failed"

Expected results:

opm prunes the index and pushes the custom index image to my registry

Additional info:

This happens regardless of the operator being mirrored. The citrix issue stops opm from working at all unless --permissive is passed.