Ticket 18727 - Slurm 23.11 systemd unit file does not allow logs file creation
Summary: Slurm 23.11 systemd unit file does not allow logs file creation
Status: OPEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Build System and Packaging (show other tickets)
Version: 23.11.1
Hardware: Linux Linux
: 6 - No support contract
Assignee: Jacob Jenson
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2024-01-19 02:48 MST by Taras Shapovalov
Modified: 2024-01-19 02:48 MST (History)
0 users

See Also:
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: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
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"