Project

General

Profile

Actions

Bug #19509

open

unable to delete a host when the plugin is uninstalled

Added by Ohad Levy over 7 years ago. Updated over 4 years ago.

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

Description

when trying to delete a host, the following error is created.


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

Actions #1

Updated by Ohad Levy over 7 years ago

this happened as i removed the plugin, adding it to the bucket of stuff to clean up when removing a plugin.

Actions #2

Updated by Ivan Necas over 7 years ago

  • Subject changed from unable to delete a host to unable to delete a host when the plugin is uninstalled

Do you have some tracker that would identify this bucket so that we could add to the list of this kind of stuff at some point?

Actions

Also available in: Atom PDF