Bug 2238359

Summary: Capsule redundantly synces *-Export-Library repos
Product: Red Hat Satellite Reporter: Odilon Sousa <osousa>
Component: Capsule - ContentAssignee: Samir Jha <sajha>
Status: CLOSED ERRATA QA Contact: Sam Bible <sbible>
Severity: high Docs Contact:
Priority: high    
Version: 6.12.3CC: ahumbe, beat, iballou, juwatts, paji, pcreech, sajha, vsedmik
Target Milestone: 6.13.5Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.7.0.33-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2186765 Environment:
Last Closed: 2023-10-19 13:13:17 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 5 Sam Bible 2023-09-26 04:57:33 UTC
Verified on: Satellite 6.13.5 - Snap 1, Capsule 6.13.5 - Snap 1

Steps to Reproduce:
1. Sync 2 small repos with Immediate Download to satellite. 
2. Run "hammer content-export complete library" to pretend ISS
3. Have Capsule associated with Library LE
4. Sync that Capsule
5. Using psql queries, see if the Capsule also has synced the Generated "Export-Library" repos.

Expected Result:
Capsule doesn't sync any generated repositories.

Actual Result:
Capsule doesn't sync any generated repositories. 

Additional Notes:
This was tested using the psql queries above, here is the list of commands:
sudo -u postgres psql pulpcore (drop into the pulpcore table in psql)
SELECT pulp_id,name FROM core_repository WHERE name LIKE '%Export-Library%';^C
SELECT pulp_id,name,base_path FROM core_distribution WHERE base_path LIKE '%Export-Library%';^C

Comment 12 errata-xmlrpc 2023-10-19 13:13:17 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.13.5 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:5931