Project

General

Profile

Actions

Bug #32492

closed

Unable to delete old host "PG::ForeignKeyViolation: ERROR: update or delete on table "hosts" violates foreign key constraint "fk_rails_4c747e18cb" on table "registration_facets" DETAIL: Key (id)=(40) is still referenced from table "registration_facets".

Added by Oliver Weinmann over 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hi,

Running up to date Katello 3.18.2. I'm not able to delete old hosts. When trying to delete an old host, the following error is shown:

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

Deleting newly created hosts is possible.

Googling for the error came up with this:

https://community.theforeman.org/t/cant-delete-any-hosts-after-upgrade-to-katello-3-18/21998

which lead me to a reported bug.

https://projects.theforeman.org/issues/31669

Unfortunately the fix doesn't work for me.

Best Regards,
Oliver

Actions

Also available in: Atom PDF