Bug 2025625

Summary: createrepo_c should be able to handle modules information
Product: Red Hat Enterprise Linux 8 Reporter: Corey Brown <cobrown>
Component: createrepo_cAssignee: Jaroslav Mracek <jmracek>
Status: CLOSED DUPLICATE QA Contact: swm-qe
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: chorn
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-24 07:19:41 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:

Description Corey Brown 2021-11-22 16:00:58 UTC
Description of problem:
Currently createrepo does not handle modules information (modules.yaml) and as a result there are problems with repositories created from RHEL8 packages. Modules.yaml must be handled separately at the moment

Version-Release number of selected component (if applicable):
RHEL 8.3
createrepo_c-0.16.2-2.el8.x86_64.rpm

How reproducible:
everytime

Steps to Reproduce:
1. Reposync RHEL8 repo:

dnf reposync --newest-only --repoid=rhel-8-for-x86_64-appstream-rpms --download-path=/var/www/html/rhel8 --downloadcomps --download-metadata 
createrepo -v /var/www/html/rhel8/rhel-8-for-x86_64-appstream-rpms/ -g comps.xml

2. Enable new repo

3. Try updating packages from the new repo

Actual results:
`dnf update` shows packages conflicts

Expected results:


Additional info:
The problem arises because there is no information about modules in rpms. So createrepo does not see the information about modules and so is not able to pass this information to the system.

Comment 1 Jaroslav Mracek 2021-11-26 07:45:28 UTC
I am not 100% sure but the issue sounds to me related or can be resolved by a new dnf plugin modulesync. See Bug 1868047 - [RFE] A module-granularity synchronization tool (similar to reposync) .

Please can you provide a feedback whether modulesync approach is resolving the issue?

Comment 2 Christian Horn 2022-01-31 08:42:14 UTC
I'm just looking into something related, maybe the same issue.
We had a further fix in rhel8.5GA with bz1801747 getting
solved.  Did your customer rhel8.5 code base?

I also notice that with
https://access.redhat.com/solutions/4888921 we
described how to create own repos including module details,
based on reposync'ed channels.

I see we have nothing as of today for just single RPMs,
and will after discussing the best way in bz1801747
get something together in kbase, maybe extend
https://access.redhat.com/solutions/4907601 .

Comment 4 Red Hat Bugzilla 2023-09-15 01:17:24 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days