Unable to delete host from Satellite web UI and getting ERROR: update or delete on table "hosts" violates foreign key constraint.

Solution Verified - Updated -

Issue

  • Unable to delete host from Red Hat Satellite 6.
  • Deleting host from Red Hat Satellite fails with the below error:

    PG::ForeignKeyViolation: ERROR: update or delete on table "hosts" violates foreign key constraint "host_status_hosts_host_id_fk" on table "host_status" DETAIL: Key (id)=(HOST_ID) is still referenced from table "host_status".
    

Environment

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