Bug 1998796

Summary: Pulp 3 migration failed with missing repositories.
Product: Red Hat Satellite Reporter: Hao Chang Yu <hyu>
Component: RepositoriesAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Cole Higgins <chiggins>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: jsherril, osousa
Target Milestone: 6.9.9Keywords: Triaged, Upgrades
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.18.1.51-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-20 20:34:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hao Chang Yu 2021-08-29 02:07:48 UTC
Description of problem:
Pulp 3 migration failed with the following errors due to missing repositories.

satellite-maintain content prepare 
Running Prepare content for Pulp 3
================================================================================

--------------------------------------------------------------------------------
Prepare content for Pulp 3: 
Checking for valid Katello configuraton.
Starting task.
2021-08-28 16:48:11 +1000: Content migration starting. Migration failed, You will want to investigate: https://hao-satellite66.usersys.redhat.com/foreman_tasks/tasks/6f4fa2bb-d1a8-44c5-9ae3-3eff5b7daf73
rake aborted!
ForemanTasks::TaskError: Task 6f4fa2bb-d1a8-44c5-9ae3-3eff5b7daf73: Katello::Errors::Pulp3Error: Validation failed: resources missing {'repositories': ['1-all_repos_cv_4-v1_0-bf55e9eb-7332-4e97-884e-d4e03601919e', '1-all_repos_cv_4-v1_0-8dae518f-89fb-4b55-a2de-2eff4f2bc956', '1-all_repos_cv_4-v1_0-ad5ad108-c591-4d0a-bb4b-16730e0cd6a4', '1-all_repos_cv_4-v1_0-29f63948-adfd-4ce6-9b43-426c6bc776ad', '1-all_repos_cv_4-v1_0-e386b474-64df-40e7-94a2-fc077228985c', '1-all_repos_cv_4-v1_0-f82e6c9c-841f-4e74-979c-537ad2cbdf11', '1-all_repos_cv_4-v1_0-302c753f-da2a-4eac-b5c6-80383b97ed5a'
...


Suggest to run the correct repositories before the starting the migration to ensure the data consistency and probably give warning about missing repositories.

foreman-rake katello:correct_repositories COMMIT=true

Comment 4 Justin Sherrill 2022-03-01 16:30:54 UTC
Created redmine issue https://projects.theforeman.org/issues/34539 from this bug

Comment 11 errata-xmlrpc 2022-04-20 20:34:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.9.9 Async Bug Fix Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1478