Ticket 18727

Summary: Slurm 23.11 systemd unit file does not allow logs file creation
Product: Slurm Reporter: Taras Shapovalov <taras.shapovalov>
Component: Build System and PackagingAssignee: Jacob Jenson <jacob>
Status: OPEN --- QA Contact:
Severity: 6 - No support contract    
Priority: ---    
Version: 23.11.1   
Hardware: Linux   
OS: Linux   
Site: -Other- Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- NoveTech Sites: ---
Nvidia HWinf-CS Sites: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Tzag Elita Sites: ---
Linux Distro: --- Machine Name:
CLE Version: Version Fixed:
Target Release: --- DevPrio: ---
Emory-Cloud Sites: ---

Description Taras Shapovalov 2024-01-19 02:48:35 MST
Since 23.11 the systemd unit file includes line "User=slurm", which forces systems to start the daemons by slurm user from the beginning. In the past, the daemons switched to slurm user internally after some actions performed as root.

The log file paths are in /var/log in the default slurm.conf, thus the daemons need root permissions to create/chown the files first. As a result, the logs go to syslog only, but not to /var/log/slurm*.log (the files are absent).

Workaround: "touch /var/log/slurmctld.log && chown slurm:slurm /var/log/slurmctld.log"