Pulp2 to Pulp3 content migration fails with error "Some corrupted or missing content found" in Red Hat Satellite 6.9

Solution Verified - Updated -

Issue

  • The satellite-maintain content prepare command fails with the following error:

    2022-06-15 08:02:08 +0200: Importing migrated content type erratum: 166000/165321
    2022-06-15 08:02:18 +0200: Importing migrated content type erratum: 166000/165321
    2022-06-15 08:02:28 +0200: Importing migrated content type package_group: 350/958
    
    Some corrupted or missing content found, run 'foreman-maintain content migration-stats' for more information.
    
    E, [2022-06-15 08:02:39+0200 #3374] ERROR -- : Failed executing preserve_output=true foreman-rake katello:pulp3_migration, exit status 255 (ForemanMaintain::Error::ExecutionError)
    /usr/share/gems/gems/foreman_maintain-0.8.30/lib/foreman_maintain/utils/command_runner.rb:54:in `execution_error'
    /usr/share/gems/gems/foreman_maintain-0.8.30/lib/foreman_maintain/concerns/system_helpers.rb:68:in `execute!'
    /usr/share/gems/gems/foreman_maintain-0.8.30/definitions/procedures/content/prepare.rb:14:in `run'
    /usr/share/gems/gems/foreman_maintain-0.8.30/lib/foreman_maintain/executable.rb:139:in `__run__'
    
  • The satellite-maintain content migration-stats command displays the following information about the error:

    ============Missing/Corrupted Content Summary================
    WARNING: MISSING OR CORRUPTED CONTENT DETECTED
    Corrupted or Missing Rpm: 1000/173142
    Corrupted or missing content has been detected, you can examine the list of content in /tmp/unmigratable_content-20220109-11817-1oil4a6 and take action by either:
    1. Performing a 'Verify Checksum' sync under Advanced Sync Options, let it complete, and re-running the migration
    2. Deleting/disabling the affected repositories and running orphan cleanup (foreman-rake katello:delete_orphaned_content) and re-running the migration
    3. Manually correcting files on the filesystem in /var/lib/pulp/content/ and re-running the migration
    4. Mark currently corrupted or missing content as skipped (foreman-rake katello:approve_corrupted_migration_content).  This will skip migration of missing or corrupted content.   
    

Environment

  • Red Hat Satellite 6.9
    • Pulp 2 to Pulp 3 migration

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