slurm: put slurm_install_prefix clients on the slurmd PATH (fixes Pyxis with a custom prefix) - #1411
Merged
Merged
Conversation
slurmd runs with systemd's minimal PATH, so with a custom
slurm_install_prefix the Slurm client binaries are not resolvable from
slurmd's children. Enroot's slurm-pmi hook (installed by the pyxis role)
calls scontrol and fails with "Command not found: scontrol", and every
Pyxis container then refuses to start:
pyxis: container start failed with error code: 1
[ERROR] Command not found: scontrol
[ERROR] /etc/enroot/hooks.d/50-slurm-pmi.sh exited with return code 1
The default /usr/local prefix only works because /usr/local/bin is on the
default PATH. Install a slurmd drop-in that prepends the configured prefix.
The existing unconditional slurmd restart with daemon-reload in compute.yml
applies it on every convergence.
Reproduced on a fresh Ubuntu 24.04 single-node deployment with
slurm_install_prefix=/opt/deepops/slurm and Slurm 26.05.3; the same
correction was part of the closed consolidation PR #1396.
Signed-off-by: Doug Holt <dholt@nvidia.com>
michael-balint
approved these changes
Sep 23, 2026
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
slurmdruns with systemd's minimalPATH, so whenslurm_install_prefixis not/usr/localthe Slurm client binaries are not resolvable from slurmd's children. Enroot's50-slurm-pmi.shhook (installed by thepyxisrole) callsscontroland fails, and every Pyxis container refuses to start:This adds a
slurmd.service.d/10-slurm-path.confdrop-in that prepends{{ slurm_install_prefix }}/binand/sbinto slurmd'sPATH. The existing unconditionalstart slurmdtask (restart + daemon-reload) incompute.ymlruns after this, so the override is active on every convergence without a new handler.The same correction was part of the closed consolidation PR #1396; this is the minimal standalone version.
Validation
slurm_install_prefix=/opt/deepops/slurm, Slurm 26.05.3, Pyxis 0.11.1:srun --gpus=1works,srun --container-image=...fails exactly as above.ansible-lint, production profile): 0 failures.git diff --check: clean.Notes
On Ubuntu 23.10+ Pyxis additionally needs the unprivileged user-namespace AppArmor exception for
enroot-nsenter, which #1392 addresses. This PR is independent of that change.