Project

General

Profile

Bug #7998

Bad foreign key on docker_tags image relationship causes destroy to fail

Added by Daniel Lobato Garcia over 5 years ago. Updated over 1 year ago.

Status:
Rejected
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Trying to call tag.destroy fails with the following error:

ActiveRecord::StatementInvalid: Mysql2::Error: Cannot delete or update a parent row: a foreign key constraint fails (`foreman`.`containers`, CONSTRAINT `containers_docker_tag_id_fk` FOREIGN KEY (`docker_tag_id`) REFERENCES `docker_tags` (`id`)): DELETE FROM `docker_tags` WHERE `docker_tags`.`id` = 6

History

#1 Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-docker/pull/23 added
  • Pull request deleted ()

#2 Updated by Daniel Lobato Garcia over 5 years ago

  • Status changed from Ready For Testing to Rejected

Also available in: Atom PDF