Unable to delete host from Satellite web UI and getting ERROR: update or delete on table "hosts" violates foreign key constraint.
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 "hosts".
Environment
- Red Hat Satellite 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.