Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions slurm/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down