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 1795936
Summary: | [RFE] createrepo_c should be able to handle modules information | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Denis Volkov <dvolkov> |
Component: | createrepo_c | Assignee: | amatej |
Status: | CLOSED ERRATA | QA Contact: | Eva Mrakova <emrakova> |
Severity: | medium | Docs Contact: | Mariya Pershina <mpershin> |
Priority: | medium | ||
Version: | --- | CC: | amatej, carl, jkadlcik, kdreyer, kemyers, kwalker, mdomonko, mkalyat, mpershin, nsella, ofalk, packaging-team-maint, rmetrich, snavale |
Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | createrepo_c-0.16.2-1.el8 | Doc Type: | Enhancement |
Doc Text: |
.`createrepo_c` now automatically adds modular metadata to repositories
Previously, running the `createrepo_c` command on RHEL8 packages to create a new repository did not include modular repodata in this repository. Consequently, it caused various problems with repositories. With this update, `createrepo_c`:
* scans for modular metadata
* merges the found module YAML files into a single modular document `modules.yaml`
* automatically adds this document to the repository.
As a result, adding modular metadata to repositories is now automatic and no longer has to be done as a separate step using the `modifyrepo_c` command.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2021-05-18 15:46:42 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: | |||
Bug Blocks: | 1825061, 1894575 |
Description
Denis Volkov
2020-01-29 09:41:29 UTC
createrepo_c will scan for yaml files in addition to RPMs. The patterns are: *.modulemd.yaml (recommended file name: N:S:V:C:A.modulemd.yaml) *.modulemd-defaults.yaml (recommended file name: N.modulemd-defaults.yaml) modules.yaml (recommended way of importing multiple documents at once) The files can come from a directory scan or from -i, --pkglist. Package list must support a mix of RPMs and yaml documents. The patterns and supported modulemd documents will be extended in the future as needed. Most likely an extension to support EOL/Obsoletes will be needed: https://fedoraproject.org/w/index.php?title=Changes/Module_Obsoletes_and_EOL As the result, all found and supported yaml documents will be merged into [hash-]modules.yaml[.compression] in the repodata with <data type="modules">. The files should be ordered prior creating modules.yaml to guarantee repeatability. See how createrepo_c orders RPMs. If combination of individual yaml documents and modules.yaml is used, modules.yaml must go first and individual documents must override relevant parts of its original content. createrepo_c --update will work work with the yaml documents the same way as createrepo_c in regular (non-update) mode, because the operation is relatively cheap and it's not necessary to compute any checksums as nedded for RPMs. PR for the described behavior: https://github.com/rpm-software-management/createrepo_c/pull/224 Tests: https://github.com/rpm-software-management/ci-dnf-stack/pull/860 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 (createrepo_c 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-2021:1840 |