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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.