Content migration during Satellite 6.10 upgrade fails with error ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: update or delete on table "katello_docker_meta_tags" violates foreign key constraint "fk_rails_af711a226d"

Solution Verified - Updated -

Issue

  • The content migration from Pulp2 to Pulp3 during Red Hat Satellite upgrade to version 6.10 fails with below error:

    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"
    

Environment

  • Red Hat Satellite 6.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content