I have setup configless for slurmd but it appears like pam_slurm_adopt still expects to read /etc/slurm/slurm.conf. Mar 20 08:40:48 pitzer-slurmd01-test pam_slurm_adopt[49090]: error: s_p_parse_file: unable to status file /etc/slurm/slurm.conf: No such file or directory, retrying in 1sec up to 60sec If I create a symlink from /run/slurm/conf/slurm.conf to /etc/slurm/slurm.conf then the PAM module works just fine.
Thanks for the tip. the symlink works, however when you restart slurmd it sees /etc/slurm/slurm.conf and so doesn't update /var/spool/slurmd/conf-cache this results in a stale config when any changes are made to slurm.conf. The temporarily fix is: systemctl stop slurmd && rm -f /var/spool/slurmd/conf-cache/* && systemctl start slurmd Perhaps this could be added to /usr/lib/systemd/system/slurmd.service ?
This bug was fixed in slurm v20.02.2 Changes in Slurm 20.02.2 (SNIP) > -- pam_slurm_adopt - explicitly call slurm_conf_init(). :)