Bug 2047443

Summary: Unable to Import any content via Import/Export
Product: Red Hat Satellite Reporter: Partha Aji <paji>
Component: Inter Satellite SyncAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Lai <ltran>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: ltran, pcreech, vsedmik
Target Milestone: 6.11.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:32:26 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:
Bug Depends On:    
Bug Blocks: 2043726    

Description Partha Aji 2022-01-27 20:56:41 UTC
This occurs in 7.0 and above only

1) Export content via hammer content-export any version/library
2) Import the exported archive to a new org or satellite
3) Notice all the created repositories in the new org have no content.

Actual results:
Notice all the created repositories in the new org have no content.

Expected results:
Created repositories have correct content.

Additional Notes:

This is related to a pulp 3.16 update where the import call would return a task group instead of a list of tasks. Katello needs to be updated to address this change.

Comment 1 Partha Aji 2022-01-27 20:59:23 UTC
Connecting redmine issue https://projects.theforeman.org/issues/34338 from this bug

Comment 2 Bryan Kearney 2022-01-28 00:05:15 UTC
Upstream bug assigned to paji

Comment 3 Bryan Kearney 2022-01-28 00:05:17 UTC
Upstream bug assigned to paji

Comment 4 Bryan Kearney 2022-02-01 16:05:27 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34338 has been resolved.

Comment 7 Lai 2022-04-05 14:51:00 UTC
Steps to reproduce

1. Spin up 2 satellites: one for connected and one for disconnected
2. On connected, change download policy to "Immediate" under settings
3. Import a manifest and enabled 2 repos (Ansible 2.9 and RHEL8.5 baseos KS) with immediate policy.
4. Sync the repos
5. Run export for complete library
6. On Disconnected: import a manifest, change download policy to "Immediate" under settings.
7. Create a new org
8. Update to use air-gapped in CDN configuration
9. Add the exported files from connected satellite to /var/lib/pulp/imports/ in disconnected satellite
10. Run import command
12. Check the cv for the imported repos between the connected and disconnected

Expected:
Connected and disconnected should have the same content

Actual:
Connected and disconnected does have the same content

Additionally: I have checked the packages themselves are present at the `Published At` url for each repos.

Verified on 6.11 snap 14

Comment 10 errata-xmlrpc 2022-07-05 14:32:26 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 (Moderate: Satellite 6.11 Release), 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:5498