Bug 2183091

Summary: dnf repoclosure complains about modules not in checked repo
Product: Red Hat Enterprise Linux 8 Reporter: Lubomír Sedlář <lsedlar>
Component: dnf-plugins-coreAssignee: amatej
Status: NEW --- QA Contact: swm-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.7CC: amatej, james.antill, mcurlej, sbonazzo
Target Milestone: rcKeywords: MigratedToJIRA, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Lubomír Sedlář 2023-03-30 11:53:14 UTC
Description of problem:
dnf repoclosure command prints dependency errors about modules enabled on the host, but that are not present in the repo it is asked to check

Version-Release number of selected component (if applicable):
dnf-4.7.0-11.el8.noarch
dnf-plugins-core-4.0.21-14.1.el8.noarch

How reproducible:
100%

Steps to Reproduce:
1. dnf download redhat-release
2. createrepo_c .
3. dnf repoclosure --repofrompath r,file://$(pwd) --repo r --check r --arch x86_64 --arch noarch --forcearch x86_64

Actual results:
Modular dependency problems:

 Problem 1: conflicting requests
  - nothing provides module(platform:el8) needed by module httpd:2.4:8070020230131172653:bd1311ed.x86_64
 Problem 2: conflicting requests
  - nothing provides module(platform:el8) needed by module idm:client:8070020221205125533:1eba159a.x86_64
 Problem 3: conflicting requests
  - nothing provides module(platform:el8) needed by module llvm-toolset:rhel8:8070020220810182122:3b9f49c4.x86_64
 Problem 4: conflicting requests
  - nothing provides module(platform:el8) needed by module perl:5.26:820181219174508:9edba152.x86_64
 Problem 5: conflicting requests
  - nothing provides module(platform:el8) needed by module perl-IO-Socket-SSL:2.066:8060020211122104554:bc93984d.x86_64
 Problem 6: conflicting requests
  - nothing provides module(platform:el8) needed by module perl-libwww-perl:6.34:8060020210901111951:9168a43d.x86_64
 Problem 7: conflicting requests
  - nothing provides module(platform:el8) needed by module postgresql:10:8070020221124143148:bd1311ed.x86_64
 Problem 8: conflicting requests
  - nothing provides module(platform:el8) needed by module python36:3.6:8050020210811103506:982725ab.x86_64
 Problem 9: conflicting requests
  - nothing provides module(platform:el8) needed by module virt:rhel:8070020230105112251:bd1311ed.x86_64


Expected results:
No errors are printed