Skip to content

Commit f6d1b16

Browse files
committed
fix situation where all partitions are empty
1 parent c041254 commit f6d1b16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/slurm.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ NodeName={{ hostlist }} State=UNKNOWN RealMemory={{ group.get('ram_mb', ram_mb)
135135
PartitionName={{part.name}} Default={{ part.get('default', 'YES') }} MaxTime={{ part.get('maxtime', openhpc_job_maxtime) }} State=UP Nodes={{ nodelist | join(',') }} {{ part.partition_params | default({}) | dict2parameters }}
136136
{% endfor %}{# partitions #}
137137

138+
# Define a non-existent node, in no partition, so that slurmctld starts even with all partitions empty
139+
NodeName=nonesuch
140+
138141
# Want nodes that drop out of SLURM's configuration to be automatically
139142
# returned to service when they come back.
140143
ReturnToService=2

0 commit comments

Comments
 (0)