Skip to content

Commit

Permalink
fix slurmd entrypoint now hostname!=pod name
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Aug 17, 2023
1 parent 1b59e76 commit 23aecda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ then
echo "-- slurmctld is now active ..."

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

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

0 comments on commit 23aecda

Please sign in to comment.