Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1714788

Summary: Reposync should sync the entire repository to include module information. reposync should download the packages regardless of whether a module is enabled or disabled
Product: Red Hat Enterprise Linux 8 Reporter: jcastran
Component: dnf-plugins-coreAssignee: Marek Blaha <mblaha>
Status: CLOSED ERRATA QA Contact: Eva Mrakova <emrakova>
Severity: high Docs Contact:
Priority: high    
Version: 8.1CC: dmach, fedoraproject, james.antill, kwalker, mblaha, rmullett, toracat
Target Milestone: rcKeywords: Triaged
Target Release: 8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dnf-plugins-core-4.0.8-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 22:22:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1681085    
Bug Blocks:    

Description jcastran 2019-05-28 20:34:29 UTC
Description of problem:
Packages are only accessible when a specific module or stream is enabled. Reposync is not able to sync the repository because it has to abide by these rules. The workaround would be to enable all modules, sync, then switch to any alternative streams or any remaining un-enabled modules, then sync again. 

This should be a simply run reposync and it syncs the entire repository without having to consider what's missing

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

How reproducible:
Everytime

Steps to Reproduce:
1. reposync --disablerepo="*" --enablerepo="rhel-8-for-x86_64-appstream-rpms"

Actual results:
reposync only downloads packages that are accessible

Expected results:
reposync should download the entire repository to include modules that are not enabled or even disabled

Additional info:

Comment 1 Marek Blaha 2019-06-03 11:31:52 UTC
The other workaround would be to mark the repo as a hotfix repo: add --setopt=repo_id.module_hotfixes=1 switch to command line.

Comment 3 Marek Blaha 2019-06-04 07:07:17 UTC
PR https://github.com/rpm-software-management/dnf-plugins-core/pull/339 fixes the bug. Reposync now should download all the packages of the repo regardless the modules/streams status.

Comment 4 Marek Blaha 2019-06-04 07:51:26 UTC
The corresponding tests are here: https://github.com/rpm-software-management/ci-dnf-stack/pull/550

Comment 11 errata-xmlrpc 2019-11-05 22:22:06 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, 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-2019:3583