Project

General

Profile

Actions

Bug #35233

closed

ForeignKeyViolation Error with docker_meta_tags

Added by Ian Ballou over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Repositories
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2081560

Description of problem:
When upgrading up from 3.18 we are facing the issue "ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: update or delete on table "katello_docker_meta_tags" violates foreign key constraint "fk_rails_af711a226d" on table "katello_repository_docker_meta_tags"

Version-Release number of selected component (if applicable):
Katello 3.18

Actual results:

Switching specified content over to pulp 3 [FAIL]
Failed executing foreman-rake katello:pulp3_content_switchover, exit status 1:
rake aborted!
ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: update or delete on table "katello_docker_meta_tags" violates foreign key constraint "fk_rails_af711a226d" on table "katello_repository_docker_meta_tags"

Expected results:

The upgrade should be successful

Actions #1

Updated by Ian Ballou over 2 years ago

  • Subject changed from ForeignKeyViolation Error with docker_meta_tags to ForeignKeyViolation Error with docker_meta_tags
  • Target version set to 3.18-no-release-planned
Actions #2

Updated by Ian Ballou over 2 years ago

  • Description updated (diff)
Actions #3

Updated by Ian Ballou over 2 years ago

The bug should only affect Katello running Pulp 2 since Pulp 3 handles docker content differently.

Actions #4

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10198 added
Actions #5

Updated by Jeremy Lenz over 2 years ago

  • Triaged changed from No to Yes
Actions #6

Updated by Ian Ballou over 2 years ago

  • Status changed from Ready For Testing to Closed
  • Fixed in Releases 3.18-no-release-planned added
Actions #7

Updated by The Foreman Bot over 2 years ago

  • Pull request https://github.com/Katello/katello/pull/10257 added
Actions #8

Updated by Ian Ballou over 2 years ago

  • Status changed from Closed to Ready For Testing
Actions #9

Updated by Ian Ballou over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF