Bug 2231504

Summary: Size of a "Complete Library export" can be double the consumption of /var/lib/pulp/media/artifact/
Product: Red Hat Satellite Reporter: Odilon Sousa <osousa>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: sganar
Severity: high Docs Contact:
Priority: high    
Version: 6.13.3CC: dalley, dkliban, ggainey, jpasqual, mjia, paji, pcreech, rchan, rlavi, sganar
Target Milestone: 6.13.4Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: pulpcore-3.28.8, pulpcore-3.23.13, pulpcore-3.22.12, pulpcore-3.21.15, pulpcore-3.18.25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2226950 Environment:
Last Closed: 2023-09-12 15:20:56 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 1 sganar 2023-08-30 18:47:24 UTC
Verified.

Tested on Satellite 6.13.4 Snap 1.0
python39-pulpcore-3.21.15-1.el8pc.noarch

Verification Steps:
1. Enable and sync few Red Hat repositories(Set the download policy to "Immediate") also create a file type or docker type repositories and sync them.
2. Add them to CV, publish and promote it.
3. Make 20-50 copies of the CV and Publish a new version for all of them.
4. Check the disk space consumption of var/lib/pulp/media/artifact/ directory.
5. Perform a full library export for that organization.
6. Check the size of exported tar file present in /var/lib/pulp/exports/Default_Organization/Export-Library/* directory.
7. Compare consumption in Step 5 and Step 7, size of tar file in Step 7 should not exceed the one in Step5

Observation:
Size of exported tar file created in path /var/lib/pulp/exports/Default_Organization/Export-Library/* is less than disk space consumption of var/lib/pulp/media/artifact/ directory.

# du -sh /var/lib/pulp/exports/Default_Organization/Export-Library/* /var/lib/pulp/media/artifact
22G	/var/lib/pulp/exports/Default_Organization/Export-Library/1.0
27G	/var/lib/pulp/media/artifact

Comment 6 errata-xmlrpc 2023-09-12 15:20:56 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 (Satellite 6.13.4 Async 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/RHBA-2023:5106