Skip to content

Commit 23aecda

Browse files
committed
fix slurmd entrypoint now hostname!=pod name
1 parent 1b59e76 commit 23aecda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

image/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ then
7878
echo "-- slurmctld is now active ..."
7979

8080
echo "---> Updating node definitions ..."
81-
scontrol delete node=$HOSTNAME
82-
scontrol create $(slurmd -C | head -n1) State=FUTURE
81+
scontrol delete node=${POD_NAME}
82+
scontrol create NodeName=${POD_NAME} $(slurmd -C | head -n1 | cut -d ' ' -f 2-) State=FUTURE
8383

8484
echo "---> Starting the Slurm Node Daemon (slurmd) ..."
8585
exec /usr/sbin/slurmd -D "${@:2}"

0 commit comments

Comments
 (0)