Bug #4415

FK error when deleting a smart proxy

Added by Ohad Levy almost 4 years ago. Updated over 3 years ago.

Status:Duplicate
Priority:Normal
Assigned To:-
Category:Database
Target version:-
Difficulty: Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-

Description

Mysql2::Error: Cannot delete or update a parent row: a foreign key constraint fails (`foreman`.`subnets`, CONSTRAINT `subnets_dhcp_id_fk` FOREIGN KEY (`dhcp_id`) REFERENCES `smart_proxies` (`id`)): DELETE FROM `smart_proxies` WHERE `smart_proxies`.`id` = 4

Related issues

Related to Foreman - Bug #3194: Ugly errors when destroy actions are stopped by FKs Duplicate 10/03/2013
Duplicates Foreman - Bug #5788: before_destroy missing from EnsureNotUsedBy.new in SmartP... Closed 05/19/2014

History

#1 Updated by Dominic Cleal almost 4 years ago

  • Related to Bug #3194: Ugly errors when destroy actions are stopped by FKs added

#2 Updated by Dominic Cleal over 3 years ago

  • Duplicates Bug #5788: before_destroy missing from EnsureNotUsedBy.new in SmartProxy model added

#3 Updated by Dominic Cleal over 3 years ago

  • Status changed from New to Duplicate

Also available in: Atom PDF