Actions
Bug #38370
openCan't delete hosts due to type null host statuses
Description
{}hammer host delete --organization "example" --name "example.host.com"
Could not delete the host:
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)=(3724) is still referenced from table "host_status".
Removing the type null host status entries for the host workarounds the error.
Actions