ERROR: update or delete on table "hosts" violates foreign key constraint "tokens_host_id_fk" on table "tokens" while deleting host from Satellite Web UI.
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 "tokens_host_id_fk" on table "tokens" DETAIL: Key (id)=(HOST_ID) is still referenced from table "tokens".
Environment
- Red Hat Satellite 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.