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

[Bug]: Setting and unsetting the slurmd.config-server option does not restore the environment #16

Open
jedel1043 opened this issue Jun 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jedel1043
Copy link
Contributor

jedel1043 commented Jun 7, 2024

To reproduce

sudo snap set slurm slurmd.config-server=controller
sudo cat /var/snap/slurm/common/.env # SLURMD_CONFIG_SERVER is set
sudo snap unset slurm slurm.config-server
sudo cat /var/snap/slurm/common/.env # SLURMD_CONFIG_SERVER is still set and not removed
@NucciTheBoss NucciTheBoss added the bug Something isn't working label Jun 10, 2024
@NucciTheBoss
Copy link
Member

Can reproduce. I consider this a bug since after some period of time a site may choose to directly use the file rather than use the config server.

@NucciTheBoss NucciTheBoss changed the title Setting and unsetting the slurmd.config-server option does not restore the environment [Bug]: Setting and unsetting the slurmd.config-server option does not restore the environment Jun 25, 2024
@NucciTheBoss
Copy link
Member

Setting config-server should unstage any set slurm.conf file that may have been pre-configured. For example, this could be a simple file rename like $SNAP_COMMON/etc/slurm/slurm.conf -> $SNAP_COMMON/etc/slurm/slurm.conf.bak. This way the slurm.conf configuration file in conf-cache/ will supersede the original configuration, but will preserve the original configuration should the administrator decide to unset config-server.

A warning message can be emitted if trying to set slurm.conf configurations when configless mode is enabled on slurmd that states that options will not be applied. Then, if config-server is unset, the configure hook could restore slurm.conf.bak

As for the .env file itself, the config-server option should be unset to indicate to slurmd wrapper that we're no longer running in configless mode and instead are running in traditional (or potentially dynamic) mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants