Project

General

Profile

Actions

Bug #4415

closed

FK error when deleting a smart proxy

Added by Ohad Levy about 10 years ago. Updated almost 10 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 2 (0 open2 closed)

Related to Foreman - Bug #3194: Ugly errors when destroy actions are stopped by FKsDuplicate10/03/2013Actions
Is duplicate of Foreman - Bug #5788: before_destroy missing from EnsureNotUsedBy.new in SmartProxy modelClosedJoseph Magen05/19/2014Actions
Actions #1

Updated by Dominic Cleal about 10 years ago

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

Updated by Dominic Cleal almost 10 years ago

  • Is duplicate of Bug #5788: before_destroy missing from EnsureNotUsedBy.new in SmartProxy model added
Actions #3

Updated by Dominic Cleal almost 10 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF