Project

General

Profile

Actions

Bug #38370

open

Can't delete hosts due to type null host statuses

Added by Adam Lazik 11 days ago. Updated 11 days ago.

Status:
Ready For Testing
Priority:
High
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF