🐛 Fix microdnf segfault by removing unsupported GPG keys#894
🐛 Fix microdnf segfault by removing unsupported GPG keys#894metal3-io-bot merged 1 commit intometal3-io:mainfrom
Conversation
78e3f80 to
07149e8
Compare
|
/hold |
82ff02c to
ee1e227
Compare
|
/test metal3-centos-e2e-integration-test-main metal3-ubuntu-e2e-integration-test-main |
There was a problem hiding this comment.
Pull request overview
This PR addresses a microdnf segfault issue in CentOS environments by removing problematic GPG keys and dynamically importing available official CentOS keys to ensure compatibility across CentOS 9 and 10.
Changes:
- Remove two specific GPG keys (RPM-GPG-KEY-CentOS-SIG-Extras and RPM-GPG-KEY-centosofficial-PQC) that cause microdnf to segfault
- Dynamically import remaining CentOS GPG keys using a wildcard pattern to handle naming variations between CentOS versions
- Refactor dnf configuration in Dockerfile to use printf with overwrite instead of echo with append
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 11 comments.
| File | Description |
|---|---|
| prepare-image.sh | Adds GPG key cleanup and dynamic import logic before package installation in the main image preparation script |
| Dockerfile | Applies the same GPG key fix to the deps-wheel-builder stage and updates the dnf.conf creation approach |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tuminoid
left a comment
There was a problem hiding this comment.
IMO this level failure at DNF should not be worked around as it surely is major issue over all. This has been reported to microdnf maintainers, so I'd like to wait for some comments/timeline estimates before merging this, regardless that it might block ironic-image release for a day or two.
Rozzii
left a comment
There was a problem hiding this comment.
I have no additional comments on top of the co-pilote comments, co-pilote concers seem to be very minor issues or rather considerations.
But I can't argue against @tuminoid 's request either as it is reasonable. I agree that we should not rush the release or the CI unblocking until at least we have an ETA for a real fix.
ee1e227 to
72d4720
Compare
|
/test metal3-centos-e2e-integration-test-main metal3-ubuntu-e2e-integration-test-main |
|
a new CS base image has been uploaded, local builds work again |
|
@elfosardo should we close this? |
|
closing as the new images have fixed the gpg keys |
72d4720 to
ade1378
Compare
Remove problematic GPG keys (CentOS-SIG-Extras, centosofficial-PQC) and explicitly import valid keys before package installation in both Dockerfile wheel-builder stages and prepare-image.sh. This preventsa microdnf segfault caused by attempting to use unsupported keys. Signed-off-by: Riccardo Pittau <elfosardo@gmail.com>
ade1378 to
a85a0f9
Compare
|
/test metal3-centos-e2e-integration-test-main metal3-ubuntu-e2e-integration-test-main |
|
Do we plan to backport this? At least 34.0 needs this. |
|
/unhold |
@tuminoid we could, I hope this is not actually needed for too long though |
tuminoid
left a comment
There was a problem hiding this comment.
OK, builds passed. I'm not going to nit about the bash as we hopefully revert this in nearby future.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Rozzii The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cherry-pick release-34.0 |
|
@tuminoid: #894 failed to apply on top of branch "release-34.0": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Remove problematic GPG keys (CentOS-SIG-Extras, centosofficial-PQC)
and explicitly import valid keys before package installation in
both Dockerfile wheel-builder stages and prepare-image.sh.
This preventsa microdnf segfault caused by attempting to use
unsupported keys.