Skip to content

Commit a819447

Browse files
authored
Merge pull request #196 from ubccr/release-2025-02
Bump slurm, mariadb, and mongo versions.
2 parents 0d67ff5 + 82e9b8a commit a819447

13 files changed

+39
-29
lines changed

Diff for: .env

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
HPCTS_VERSION="2023.07"
2-
SLURM_VERSION="21.08.8-2"
3-
MARIADB_VERSION=10.3
4-
MONGODB_VERSION=5.0
1+
HPCTS_VERSION="2025.02"
2+
SLURM_VERSION="24.05.5-1"
3+
MARIADB_VERSION=10.11.11
4+
MONGODB_VERSION=7.0

Diff for: base/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ log_info() {
88
}
99

1010
ARCHTYPE=`uname -m`
11-
GOSU_VERSION=${GOSU_VERSION:-1.12}
11+
GOSU_VERSION=${GOSU_VERSION:-1.17}
1212

1313
log_info "HPCTS Base image for $ARCHTYPE"
1414

Diff for: coldfront/install.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ dnf install -y \
1616
nginx \
1717
openssl \
1818
openldap-devel \
19-
redis \
20-
mariadb-server
19+
redis
2120

2221
log_info "Creating coldfront system user account.."
2322
groupadd -r coldfront

Diff for: database/create-coldfront-db.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ set -e
44
trap 'ret=$?; test $ret -ne 0 && printf "failed\n\n" >&2; exit $ret' EXIT
55

66
echo "Creating coldfront database.."
7-
mysql -uroot <<EOF
7+
mariadb -uroot <<EOF
88
create database if not exists coldfront
99
EOF
1010

1111
echo "Creating coldront mysql user.."
12-
mysql -uroot <<EOF
12+
mariadb -uroot <<EOF
1313
create user 'coldfrontapp'@'%' identified by '9obCuAphabeg';
1414
EOF
1515

1616
echo "Granting coldfront user access to coldfront database.."
17-
echo "grant all on coldfront.* to 'coldfrontapp'@'%';" | mysql -uroot
18-
echo "flush privileges;" | mysql -uroot
17+
echo "grant all on coldfront.* to 'coldfrontapp'@'%';" | mariadb -uroot
18+
echo "flush privileges;" | mariadb -uroot
1919

2020

2121
if [ -f "/docker-entrypoint-initdb.d/coldfront.dump" ]; then
2222
echo "Restoring coldfront database..."
23-
mysql -uroot coldfront < /docker-entrypoint-initdb.d/coldfront.dump
23+
mariadb -uroot coldfront < /docker-entrypoint-initdb.d/coldfront.dump
2424
fi

Diff for: database/create-slurm-db.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ StorageUser=${StorageUser:-slurm}
1010
StoragePass=${StoragePass:-ilovelinux}
1111

1212
echo "Creating slurm accounting database.."
13-
mysql -uroot <<EOF
13+
mariadb -uroot <<EOF
1414
create database if not exists $StorageLoc
1515
EOF
1616

1717
echo "Creating $StorageUser mysql user.."
18-
mysql -uroot <<EOF
18+
mariadb -uroot <<EOF
1919
create user '$StorageUser'@'%' identified by '$StoragePass';
2020
EOF
2121

2222
echo "Granting $StorageUser access to $StorageLoc.."
23-
echo "grant all on \`${StorageLoc//_/\\_}\`.* to '$StorageUser'@'%';" | mysql -uroot
24-
echo "flush privileges;" | mysql -uroot
23+
echo "grant all on \`${StorageLoc//_/\\_}\`.* to '$StorageUser'@'%';" | mariadb -uroot
24+
echo "flush privileges;" | mariadb -uroot

Diff for: database/create-xdmod-db.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ set -e
44
trap 'ret=$?; test $ret -ne 0 && printf "failed\n\n" >&2; exit $ret' EXIT
55

66
echo "Creating xdmod mysql user.."
7-
mysql -uroot <<EOF
7+
mariadb -uroot <<EOF
88
create user 'xdmodapp'@'%' identified by 'ofbatgorWep0';
99
EOF
1010

1111
if [ -f "/docker-entrypoint-initdb.d/xdmod.dump" ]; then
1212
echo "Restoring xdmod database..."
13-
mysql -uroot < /docker-entrypoint-initdb.d/xdmod.dump
13+
mariadb -uroot < /docker-entrypoint-initdb.d/xdmod.dump
1414
for db in mod_hpcdb mod_logger mod_shredder moddb modw modw_aggregates modw_filters modw_supremm modw_etl modw_jobefficiency modw_cloud modw_ondemand
1515
do
16-
echo "grant all on $db.* to 'xdmodapp'@'%';" | mysql -uroot
16+
echo "grant all on $db.* to 'xdmodapp'@'%';" | mariadb -uroot
1717
done
1818

19-
echo "flush privileges;" | mysql -uroot
19+
echo "flush privileges;" | mariadb -uroot
2020
else
2121
echo "Creating xdmod databases.."
2222
for db in mod_hpcdb mod_logger mod_shredder moddb modw modw_aggregates modw_filters modw_supremm modw_etl modw_jobefficiency modw_cloud modw_ondemand
2323
do
2424
echo "Creating $db database.."
25-
echo "create database if not exists $db" | mysql -uroot
26-
echo "grant all on $db.* to 'xdmodapp'@'%';" | mysql -uroot
25+
echo "create database if not exists $db" | mariadb -uroot
26+
echo "grant all on $db.* to 'xdmodapp'@'%';" | mariadb -uroot
2727
done
2828

29-
echo "flush privileges;" | mysql -uroot
29+
echo "flush privileges;" | mariadb -uroot
3030
fi
3131

3232

Diff for: database/slurm.cnf

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[mysqld]
2+
innodb_buffer_pool_size=4096M
3+
innodb_log_file_size=64M
4+
innodb_lock_wait_timeout=900
5+
max_allowed_packet=16M

Diff for: docker-compose.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.9"
2-
31
services:
42
ldap:
53
image: ubccr/hpcts:ldap-${HPCTS_VERSION}

Diff for: mongodb/setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22
echo "Creating mongo user accounts for use by XDMoD."
3-
mongo admin --host localhost -u admin -p hBbeOfpFLfFT5ZO --eval "db.createUser({user: 'xdmod', pwd: 'xsZ0LpZstneBpijLy7', roles: [{role: 'readWrite', db: 'supremm'}]}); db.createUser({user: 'xdmod-ro', pwd: 'OPsvjY4gxq74ZIbOrz', roles: [{role: 'read', db: 'supremm'}]});"
3+
mongosh admin --host localhost -u admin -p hBbeOfpFLfFT5ZO --eval "db.createUser({user: 'xdmod', pwd: 'xsZ0LpZstneBpijLy7', roles: [{role: 'readWrite', db: 'supremm'}]}); db.createUser({user: 'xdmod-ro', pwd: 'OPsvjY4gxq74ZIbOrz', roles: [{role: 'read', db: 'supremm'}]});"
44
echo "Mongo users created."

Diff for: slurm/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ARG SLURM_VERSION
1212
COPY . /build
1313
RUN /build/install.sh && rm -rf /build
1414
COPY slurm.conf /etc/slurm/slurm.conf
15+
COPY cgroup.conf /etc/slurm/cgroup.conf
1516
COPY --chown=slurm:slurm slurmdbd.conf /etc/slurm/slurmdbd.conf
1617
RUN chmod 600 /etc/slurm/slurmdbd.conf
1718
COPY entrypoint.sh /usr/local/bin/entrypoint.sh

Diff for: slurm/cgroup.conf

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CgroupPlugin=cgroup/v1
2+
3+
ConstrainDevices=yes
4+
ConstrainCores=yes
5+
ConstrainRAMSpace=yes
6+
AllowedSwapSpace=5
7+
ConstrainSwapSpace=yes

Diff for: slurm/install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ log_info() {
77
printf "\n\e[0;35m $1\e[0m\n\n"
88
}
99

10-
SLURM_VERSION=${SLURM_VERSION:-21.08.8-2}
11-
WEBSOCKIFY_VERSION=${WEBSOCKIFY_VERSION:-0.11.0}
10+
SLURM_VERSION=${SLURM_VERSION:-24.05.5}
11+
WEBSOCKIFY_VERSION=${WEBSOCKIFY_VERSION:-0.12.0}
1212
ARCHTYPE=$(uname -m)
1313

1414
log_info "Installing required packages for building slurm.."

Diff for: slurm/slurm.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Waittime=0
3636
#
3737
# SCHEDULING
3838
SchedulerType=sched/backfill
39-
SelectType=select/cons_res
39+
SelectType=select/cons_tres
4040
SelectTypeParameters=CR_CPU_Memory
4141

4242
#

0 commit comments

Comments
 (0)