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 2122203 - When using immediate downloads and retain_package_versions=X, all packages are downloaded and many are immediately orphaned
Summary: When using immediate downloads and retain_package_versions=X, all packages ar...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.11.3
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-29 13:39 UTC by Odilon Sousa
Modified: 2022-09-28 16:30 UTC (History)
6 users (show)

Fixed In Version: pulp-rpm-3.17.8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2109260
Environment:
Last Closed: 2022-09-28 16:29:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pulp pulp_rpm issues 2479 0 None closed Make retain_package_versions more useful at sync time 2022-08-29 13:39:49 UTC
Red Hat Product Errata RHBA-2022:6743 0 None None None 2022-09-28 16:30:01 UTC

Comment 2 Lai 2022-09-12 19:55:21 UTC
Steps to retest:
1. Go to settings and turn rhel download policy to "Immediate"
2. Enable RHEL8 and RHEL7 repos
3. Drill into the product -> <product> -> <repo> page
4. Change the mirroring policy to "additive" for both repos(this will open the "retain package versions" field
5. Edit the "Retain package versions" field to 1
6. Save repo and perform sync

Expected:
Syncing should complete relatively fast and the number of packages should be reduced significantly

Actual:
Syncing completed relative fast (about 10 minutes) and the number of packages is reduced.  For rhel8_baseos, it was 1788 rpms and rhel7, it was 5499.


Verified on 6.11.3 snap 1 with tfm-pulpcore-python3-pulp-rpm-3.17.10-2.el7pc.noarch

Comment 7 errata-xmlrpc 2022-09-28 16:29: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.11.3 Async Bug Fix 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-2022:6743


Note You need to log in before you can comment on or make changes to this bug.