Actions
Bug #4416
closed500 FK error when deleting old image in compute resource
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
Updated by Dominic Cleal over 10 years ago
- Has duplicate Bug #6281: Attempting to remove openstack compute resource gives FK error added
Updated by Joseph Magen over 10 years ago
- Status changed from New to Assigned
- Assignee set to Joseph Magen
- Target version set to 1.8.1
https://github.com/theforeman/foreman/pull/1513, close manually after merge, since commit message is not #4416
Updated by Dominic Cleal over 10 years ago
- Status changed from Assigned to Ready For Testing
- Translation missing: en.field_release set to 18
Updated by Joseph Magen over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset e0d618efa6a8c02b46000bfcb9ded5eb672a6e13.
Actions