Project

General

Profile

Actions

Bug #4416

closed

500 FK error when deleting old image in compute resource

Added by Daniel Lobato Garcia almost 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

After a compute resource is edited, or for some reason it no longer has an image, if Foreman had any images in the Compute Resource, deleting them will be impossible through the UI and will throw a 500 error.

Warning!
Mysql2::Error: Cannot delete or update a parent row: a foreign key constraint fails (`foreman`.`hosts`, CONSTRAINT `hosts_image_id_fk` FOREIGN KEY (`image_id`) REFERENCES `images` (`id`)): DELETE FROM `images` WHERE `images`.`id` = 3


Related issues 1 (0 open1 closed)

Has duplicate Foreman - Bug #6281: Attempting to remove openstack compute resource gives FK errorDuplicate06/18/2014Actions
Actions

Also available in: Atom PDF