Skip to content

Commit e88f7ff

Browse files
mcmultwickberg
authored andcommitted
Switch unit files to start after network-online.target
Using network.target could cause issues in configless operation as DNS may not be accessible yet, which would cause the slurmd to fail to start. Add Wants= alongside After= as is recommended by: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ The slurmctld and the slurmdbd possibly both provide functionality and potentially consume functionality from another host. Bug 11878.
1 parent e1e7926 commit e88f7ff

File tree

6 files changed

+11
-3
lines changed

6 files changed

+11
-3
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ documents those changes that are of interest to users and administrators.
117117
-- auth/jwt - add support for RS256 tokens.
118118
-- Relax reservation purge due to any invalid uid after creation time.
119119
-- Reject srun that requests both --exclusive and --overlap.
120+
-- service files - change dependency to network-online rather than just
121+
network to ensure DNS and other services are available.
120122

121123
* Changes in Slurm 20.11.8
122124
==========================

RELEASE_NOTES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ HIGHLIGHTS
6363
-- Distinguish queued reboot requests (REBOOT@) from issued reboots (REBOOT^).
6464
-- auth/jwt - add support for RS256 tokens. Also permit the username in the
6565
'username' field in addition to the 'sun' (Slurm UserName) field.
66+
-- service files - change dependency to network-online rather than just
67+
network to ensure DNS and other services are available.
6668

6769
CONFIGURATION FILE CHANGES (see man appropriate man page for details)
6870
=====================================================================

etc/slurmctld.service.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[Unit]
22
Description=Slurm controller daemon
3-
After=network.target munge.service
3+
After=network-online.target munge.service
4+
Wants=network-online.target
45
ConditionPathExists=@sysconfdir@/slurm.conf
56

67
[Service]

etc/slurmd.service.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[Unit]
22
Description=Slurm node daemon
33
After=munge.service network-online.target remote-fs.target
4+
Wants=network-online.target
45
#ConditionPathExists=@sysconfdir@/slurm.conf
56

67
[Service]

etc/slurmdbd.service.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[Unit]
22
Description=Slurm DBD accounting daemon
3-
After=network.target munge.service mysql.service mysqld.service mariadb.service
3+
After=network-online.target munge.service mysql.service mysqld.service mariadb.service
4+
Wants=network-online.target
45
ConditionPathExists=@sysconfdir@/slurmdbd.conf
56

67
[Service]

etc/slurmrestd.service.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[Unit]
22
Description=Slurm REST daemon
3-
After=network.target munge.service slurmctld.service
3+
After=network-online.target munge.service slurmctld.service
4+
Wants=network-online.target
45
ConditionPathExists=@sysconfdir@/slurm.conf
56

67
[Service]

0 commit comments

Comments
 (0)