Skip to content

container: select the EPEL branch matching the base image's minor - #73785

Merged
djgalloway merged 1 commit into
ceph:mainfrom
djgalloway:wip-container-epel-minor
Nov 12, 2026
Merged

djgalloway merged 1 commit into
ceph:mainfrom
djgalloway:wip-container-epel-minor

Conversation

@djgalloway

@djgalloway djgalloway commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

EPEL 10 is branched per RHEL minor. Rocky's epel-release resolves to the `10z` alias (newest RHEL minor). When RHEL 10.3 went GA on 2026-11-11, Fedora moved `10z` to 10.3 while the `rockylinux:10` image is still 10.2, so every rocky10 container build in ceph-dev-pipeline since then fails with:

nothing provides (python3.12dist(cryptography) < 50~~ with python3.12dist(cryptography) >= 49) needed by python3-pyOpenSSL-26.3.0-1.el10_3.noarch from epel

Rocky 10.2 ships cryptography 43; EPEL 10.3's pyOpenSSL needs 49. The same thing will happen on every future RHEL minor until Rocky catches up.

Rewrite the epel metalinks to epel-$releasever_major.$releasever_minor, which dnf derives from the installed rocky-release, so EPEL always matches the base image and moves with it when rockylinux:10 becomes 10.3. CentOS Stream is untouched (no minor, epel-10 already correct). Older minors remain resolvable through the archive mirrors.

Verified in a local rockylinux:10 container: after the rewrite the epel repo resolves to /epel/10.2/, pyOpenSSL 25.0.0-1.el10_1 is offered and dnf install python3-pyOpenSSL python3-cheroot succeeds. The rewrite also handles Fedora's epel-release template (${stream:+s}), which is what ceph-build's builder container installs.

Related: https://tracker.ceph.com/issues/82884 (same mismatch on Sepia testnodes, fixed in ceph-cm-ansible #906).

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

EPEL 10 is branched per RHEL minor. Rocky's epel-release follows the
"z" alias (newest RHEL minor), so each RHEL GA moves EPEL ahead of the
Rocky base image until Rocky rebuilds, and EPEL packages built against
the newer minor stop installing. Rewrite the epel metalinks to
epel-$releasever_major.$releasever_minor so EPEL follows the base image.

Assisted-by: Claude Fable 5.1
Signed-off-by: David Galloway <[email protected]>

@phlogistonjohn phlogistonjohn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks ok to me

@djgalloway
djgalloway merged commit 9effd14 into ceph:main Nov 12, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants