slurm: use ssh.service on Debian-family when hiding GPUs from login shells - #1389
Open
100-JM wants to merge 1 commit into
Open
slurm: use ssh.service on Debian-family when hiding GPUs from login shells#1389100-JM wants to merge 1 commit into
100-JM wants to merge 1 commit into
Conversation
…hells The 'Hide GPUs for regular user logins' task hardcodes sshd.service, which does not exist on Ubuntu (the unit is ssh.service). The creates: condition already branches on ansible_os_family; make the shell command follow the same branch via a single ssh_unit variable. Observed on DGX OS 7.5.0: Failed to set unit properties on sshd.service: Unit sshd.service not found. Signed-off-by: 백지명 <wlaud9805@gmail.com>
100-JM
marked this pull request as ready for review
September 3, 2026 13:39
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.
Problem
roles/slurm/tasks/login-compute-setup.ymlhardcodessshd.servicein the "Hide GPUs for regular user logins" task. On Debian-family systems the OpenSSH unit isssh.service, so the task fails:The task's
creates:argument already branches onansible_os_family(ssh.service.dfor non-RedHat), so only the shell command was out of step.Reproduced on DGX OS 7.5.0 (Ubuntu-based) with
slurm_login_on_compute: true.Fix
Introduce a single
ssh_unittask var and use it in both the shell command andcreates:. Behaviour on RedHat-family is unchanged.Verification
Applied the equivalent
systemctl set-property ssh.service DeviceAllow=/dev/nvidiactlon the DGX; a fresh SSH session showsnvidia-smi→No devices were found, as intended.