Project

General

Profile

Bug #35233

ForeignKeyViolation Error with docker_meta_tags

Added by Ian Ballou 4 months ago. Updated 3 months ago.

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

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

History

#1 Updated by Ian Ballou 4 months ago

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

#2 Updated by Ian Ballou 4 months ago

  • Description updated (diff)

#3 Updated by Ian Ballou 4 months ago

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

#4 Updated by The Foreman Bot 4 months ago

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

#5 Updated by Jeremy Lenz 4 months ago

  • Triaged changed from No to Yes

#6 Updated by Ian Ballou 4 months ago

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

#7 Updated by The Foreman Bot 3 months ago

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

#8 Updated by Ian Ballou 3 months ago

  • Status changed from Closed to Ready For Testing

#9 Updated by Ian Ballou 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF