From f6d1b166460e5e681bb99eedded6ce4f25fbf1e3 Mon Sep 17 00:00:00 2001 From: Steve Brasier Date: Thu, 11 May 2023 14:03:30 +0000 Subject: [PATCH] fix situation where all partitions are empty --- templates/slurm.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/slurm.conf.j2 b/templates/slurm.conf.j2 index 040171e..aef028f 100644 --- a/templates/slurm.conf.j2 +++ b/templates/slurm.conf.j2 @@ -135,6 +135,9 @@ NodeName={{ hostlist }} State=UNKNOWN RealMemory={{ group.get('ram_mb', ram_mb) 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 }} {% endfor %}{# partitions #} +# Define a non-existent node, in no partition, so that slurmctld starts even with all partitions empty +NodeName=nonesuch + # Want nodes that drop out of SLURM's configuration to be automatically # returned to service when they come back. ReturnToService=2