RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 2034736 - reposync -n downloads more than it should
Summary: reposync -n downloads more than it should
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf-plugins-core
Version: 8.5
Hardware: All
OS: All
medium
medium
Target Milestone: rc
: ---
Assignee: amatej
QA Contact: Eva Mrakova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-21 21:22 UTC by jcastran
Modified: 2022-11-08 12:46 UTC (History)
9 users (show)

Fixed In Version: dnf-plugins-core-4.0.21-12.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-08 10:53:15 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-106376 0 None None None 2021-12-21 21:27:06 UTC
Red Hat Product Errata RHBA-2022:7759 0 None None None 2022-11-08 10:53:23 UTC

Description jcastran 2021-12-21 21:22:26 UTC
Description of problem:
Using reposync -n to create a repository, repomanage to remove old packages, and reposync -n again results in packages being removed and redownloaded.

reposync is incorrectly downloading additional packages it should not be (when using -n)

Version-Release number of selected component (if applicable):
yum-utils-4.0.21-3.el8.noarch

How reproducible:
everytime

Steps to Reproduce:
1. # reposync -n --download-metadata --repoid=rhel-8-for-x86_64-appstream-rpms
2. # repomanage --old rhel-8-for-x86_64-appstream-rpms/ --keep 2 | xargs rm  
3. # reposync -n --download-metadata --repoid=rhel-8-for-x86_64-appstream-rpms

Actual results:
close to 850 module packages being pulled in (with --newest-only)

Expected results:
DNF to pull in no new packages after running the repomanage command, 

Additional info:

Comment 7 Jaroslav Mracek 2022-04-07 07:57:07 UTC
Thank you very much for a discussion and for the patch https://github.com/rpm-software-management/dnf-plugins-core/pull/452. I understand that the patch will resolve the user cases but it will be a significant change in behavior that can be also confusing because DNF will provide a different information according to metadata. I suggest that we can implement the new behavior but not for a --new option but we should create a new option. It will prevent from breaking anything else, but it will provide requested functionality.

Comment 19 Bill Muller 2022-09-21 22:30:52 UTC
It appears that dnf-plugins-core-4.0.21-11.el8 is still the current version, is there an expected release date for the new packages, dnf-plugins-core-4.0.21-12.el8?

Also, will a new option be introduced to achieve the desired behavior described in the original post?

Comment 20 amatej 2022-10-11 05:04:59 UTC
The new dnf-plugins-core-4.0.21-12.el8 should be present in 8.7.0 rhel.
And yes there is a new option for repomanage --oldonly that prints just rpms that are not in the newest stream version.

Comment 22 errata-xmlrpc 2022-11-08 10:53:15 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 (dnf-plugins-core bug fix and enhancement 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:7759


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