Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 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