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. <pre> 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 </pre>
Created from redmine issue http://projects.theforeman.org/issues/4416
Upstream bug assigned to jmagen
Moving to POST since upstream bug http://projects.theforeman.org/issues/4416 has been closed
Verified in Satellite-6.0.4-RHEL-6-20140813.2 - resource can no longer be deleted if images are associated w it.
This was delivered with Satellite 6.0 which was released on 10 September 2014.