Bug #25863
closedUnable to delete virt-who configuration from satellite.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1645144
Description of problem:
Getting below error while deleting the virt-who configuration from satellite.
ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: update or delete on table "users" violates foreign key constraint "fk_rails_51975e21a8" on table "notification_recipients"
DETAIL: Key (id)=(11) is still referenced from table "notification_recipients".
: DELETE FROM "users" WHERE "users"."id" = $1
This error occurred because when we delete virt-who configuration it tries to delete the virt_who_reporter user and satellite is unable to delete this user because there is user-id referenced in the notification_recipients table.
Actual results:
Unable to delete virt-who configuration.
Expected results:
Virt-who configuration should get deleted.
Updated by Marek Hulán over 5 years ago
- Subject changed from Unable to delete virt-who configuration from satellite. to Unable to delete virt-who configuration from satellite.
- Status changed from New to Closed
- Fixed in Releases foreman_virt_who_configure-0.3.2 added