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: remove slurm.conf location override from env #24

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

NucciTheBoss
Copy link
Member

The patch to src/common/Makefile.am sets the default location for slurm.conf to $SNAP_COMMON/etc/slurm/slurm.conf. Having this environment variable around messes with the CLI commands when running in configless mode as these commands will still look for slurm.conf in $SNAP_COMMON/etc/slurm/slurm.conf. Rather than under /var/spool.

Note that you will possibly need to set SlurmdSpoolDir for the CLI commands to locate the cached slurm.conf when running in configless mode. This option should be set in the main slurm controller.

Misc.

You can use the following command to set the slurmd spool directory on the main slurm controller node (slurmctld):

snap set slurm slurm.slurmd-spool-dir=/var/snap/slurm/common/var/lib

Ideally this will be automatically set at installation once we have the fix for #19

The patch to `src/common/Makefile.am` sets the default
location for slurm.conf to $SNAP_COMMON/etc/slurm/slurm.conf.
Having this environment variable around messes with the CLI commands
when running in configless mode as these commands will still look for
slurm.conf in $SNAP_COMMON/etc/slurm/slurm.conf. Rather than under /var/spool.

Note that you will possibly need to set `SlurmdSpoolDir` for the CLI
commands to locate the cached slurm.conf when running in configless mode.
This option should be set in the main slurm controller.

Signed-off-by: Jason C. Nucciarone <[email protected]>
@NucciTheBoss NucciTheBoss requested a review from jedel1043 June 12, 2024 16:27
@NucciTheBoss NucciTheBoss self-assigned this Jun 12, 2024
@jedel1043
Copy link
Contributor

This was actually enough to make configless work, and I didn't need to set the spool dir. It would still be worth solving #22 though.

@NucciTheBoss
Copy link
Member Author

Great! I think #22 can wait until next pulse - #19 takes higher precedence - but great that this fixes the configless issues!

@NucciTheBoss NucciTheBoss merged commit a3ab81f into main Jun 12, 2024
3 checks passed
@NucciTheBoss NucciTheBoss deleted the remove-slurm-conf-override branch June 25, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants