[Satellite 6] Unable to delete a version from CV/CCV because of the following `Error: PG::Error: ERROR: update or delete on table 'katello_content_view_versions' violates foreign key constraint 'repositories_content_view_version_id_fk' `

Solution Verified - Updated -

Issue

  • Receiving the following error while trying to delete a version from CV/CCV through foreman-rake console:
Error: PG::Error: ERROR: update or delete on table "katello_content_view_versions" violates foreign key constraint "repositories_content_view_version_id_fk" on table "katello_repositories" 

Environment

Red Hat Satellite 6.2.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