Operator installation using OLM fails with FOREIGN KEY constraint error in RHOCP 4 disconnected environment.

Solution Verified - Updated -


  • Pruning the catalogsource index for installing operator fails with FOREIGN KEY constraint error in RHOCP 4.
  • When installing any operator in the restricted network, Failed with the below error.
INFO[0056] deleting packages                             pkg=cic-operator
INFO[0056] packages: [cic-operator]                      pkg=cic-operator
FATA[0056] permissive mode disabled                      error="error deleting packages from database: error removing operator package cic-operator: FOREIGN KEY constraint failed


  • Red Hat OpenShift Container Platform.
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content