Skip to content

CARRY: build(konflux): move Konflux images to RHEL 10.2 - #62

Draft
EmilienM wants to merge 1 commit into
mainfrom
carry/konflux-rhel10
Draft

EmilienM wants to merge 1 commit into
mainfrom
carry/konflux-rhel10

Conversation

@EmilienM

@EmilienM EmilienM commented Sep 28, 2026 •

Copy link
Copy Markdown

Summary

Move the Konflux image builds to RHEL 10.2. Five images move (CLI, gateway, sandbox, supervisor, ODH e2e runner); the OpenClaw harness image stays on UBI 9 for a hard technical reason (see below). This reworks #62 on top of the restructured build: since that PR was opened, the builders moved to the Red Hat rust-builder images, the product runtimes moved to ubi9/ubi-minimal-pqc, the supervisor lost its RPM inputs, and the e2e and OpenClaw images were added.

Related Issue

No issue required: CARRY-only build infrastructure change for the downstream Konflux images.

Changes

  • Rust builders: all five Rust-built images compile on rust-builder-image/rust-rhel10:1.99.1 (rust-rhel9 1.99.0 has no RHEL 10 counterpart; 1.99.1 matches what the e2e image already used).
  • Product runtimes: ubi9/ubi-minimal-pqc → ubi10/ubi-minimal:10.2 (cli, gateway, supervisor); sandbox → ubi10/ubi-micro:10.2; e2e runner → ubi10/ubi:10.2.
  • Post-quantum crypto: RHEL 10 has no PQ subpolicy because its stock DEFAULT policy already enables the ML-KEM hybrid key exchange groups. The images now assert DEFAULT plus ML-KEM in the OpenSSL policy backend instead of DEFAULT:PQ, and drop crypto-policies-scripts (and the Python stack it pulls) from the e2e runtime.
  • Gateway toolchain: gcc-toolset-15 is gone; RHEL 10's system GCC provides the C++20 <format> header that bundled Z3 needs.
  • e2e Python stack: python3.11 does not exist on RHEL 10, so the e2e image and its locked pip environment move to python3.12 (3.12.16), with odh/requirements.txt recompiled for cp312 and the Hermeto pip prefetch set to py_version: 312.
  • RPM inputs: rpms.in.yaml files point at the public UBI 10 baseos, appstream and CodeReady Builder repos; all four lockfiles regenerated. No el9 packages remain.
  • Labels: the four product image name labels move from rhoai/odh-openshell-*-rhel9 to -rhel10.
  • Renovate: the digest matchers follow the new bases, and now also track the product builders' rust-rhel10 digest and the sandbox ubi-micro digest, which were untracked before.
  • Pre-existing breakage fixed: the root Cargo.toml now lists tests/policy-conformance as a workspace member, but no Konflux Dockerfile copies tests/, so every Rust image build on current main fails to load the workspace. Each Rust builder now rewrites the workspace members list to the crates it actually builds (the CLI image already did this; its pattern no longer matched).

OpenClaw stays on UBI 9

ubi10/nodejs-24-minimal links RHEL 10's SQLite 3.46.1, which OpenClaw rejects at startup as not WAL-reset-safe (it requires 3.51.3+, 3.50.7+, or a patched 3.44.6+). The ubi9 base ships SQLite 3.54.1 and works. Its README now documents this; revisit once RHEL 10 ships a WAL-reset-safe SQLite. Everything else about its build is unchanged from main.

Platform floor changes

  • x86_64 CPUs: every moved image needs an x86-64-v3 CPU. RHEL 10 requires it and its GCC defaults to -march=x86-64-v3. That includes the static sandbox binary injected into workloads, but those nodes already run the supervisor image, which needs v3 anyway.
  • CLI hosts: the dynamically linked CLI now needs glibc 2.38 or newer on the host (RHEL 10+, Fedora 39+, Debian 13+, Ubuntu 24.04+); verified by running the built binary on Fedora 39 (works, with a loader warning about weakly linked GLIBC_2.39 symbols) and UBI 9.8 (refuses to load). RHEL 9 hosts lose CLI support.

Release follow-ups (outside this repo)

The -rhel10 rename needs matching release config before it ships in RHOAI:

  • konflux-release-data: rhoai-onprem-v3-6-components-{prod,stage}.yaml maps the four components to registry{.stage}.redhat.io/rhoai/odh-openshell-*-rhel9.
  • New Comet repos for the four -rhel10 images.
  • Operator image references to the -rhel9 repos.

No RHOAI component ships to a -rhel10 repo yet, so this is worth confirming with RHOAI release before it syncs downstream.

Testing

  • Hermetic local builds of all six images with deploy/konflux/build-local.sh (Hermeto prefetch, --network none, linux/amd64). All in-build checks passed: static-PIE sandbox with the NSS pin (positive and negative probes), dynamic linkage assertions for CLI and supervisor, .dep-v0 auditable metadata in every binary, the crypto-policy assertions, the e2e image's tool-presence loop, and the OpenClaw smoke-test.sh (including Node negotiating X25519MLKEM768 over TLS 1.3 under the stock DEFAULT policy).
  • The new DEFAULT + ML-KEM policy assertions were verified against the exact pinned ubi10 digests, and the rust-rhel10 builder was confirmed to ship GCC 14.3.1 with the C++20 <format> header and clang-devel, so the gateway's vendored Z3 builds without gcc-toolset.
  • Verified the CLI binary floor with objdump -T and by running it on Fedora 39 (glibc 2.38: runs, with a loader warning about weak GLIBC_2.39 symbols) and UBI 9.8 (glibc 2.34: refuses to load).
  • Built the OpenClaw image on ubi10/nodejs-24-minimal as an experiment: the image builds and the PQ check passes, but OpenClaw refuses to run on RHEL 10's SQLite 3.46.1 (see "OpenClaw stays on UBI 9" above), so the image stays on the ubi9 base.
  • linux/arm64 not built locally. The Konflux PR pipelines on this PR cover it.
  • mise run pre-commit: license:check still fails on the 21 .tekton/ files without SPDX headers, identical to unmodified main; the rest of lint covers Rust, Python, Markdown, Helm, proto and TS, none of which this PR touches beyond the two konflux READMEs (markdownlint clean) and the two shell scripts (shellcheck clean).
  • Unit tests added/updated: not applicable (build config only)
  • E2E tests added/updated: not applicable

Checklist

  • Follows Conventional Commits, with the downstream CARRY: prefix
  • Commits are signed off (DCO)
  • Architecture docs updated: not applicable (no architecture or published docs describe the Konflux images)

@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: b98beb9b-4593-4770-823a-def23f506e14


Comment @coderabbitai help to get the list of available commands.

@EmilienM

Copy link
Copy Markdown
Author

We'll not merge it before RHAI 3.7 timeline at this point, to support disconnected environments with RHOAI.

@github-actions

Copy link
Copy Markdown

This pull request has had no activity for 14 days and is now marked stale. It may be closed in 7 days if there is no further activity.

@EmilienM

Copy link
Copy Markdown
Author

don't close it, we're targeting RHAI 3.7 for this one.

@github-actions

Copy link
Copy Markdown

This pull request has had no activity for 14 days and is now marked stale.

Move five of the six Konflux image builds (CLI, gateway, sandbox,
supervisor, ODH e2e runner) from UBI 9.8 to UBI 10.2. The OpenClaw
harness image stays on ubi9/nodejs-24-minimal and documents why:
ubi10/nodejs-24-minimal links RHEL 10's SQLite 3.46.1, which OpenClaw
rejects as not WAL-reset-safe, while the ubi9 base ships SQLite 3.54.1.

The Rust images build on rust-rhel10:1.99.1, since rust-rhel9 1.99.0
has no RHEL 10 counterpart. The product runtimes move from
ubi9/ubi-minimal-pqc to ubi10/ubi-minimal: RHEL 10 has no PQ subpolicy,
because its stock DEFAULT policy already enables the ML-KEM hybrid key
exchange groups, so the images assert that instead of DEFAULT:PQ. The
gateway drops gcc-toolset-15; RHEL 10's system GCC provides the C++20
<format> header that bundled Z3 needs. The e2e runner moves its Python
stack from python3.11, which does not exist on RHEL 10, to python3.12,
with the pip closure recompiled for cp312.

RPM lockfiles are regenerated against the public UBI 10 CDN repos, and
the four product image name labels move from -rhel9 to -rhel10.

The Rust images also fix a breakage that predates this change: the
root Cargo.toml now lists tests/policy-conformance as a workspace
member, but no Konflux Dockerfile copies tests/, so every Rust image
build fails to load the workspace. Each builder now rewrites the
members list to the crates it actually builds.

Platform floor: every x86_64 image needs an x86-64-v3 CPU (RHEL 10 GCC
default), and the dynamically linked CLI needs glibc 2.38 or newer on
the host, so RHEL 9 hosts lose CLI support.

Signed-off-by: Emilien Macchi <emacchi@redhat.com>
@EmilienM
EmilienM force-pushed the carry/konflux-rhel10 branch from ac040e3 to 4b101c4 Compare November 24, 2026 18:46
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.

1 participant