Unable to promote/remove content view/composite content view to lifecycle due "foreign key constraint" error.

Solution Verified - Updated -

Issue

  • After publishing the new version of content views (removing the kickstart repos) results into the following error when try to promote/remove content view/lifecycle environment:
ERROR: update or delete on table "katello_repositories" violates foreign key constraint "hostgroups_kickstart_repository_id_fk" on table "hostgroups" DETAIL: Key (id)=(653) is still referenced from table "hostgroups".

Environment

  • Satellite 6.2

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