Add SSSD support to slurmctld container - #8
Open
faganihajizada wants to merge 1 commit into
Open
Conversation
This was referenced Feb 20, 2026
faganihajizada
force-pushed
the
optional_ssd_controller_containers
branch
from
August 10, 2026 10:55
428cddf to
3366dc8
Compare
faganihajizada
requested review from
SkylerMalinowski,
alanmutsch,
catblade and
wickberg
as code owners
August 10, 2026 10:55
faganihajizada
marked this pull request as draft
August 10, 2026 10:57
slurmctld resolves users and groups in reservation and partition ACLs via NSS. Without an SSSD NSS source the controller only sees local /etc/passwd, so directory-backed users= scopes fail. Bundle SSSD into the slurmctld layer across 25.11, 26.05, and master for ubuntu and rockylinux variants, matching login/slurmd packages and the shared sssd supervisord program. Use authselect select sssd --force (no with-mkhomedir). Keep the existing privilege model (no user=slurm). Consumers mount /etc/sssd/sssd.conf and must start the container as root for sssd. Without that, sssd goes FATAL and only local passwd entries resolve.
faganihajizada
force-pushed
the
optional_ssd_controller_containers
branch
from
August 10, 2026 11:14
7475f7d to
fa0dec8
Compare
faganihajizada
marked this pull request as ready for review
August 10, 2026 15:44
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 published
slurmctldimage cannot resolve directory users (LDAP/AD via SSSD).slurmctldvalidates names in reservation and partition ACLs with NSS (getpwnam/getgrnam). Login and slurmd images already ship SSSD; the controller does not, so directory-backedusers=scopes fail even when the same users work on login nodes and in slurmdbd.User-visible failure:
slurmctldlog:Reservation request has invalid user <ldap-user>.Evidence in the controller container today:
passwd: files, no/etc/sssd,id <ldap-user>fails. Same user resolves on login.This PR adds embedded SSSD to the
slurmctldlayer across all Slurm versions (25.11, 26.05, master) and OS families (ubuntu24.04, ubuntu26.04, rockylinux9, rockylinux10):authselect select sssd --force(nowith-mkhomedir; controller has no login path)sssdsupervisord program alongside the existingfakesystemdprogramuser=slurm); process UID follows the container UID as beforeSSSD_OPTIONS, mount path, root/securityContextrequirements, and expectedsssdFATAL when unusedAligns with guidance on SlinkyProject/slurm-operator#93: keep the operator identity-provider agnostic; customize the image and mount config via
controller.podSpec. Sites using SSSD need a root container start sosssdcan run.Breaking Changes
N/A for process UID. Image size/deps grow by the SSSD packages. Without a mounted
sssd.conf(or without root),sssdgoes FATAL under supervisord and directory users still do not resolve; local/etc/passwdbehavior is unchanged.Testing Notes
make validate-bakepasses for all bake configssssd.conf/ non-root:slurmctldhealthy,sssdFATAL (expected)sssd.confat/etc/sssd/sssd.conf(root:root 0600) and container as root:id <ldap-user>andscontrol create reservation users=...should succeed