Deleting content hosts fails with candlepin error : "cp_consumer" violates foreign key constraint "fk_sourcestack_consumer"

Solution Verified - Updated -

Issue

  • Deletion of individual Content Hosts as well in Bulk selection gives below error:
Key (id)=(xyz) is still referenced from table "cp_pool_source_stack". at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse:2,157
> org.postgresql.util.PSQLException: ERROR: update or delete on table "cp_consumer" violates foreign key constraint "fk_sourcestack_consumer" on table "cp_pool_source_stack"

  • Unable to delete Content Hosts in Red Hat Satellite Server.

Environment

  • Red Hat Satellite 6

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