Skip to content

MOD-20897 Map RHEL 10 compatible distros to rhel10 - #118

Merged
oshadmi merged 2 commits into
masterfrom
oshadmi-rhel10-os-map
Nov 15, 2026
Merged

oshadmi merged 2 commits into
masterfrom
oshadmi-rhel10-os-map

Conversation

@oshadmi

@oshadmi oshadmi commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Map the RHEL 10 rebuilds (rocky10, centos10, almalinux10, oracle10) to rhel10 in RLEC_OS_MAP, matching the existing 8 and 9 entries. RHEL itself already reports rhel10 and needs no entry.

Without the entries, a package built on Rocky Linux 10 records "operating_systems": ["rocky10"]. Redis Enterprise checks that list against the node's OS (rhel10 on a RHEL 10 node) at upload, and refuses the module.

This only affects builds that read the OS through distro. Builds in an rs-devcontainer use /etc/devcontainer instead and are unchanged.

Checked by hand: get_curr_os() run against the real /etc/os-release from rockylinux/rockylinux:10 and ubi10:10.0 now returns rhel10, and Rocky 9 and UBI 9 still return rhel9. A unit test covers the new entries.

Needed for MOD-20897 (RediSearch on RHEL 10). A release, then a ramp-packer pin bump in RediSearch, follow.

Companion to RediSearch/RediSearch#12322, which names the same packages Linux-rhel10-*.

🤖 Generated with Claude Code


Note

Low Risk
Small metadata mapping change with no auth or runtime logic; only affects OS labeling for modules built via distro detection.

Overview
Extends RLEC_OS_MAP so Rocky, CentOS, AlmaLinux, and Oracle 10 normalize to rhel10 in get_curr_os(), matching the existing RHEL 8/9 rebuild behavior.

Without this, modules built on those distros record operating_systems like rocky10 and can be rejected on RHEL 10 nodes during upload. Devcontainer-based builds are unchanged because they read /etc/devcontainer instead of distro.

Adds a unit test (test_maps_rhel_compatible_distros_to_rhel) for RHEL 9/10 and the new RHEL 10 mappings.

Reviewed by Cursor Bugbot for commit e931391. Bugbot is set up for automated code reviews on this repo. Configure here.

oshadmi and others added 2 commits November 15, 2026 11:00
Packages built on Rocky Linux 10 (and other RHEL 10 rebuilds) record
"operating_systems": ["rocky10"], because RLEC_OS_MAP stops at
version 9. Redis Enterprise refuses to upload a module whose
operating_systems list does not include the node's OS, and a RHEL 10
node reports rhel10, so those packages cannot be installed.

Add the version 10 entries alongside the existing 8 and 9 ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
get_curr_os() already falls back to the OS name when it has no entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@oshadmi
oshadmi merged commit adc2cad into master Nov 15, 2026
6 checks passed
@oshadmi
oshadmi deleted the oshadmi-rhel10-os-map branch November 15, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants