Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(slurm_ops): implement feedback from slurm-charms PR #35 #53

Merged
merged 9 commits into from
Nov 15, 2024

Conversation

NucciTheBoss and others added 8 commits November 14, 2024 14:08
…rm nodes

Only the `slurmd` package creates `/var/lib/slurm/checkpoint` upon installation,
so the method `charms.hpc_libs.v0.slurm_ops._AptManager._create_state_save_location`
ensures that the directory is created on all nodes, and owned by the Slurm user.

Signed-off-by: Jason C. Nucciarone <[email protected]>
Maps to the correct service name as installed by the `munge`
Debian package.

Signed-off-by: Jason C. Nucciarone <[email protected]>
Use private `_call` function to create the slurmrestd user and group
as the command will be logged, and it proper casts the gid and uid
to string. `subprocess.check_output` will raise a `TypeError`.

Signed-off-by: Jason C. Nucciarone <[email protected]>
Adds additional test as well to ensure that `/var/lib/slurm`
has the correct file permissions mode if created by the
`charms.hpc_libs.v0.slurm_ops._AptManager._create_state_save_location`
method after the relevant Slurm daemon has been installed.

Signed-off-by: Jason C. Nucciarone <[email protected]>
Signed-off-by: Jason C. Nucciarone <[email protected]>
Copy link
Contributor

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just have a small nit that doesn't block merging :)

lib/charms/hpc_libs/v0/slurm_ops.py Show resolved Hide resolved
@NucciTheBoss NucciTheBoss merged commit eaa1978 into charmed-hpc:main Nov 15, 2024
4 checks passed
@NucciTheBoss NucciTheBoss deleted the fix-slurm-ops-impl branch December 11, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment