fix(prometheus): drop sslcacert from grafana repo config - #6
Merged
Conversation
The fedora-bootc base image does not contain the classic Fedora symlink
/etc/pki/tls/certs/ca-bundle.crt, so grafana's repo config pinning
sslcacert to that path made dnf fail with curl error 77
("error adding trust anchors from file") when fetching repomd.xml,
blocking `dnf install loki grafana`.
The system-default CA trust store is populated by ca-certificates at
/etc/pki/ca-trust/extracted/pem/ and works fine (verified: curl HTTP 200
and a full dnf install of loki+grafana against rpm.grafana.com). Removing
the explicit sslcacert line lets dnf use that default.
Co-authored-by: openhands <openhands@all-hands.dev>
SNThrailkill
marked this pull request as ready for review
August 10, 2026 04:38
- reusable-build-image.yml: guard Add SBOM Attestation with the same release-only condition as Install Cosign / Sign container image. On pull_request runs cosign is never installed and the digest is empty, so the step failed with 'cosign: command not found' (exit 127). - build-artifact.yml: drop the pull_request trigger. The workflow requires build_type/flavor inputs that only exist on workflow_dispatch, so PR runs produced an empty flavor -> 'ghcr.io/.../:latest' and failed with invalid reference format. Co-authored-by: openhands <openhands@all-hands.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
prometheusimage build has been failing for months atdnf install loki grafana -yin theContainerfile. This PR fixes the root cause.Root cause
The build failed with:
An earlier attempt (
dnf update -y && update-ca-trust) didn't help — the log showed "Nothing to do." and the same error persisted.The real cause: the grafana yum repo config explicitly pinned
sslcacert=/etc/pki/tls/certs/ca-bundle.crt, but that classic Fedora symlink does not exist in thequay.io/fedora/fedora-bootc:44base image. Verified empirically:/etc/pki/tls/certs/ca-bundle.crt→ does not exist/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem→ exists (223 KB, populated byca-certificates)curl --cacert /etc/pki/tls/certs/ca-bundle.crt→ fails (bad CA file)curlwith the system default (no--cacert) → HTTP 200dnf install loki grafanawithsslcacertremoved → installs cleanly (grafana 13.1.1 + loki 3.7.6)dnf update/update-ca-trustcouldn't help because nothing in the base image creates that symlink (the bundle is a static layer).Fix
Containerfile(prometheus stage): removed thesslcacert=line from the grafana repo config.sslverify=1is kept; omittingsslcacertlets dnf/curl use the system-default CA trust store, which works correctly. This matches Grafana's own docs.Validation
dnf install loki grafana -y) against the real base image with the fixed repo config — completes successfully.DNMnote: I could not run the fullprometheusbuild locally (no buildah/podman), but the exact failing command was validated against the actual base image.This PR was created by an AI agent (OpenHands) on behalf of SNThrailkill.
@SNThrailkill can click here to continue refining the PR