Project

General

Profile

Actions

Bug #4416

closed

500 FK error when deleting old image in compute resource

Added by Daniel Lobato Garcia about 10 years ago. Updated almost 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 #1

Updated by Dominic Cleal almost 10 years ago

  • Has duplicate Bug #6281: Attempting to remove openstack compute resource gives FK error added
Actions #2

Updated by Joseph Magen almost 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

Actions #3

Updated by Dominic Cleal almost 10 years ago

  • Status changed from Assigned to Ready For Testing
  • translation missing: en.field_release set to 18
Actions #4

Updated by Joseph Magen almost 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Bryan Kearney almost 10 years ago

  • Bugzilla link set to 1114646
Actions

Also available in: Atom PDF