Cannot delete machine with config reports
I cannot delete a machine with config reports.
time="2022-12-29 15:15:43" level="info" msg="HTTP request incoming" file=" middleware.go:79 " method="DELETE" path="/api/machines/5" remote="[::1]:46082"
time="2022-12-29 15:15:56" level="error" msg="problem deleting machine 5: ERROR #23503 update or delete on table \"daemon\" violates foreign key constraint \"config_report_daemon_id\" on table \"config_report\"" file=" machines.go:687 "
The problem occurs on the agent-kea
and agent-kea6
demo machines.
After executing the DELETE FROM config_report;
SQL query, the machine is properly deleted.
Edited by Slawek Figiel