Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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