(Initial proposal creation) |
(adding release notes tracker) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
= Upgrade systems to createrepo_c 1.0 and change repositories metadata settings <!-- The name of your change proposal --> = | |||
== Summary == | == Summary == | ||
This is a proposal for changing some | This is a proposal for upgrading systems which produce composes to createrepo_c > 1.0 and changing some options used to create Fedora repositories metadata. Note that some of these changes are inevitable due to createrepo_c >= 1.0 behavioral change. We aim to change both Rawhide/F41, then move all following releases to the new settings, while preserving most of the current settings for releases <= 40. | ||
== Owner == | == Owner == | ||
Line 19: | Line 10: | ||
This should link to your home wiki page so we know who you are. | This should link to your home wiki page so we know who you are. | ||
--> | --> | ||
* Name: [[User:mattia| Mattia Verga]], [[User:kevin| Kevin Fenzi | * Name: [[User:mattia| Mattia Verga]], [[User:kevin| Kevin Fenzi]] | ||
<!-- Include you email address that you can be reached should people want to contact you about helping with your change, status is requested, or technical issues need to be resolved. If the change proposal is owned by a SIG, please also add a primary contact person. --> | <!-- Include you email address that you can be reached should people want to contact you about helping with your change, status is requested, or technical issues need to be resolved. If the change proposal is owned by a SIG, please also add a primary contact person. --> | ||
* Email: mattia@fedorapeople.org, kevin | * Email: mattia@fedorapeople.org, kevin@fedorapeople.org | ||
<!--- UNCOMMENT only for Changes with assigned Shepherd (by FESCo) | <!--- UNCOMMENT only for Changes with assigned Shepherd (by FESCo) | ||
* FESCo shepherd: [[User:FASAccountName| Shehperd name]] <email address> | * FESCo shepherd: [[User:FASAccountName| Shehperd name]] <email address> | ||
--> | --> | ||
== Current status == | == Current status == | ||
[[Category: | [[Category:ChangeAcceptedF41]] | ||
<!-- When your change proposal page is completed and ready for review and announcement --> | <!-- When your change proposal page is completed and ready for review and announcement --> | ||
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler --> | <!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler --> | ||
Line 46: | Line 36: | ||
ON_QA -> change is fully code complete | ON_QA -> change is fully code complete | ||
--> | --> | ||
* [ | * [https://lists.fedoraproject.org/archives/list/devel-announce@lists.fedoraproject.org/thread/T4QZAC6FXLJFIG7RARAMXQNOPOCF6C2T/ Announced] | ||
* FESCo issue: | * [https://discussion.fedoraproject.org/t/f41-change-propopsal-change-compose-settings-system-wide/108893 Discussion Thread] | ||
* Tracker bug: | * FESCo issue: [https://pagure.io/fesco/issue/3189 #3189] | ||
* Release notes tracker: | * Tracker bug: [https://bugzilla.redhat.com/show_bug.cgi?id=2276422 #2276422] | ||
* Release notes tracker: [https://gitlab.com/fedora/docs/fedora-linux-documentation/release-notes/-/issues/110 #110] | |||
== Detailed Description == | == Detailed Description == | ||
With createrepo_c < 1.0 we're currently using different settings for Rawhide repository metadata and stable releases repository metadata. | |||
With createrepo_c 1 | |||
* Rawhide | |||
** gzip compression for all metadata | |||
** no updateinfo.xml file is generated (no updates repository exists) | |||
** sqlite database of repodata is generated and compressed with gzip as well | |||
** comps repodata is made available both as uncompressed xml and gzipped | |||
** zchunk is active | |||
** DRPMs disabled | |||
* F40 | |||
** gzip compression for primary metadata | |||
** updateinfo.xml (for updates repository) is compressed with XZ | |||
** sqlite database of repodata is generated and compressed with BZ2 | |||
** comps repodata is made available both as uncompressed xml and gzipped | |||
** zchunk is active | |||
** DRPMs disabled (approved change for F40) | |||
* F<40 | |||
** gzip compression for primary metadata | |||
** updateinfo.xml (for updates repository) is compressed with XZ | |||
** sqlite database of repodata is generated and compressed with BZ2 | |||
** comps repodata is made available both as uncompressed xml and gzipped | |||
** zchunk is active | |||
** DRPMs enabled | |||
With createrepo_c > 1.0 moving to zstd as the default compression type, we want to have consistent settings for all new releases and to specify those settings manually, so that possible future changes of defaults don't cause unexpected breakages. So we propose the following settings: | |||
* Rawhide/F>=41 | |||
** use `--general-compress-type` set to zstd to compress all metadata to zstd | |||
** updateinfo.xml (for updates repository) compressed with zstd as well | |||
** disable generating the additional sqlite database, as it was only useful for yum | |||
** comps repodata will be available only zstd compressed | |||
** zchunk is active | |||
** DRPMs disabled | |||
* | * F<=40 | ||
* | ** nothing should change by using the `--compatibility` flag of createrepo_c >= 1.0 | ||
Note that updating bodhi-composer to use createrepo_c >= 1.0 will also introduce an unavoidable change into EPEL8 updates repositories: comps repodata will be made available only in compressed format (which is set to XZ in EPEL8). Other EPEL releases (EPEL7 and EPEL9) can use the `--compatibility` flag to maintain actual settings. | |||
== Feedback == | == Feedback == | ||
Line 73: | Line 95: | ||
* Proposal owners: | * Proposal owners: | ||
** change createrepo_c settings for Rawhide in compose-rawhide01 (which is already upgraded to f39) | ** change createrepo_c settings for Rawhide in compose-rawhide01 (which is already upgraded to f39) | ||
** upgrade bodhi-composer to f39 | ** upgrade bodhi-composer to f39 and have it using createrepo_c >= 1.0.0 | ||
** upgrade | ** upgrade (if a new release is released in time) or backport patch into bodhi to support all createrepo_c settings | ||
** change bodhi | ** change bodhi's `createrepo_c.ini` in ansible to use the new settings for F>=41 | ||
* Other developers: <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | * Other developers: <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
Line 117: | Line 139: | ||
<!-- If you cannot complete your feature by the final development freeze, what is the backup plan? This might be as simple as "Revert the shipped configuration". Or it might not (e.g. rebuilding a number of dependent packages). If you feature is not completed in time we want to assure others that other parts of Fedora will not be in jeopardy. --> | <!-- If you cannot complete your feature by the final development freeze, what is the backup plan? This might be as simple as "Revert the shipped configuration". Or it might not (e.g. rebuilding a number of dependent packages). If you feature is not completed in time we want to assure others that other parts of Fedora will not be in jeopardy. --> | ||
* Contingency mechanism: revert back to previous settings and wait for the next day compose. | * Contingency mechanism: revert back to old createrepo_c < 1.0 and previous settings and wait for the next day compose. | ||
<!-- When is the last time the contingency mechanism can be put in place? This will typically be the beta freeze. --> | <!-- When is the last time the contingency mechanism can be put in place? This will typically be the beta freeze. --> | ||
* Contingency deadline: F41-beta freeze | * Contingency deadline: F41-beta freeze |
Latest revision as of 16:56, 2 October 2024
Upgrade systems to createrepo_c 1.0 and change repositories metadata settings
Summary
This is a proposal for upgrading systems which produce composes to createrepo_c > 1.0 and changing some options used to create Fedora repositories metadata. Note that some of these changes are inevitable due to createrepo_c >= 1.0 behavioral change. We aim to change both Rawhide/F41, then move all following releases to the new settings, while preserving most of the current settings for releases <= 40.
Owner
- Name: Mattia Verga, Kevin Fenzi
- Email: mattia@fedorapeople.org, kevin@fedorapeople.org
Current status
- Targeted release: Fedora Linux 41
- Last updated: 2024-10-02
- Announced
- Discussion Thread
- FESCo issue: #3189
- Tracker bug: #2276422
- Release notes tracker: #110
Detailed Description
With createrepo_c < 1.0 we're currently using different settings for Rawhide repository metadata and stable releases repository metadata.
- Rawhide
- gzip compression for all metadata
- no updateinfo.xml file is generated (no updates repository exists)
- sqlite database of repodata is generated and compressed with gzip as well
- comps repodata is made available both as uncompressed xml and gzipped
- zchunk is active
- DRPMs disabled
- F40
- gzip compression for primary metadata
- updateinfo.xml (for updates repository) is compressed with XZ
- sqlite database of repodata is generated and compressed with BZ2
- comps repodata is made available both as uncompressed xml and gzipped
- zchunk is active
- DRPMs disabled (approved change for F40)
- F<40
- gzip compression for primary metadata
- updateinfo.xml (for updates repository) is compressed with XZ
- sqlite database of repodata is generated and compressed with BZ2
- comps repodata is made available both as uncompressed xml and gzipped
- zchunk is active
- DRPMs enabled
With createrepo_c > 1.0 moving to zstd as the default compression type, we want to have consistent settings for all new releases and to specify those settings manually, so that possible future changes of defaults don't cause unexpected breakages. So we propose the following settings:
- Rawhide/F>=41
- use
--general-compress-type
set to zstd to compress all metadata to zstd - updateinfo.xml (for updates repository) compressed with zstd as well
- disable generating the additional sqlite database, as it was only useful for yum
- comps repodata will be available only zstd compressed
- zchunk is active
- DRPMs disabled
- use
- F<=40
- nothing should change by using the
--compatibility
flag of createrepo_c >= 1.0
- nothing should change by using the
Note that updating bodhi-composer to use createrepo_c >= 1.0 will also introduce an unavoidable change into EPEL8 updates repositories: comps repodata will be made available only in compressed format (which is set to XZ in EPEL8). Other EPEL releases (EPEL7 and EPEL9) can use the --compatibility
flag to maintain actual settings.
Feedback
The zstd compression type was chosen to match createrepo_c settings. As an alternative, we might want to choose xz, especially after zlib-ng has been made the default in Fedora and brought performance improvements.
The sqlite database distributed alongside the repodata is not useful for dnf, but it might be used by some external consumer we're not aware. Please do let us know.
Benefit to Fedora
We're aiming at having consistent defaults for Rawhide and stable releases and avoid future changes to createrepo_c defaults to cause unexpected changes to repodata. Also, by using better compression methods and avoid generating the sqlite database we're reducing repodata disk usage.
Scope
- Proposal owners:
- change createrepo_c settings for Rawhide in compose-rawhide01 (which is already upgraded to f39)
- upgrade bodhi-composer to f39 and have it using createrepo_c >= 1.0.0
- upgrade (if a new release is released in time) or backport patch into bodhi to support all createrepo_c settings
- change bodhi's
createrepo_c.ini
in ansible to use the new settings for F>=41
- Other developers:
- Release engineering: #Releng issue number
- Policies and guidelines: N/A (not needed for this Change)
- Trademark approval: N/A (not needed for this Change)
- Alignment with Community Initiatives:
Upgrade/compatibility impact
No change should be noticed while upgrading from previous releases.
How To Test
DNF normal day usage should not be affected: upgrading/installing packages should work as before, maybe a little faster in downloading repodata.
User Experience
User experience should not be affected.
Possible external custom repodata consumers might stop working and will need to adjust to the new compression method.
Dependencies
Contingency Plan
- Contingency mechanism: revert back to old createrepo_c < 1.0 and previous settings and wait for the next day compose.
- Contingency deadline: F41-beta freeze
- Blocks release? Yes
Documentation
https://docs.pagure.org/pungi/configuration.html#createrepo-settings