Project

General

Profile

Bug #13313

Deleting host with job invocation in past causes foreign key violaton

Added by Ivan Necas over 6 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

PG::Error: ERROR: update or delete on table "hosts" violates foreign key constraint "template_invocations_hosts_id_fk" on table "template_invocations" DETAIL: Key (id)=(11) is still referenced from table "template_invocations". : DELETE FROM "hosts" WHERE "hosts"."type" IN ('Host::Managed') AND "hosts"."id" = $1

Associated revisions

Revision f56e0814 (diff)
Added by Ivan Necas over 6 years ago

Fixes #13313 - fix host deletion when invocation attached

Revision b5993cba
Added by Marek Hulán over 6 years ago

Merge pull request #128 from iNecas/fix-host-delete

Fixes #13313 - fix host deletion when invocation attached

History

#1 Updated by Ivan Necas over 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Ivan Necas
  • Target version set to 97

#2 Updated by The Foreman Bot over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/128 added

#3 Updated by Marek Hulán over 6 years ago

  • Legacy Backlogs Release (now unused) set to 109

#4 Updated by Ivan Necas over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF