Bug 2175003

Summary: Can't perform incremental content exports in syncable format
Product: Red Hat Satellite Reporter: Odilon Sousa <osousa>
Component: PulpAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Shweta Singh <shwsingh>
Severity: high Docs Contact:
Priority: high    
Version: 6.12.0CC: ahumbe, apatel, awestbro, dalley, dkliban, ggainey, jrichards2, juraj.funcik, kgaikwad, ofedoren, paji, pcreech, rabajaj, rchan, shwsingh, svigan, tiryan
Target Milestone: 6.12.3Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: pulpcore-3.18.16,tfm-rubygem-katello-4.5.0.29-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2143497 Environment:
Last Closed: 2023-04-04 15:20:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 3 Daniel Alley 2023-03-06 17:45:09 UTC
There is a PR for backporting this upstream here: https://github.com/pulp/pulpcore/pull/3623

@osousa Also note https://bugzilla.redhat.com/show_bug.cgi?id=2172564, even if this one is included I'm not sure if that BZ will block the users who want this one. We're waiting on extra information from that one because it doesn't look like it's necessarily a Pulp bug.

Comment 7 Shweta Singh 2023-03-29 05:07:10 UTC
Thanks Grant for identifying the root cause of the issue. I am moving this BZ to FailedQA.

Version Tested: Satellite 6.12.3 Snap 2.0

Steps:
1. Import few RedHat, custom and KS repos and enable these repos.
2. Sync the repos and try "hammer content-export complete" with option "--format syncable" for library, repositories and file content types.
3. Add another repository and try "incremental content-export" for the added repository.

Observation:
If export is attempted after changing "on-demand" download policy to "immediate" without re-syncing the repos, it will throw error.

Comment 8 Robin Chan 2023-03-29 06:05:50 UTC
Requesting needsinfo from upstream developer dkliban, ggainey because the 'FailedQA' flag is set.

Comment 9 Robin Chan 2023-03-29 06:05:55 UTC
Requesting needsinfo from upstream developer dkliban, ggainey because the 'FailedQA' flag is set.

Comment 10 Grant Gainey 2023-03-29 19:32:58 UTC
Backported and released 3.18.16 w/ the missing fix.

Comment 11 Daniel Alley 2023-03-29 23:49:35 UTC
3.18.13 ^^

Comment 12 Daniel Alley 2023-03-29 23:50:15 UTC
Whoops, I'm wrong, ignore me.  Wrong component.

Comment 13 Shweta Singh 2023-03-31 12:10:00 UTC
Verified.

Version Tested: Satellite 6.12.3 Snap 4.0

Verification Steps:
1. Enable and few RedHat repos and Custom repos.
2. Change the download policy of the repos from on_demand to immediate.
3. Sync the repos.
4. Do the complete content-export for repositories and library with command --format syncable.
5. Enable and few other repos and change the download policy as done earlier and sync the repos.
5. Do the incremental content-export with command --format syncable.
6. Verify that the incremental export should be done properly.

Observation:
Complete and incremental export is successfully completed.

Comment 18 errata-xmlrpc 2023-04-04 15:20:04 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.12.3 Async Security 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-2023:1630

Comment 19 Red Hat Bugzilla 2023-09-19 04:34:11 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days