From 12750b506c967f42e19756b3ad64c30fab19f62e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Schr=C3=B6ter?= Date: Thu, 20 Nov 2025 22:02:46 +0100 Subject: [PATCH 1/3] Created cluster association for the users --- slurm/entrypoint.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/slurm/entrypoint.sh b/slurm/entrypoint.sh index 9ebb57f..a36e0eb 100755 --- a/slurm/entrypoint.sh +++ b/slurm/entrypoint.sh @@ -114,6 +114,23 @@ then scontrol reconfigure fi + # Add partition associations if they don't exist + part_accts=$(sacctmgr list -P associations cluster=hpc partition=compute format=User | wc -l) + if [[ $part_accts -eq 1 ]]; then + echo "Adding partition associations.." + sacctmgr -i add user sfoster account=sfoster cluster=hpc partition=compute + sacctmgr -i add user sfoster account=sfoster cluster=hpc partition=debug + sacctmgr -i add user astewart account=sfoster cluster=hpc partition=compute + sacctmgr -i add user astewart account=sfoster cluster=hpc partition=debug + sacctmgr -i add user hpcadmin account=staff cluster=hpc partition=compute + sacctmgr -i add user hpcadmin account=staff cluster=hpc partition=debug + # Ensure default accounts are set correctly after adding partition associations + sacctmgr -i modify user where name=sfoster set defaultaccount=sfoster + sacctmgr -i modify user where name=astewart set defaultaccount=sfoster + sacctmgr -i modify user where name=hpcadmin set defaultaccount=staff + scontrol reconfigure + fi + echo "---> Starting sshd on the frontend..." /usr/sbin/sshd -D -e From aaea0d50c4f2c3961c9a42f3b90e7187b18333d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Schr=C3=B6ter?= Date: Thu, 20 Nov 2025 22:03:24 +0100 Subject: [PATCH 2/3] Updated the slurm version --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index ec4e58a..2f65aa7 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ HPCTS_VERSION="2025.02" -SLURM_VERSION="24.05.5-1" +SLURM_VERSION="24.05.5" MARIADB_VERSION=10.11.11 MONGODB_VERSION=7.0 From bd1bcd765c7b7d4439bc2fac48301b293efc59ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Schr=C3=B6ter?= Date: Thu, 20 Nov 2025 23:30:18 +0100 Subject: [PATCH 3/3] Fixed passing of home variable --- ondemand/cluster-config.yml | 1 + slurm/slurm.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/ondemand/cluster-config.yml b/ondemand/cluster-config.yml index da87c58..3d60962 100644 --- a/ondemand/cluster-config.yml +++ b/ondemand/cluster-config.yml @@ -14,6 +14,7 @@ v2: script_wrapper: | export PATH="/opt/TurboVNC/bin:$PATH" export WEBSOCKIFY_CMD="/usr/local/bin/websockify" + export HOME="${HOME:-$(eval echo ~$(whoami))}" %s custom: xdmod: diff --git a/slurm/slurm.conf b/slurm/slurm.conf index a3a8002..e9324f8 100644 --- a/slurm/slurm.conf +++ b/slurm/slurm.conf @@ -17,6 +17,7 @@ SlurmctldPidFile=/var/run/slurmd/slurmctld.pid SlurmdPidFile=/var/run/slurmd/slurmd.pid ProctrackType=proctrack/linuxproc ReturnToService=0 +PropagateResourceLimitsExcept=MEMLOCK # These are example prolog and epilog scripts that show how it is possible # to initiate performance data collection at the start and end of each