Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Db external to cluster #251

Open
wants to merge 526 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
526 commits
Select commit Hold shift + click to select a range
95d81c3
db external to cluster
Jul 1, 2022
0401563
db external to cluster
Jul 1, 2022
36344ba
db external to cluster
Jul 1, 2022
b59223f
db external to cluster
Jul 1, 2022
386e359
db external to cluster
Jul 1, 2022
45b8bfe
db external to cluster
Jul 1, 2022
d8b994e
db external to cluster
Jul 1, 2022
401c595
db external to cluster
Jul 1, 2022
404f6b3
db external to cluster
Jul 1, 2022
d80451a
db external to cluster
Jul 1, 2022
f8a5fec
db external to cluster
Jul 1, 2022
12b9259
db external to cluster
Jul 1, 2022
1aff4ef
db external to cluster
Jul 1, 2022
f69d196
db external to cluster
Jul 1, 2022
151048a
db external to cluster
Jul 1, 2022
2eab845
db external to cluster
Jul 1, 2022
9fbf3a1
db external to cluster
Jul 1, 2022
43d554c
db external to cluster
Jul 1, 2022
c708cbc
db external to cluster
Jul 1, 2022
afeb86e
db external to cluster
Jul 1, 2022
2f1f4fa
db external to cluster
Jul 1, 2022
a108286
db external to cluster
Jul 1, 2022
9527b86
db external to cluster
Jul 1, 2022
fdcb8f4
db external to cluster
Jul 1, 2022
7acf6d0
db external to cluster
Jul 1, 2022
750ff30
db external to cluster
Jul 1, 2022
8ba8fc2
db external to cluster
Jul 1, 2022
fab122e
db external to cluster
Jul 1, 2022
6b29122
db external to cluster
Jul 1, 2022
69c5361
db external to cluster
Jul 1, 2022
36311de
db external to cluster
Jul 1, 2022
46d97e6
db external to cluster
Jul 1, 2022
83adba7
db external to cluster
Jul 1, 2022
7a1c4f5
db external to cluster
Jul 1, 2022
689333d
db external to cluster
Jul 1, 2022
cd81edd
db external to cluster
Jul 1, 2022
6e7024c
db external to cluster
Jul 1, 2022
470d5a2
db external to cluster
Jul 1, 2022
2a0187a
db external to cluster
Jul 1, 2022
7b25ca2
db external to cluster
Jul 1, 2022
210312e
db external to cluster
Jul 1, 2022
398a027
db external to cluster
Jul 1, 2022
97982e4
db external to cluster
Jul 1, 2022
091619e
db external to cluster
Jul 1, 2022
890358f
db external to cluster
Jul 1, 2022
d8bba59
db external to cluster
Jul 1, 2022
d207ff3
db external to cluster
Jul 1, 2022
de8649c
db external to cluster
Jul 1, 2022
d1fdc07
db external to cluster
Jul 1, 2022
bf49097
db external to cluster
Jul 1, 2022
c031069
db external to cluster
Jul 1, 2022
4c489db
db external to cluster
Jul 1, 2022
bf97728
db external to cluster
Jul 1, 2022
66df1d4
db external to cluster
Jul 1, 2022
f3142e8
db external to cluster
Jul 1, 2022
526c560
db external to cluster
Jul 1, 2022
e82205e
db external to cluster
Jul 1, 2022
729054d
db external to cluster
Jul 1, 2022
8f1fbe3
db external to cluster
Jul 1, 2022
0ea67b2
db external to cluster
Jul 1, 2022
072e409
db external to cluster
Jul 1, 2022
cc4ed20
db external to cluster
Jul 1, 2022
9f3b05c
db external to cluster
Jul 1, 2022
48300e1
db external to cluster
Jul 1, 2022
77b28e9
db external to cluster
Jul 1, 2022
197ae21
db external to cluster
Jul 1, 2022
1f2bec1
db external to cluster
Jul 1, 2022
de3f109
db external to cluster
Jul 1, 2022
45e0ad5
db external to cluster
Jul 1, 2022
9368e75
db external to cluster
Jul 1, 2022
84ed36e
db external to cluster
Jul 1, 2022
e239a44
db external to cluster
Jul 1, 2022
f2e9c65
db external to cluster
Jul 1, 2022
8acdac2
db external to cluster
Jul 1, 2022
92c1442
db external to cluster
Jul 1, 2022
50a5c7e
db external to cluster
Jul 1, 2022
127df13
db external to cluster
Jul 1, 2022
5099fcd
db external to cluster
Jul 1, 2022
e46a30e
db external to cluster
Jul 1, 2022
58dba53
db external to cluster
Jul 1, 2022
377a138
db external to cluster
Jul 1, 2022
689f401
db external to cluster
Jul 1, 2022
16d0158
db external to cluster
Jul 1, 2022
a6421d8
db external to cluster
Jul 1, 2022
2b5ee12
db external to cluster
Jul 1, 2022
9d3930c
db external to cluster
Jul 1, 2022
f8efabc
db external to cluster
Jul 1, 2022
ea56f66
db external to cluster
Jul 1, 2022
7aefb59
db external to cluster
Jul 1, 2022
71e77c5
db external to cluster
Jul 1, 2022
8a5328d
db external to cluster
Jul 1, 2022
3a6d2a3
db external to cluster
Jul 1, 2022
d993849
db external to cluster
Jul 1, 2022
c0e952a
db external to cluster
Jul 1, 2022
5a9f9b7
db external to cluster
Jul 1, 2022
1a53854
db external to cluster
Jul 1, 2022
8a01fa4
db external to cluster
Jul 1, 2022
f456386
db external to cluster
Jul 1, 2022
5c0a0f1
db external to cluster
Jul 1, 2022
27f5fad
db external to cluster
Jul 1, 2022
810a10b
db external to cluster
Jul 1, 2022
2bca3a5
db external to cluster
Jul 1, 2022
65096f4
db external to cluster
Jul 1, 2022
101abc6
db external to cluster
Jul 1, 2022
8bca2bf
db external to cluster
Jul 1, 2022
14274be
db external to cluster
Jul 1, 2022
fd62ccd
db external to cluster
Jul 1, 2022
7a89310
db external to cluster
Jul 1, 2022
9275265
db external to cluster
Jul 1, 2022
3b90822
db external to cluster
Jul 1, 2022
fb148d3
db external to cluster
Jul 1, 2022
dc4e8fa
db external to cluster
Jul 1, 2022
7d33bc9
db external to cluster
Jul 1, 2022
9e7c6bc
db external to cluster
Jul 1, 2022
8a6b85e
db external to cluster
Jul 1, 2022
827267a
db external to cluster
Jul 1, 2022
33e4851
db external to cluster
Jul 1, 2022
4d568d8
db external to cluster
Jul 1, 2022
b02015c
db external to cluster
Jul 1, 2022
15988ef
db external to cluster
Jul 1, 2022
a790c52
db external to cluster
Jul 1, 2022
7e3ae9b
db external to cluster
Jul 1, 2022
7d2fa21
db external to cluster
Jul 1, 2022
033730c
db external to cluster
Jul 1, 2022
b855f4f
db external to cluster
Jul 1, 2022
031d054
db external to cluster
Jul 1, 2022
6f84cd6
db external to cluster
Jul 1, 2022
9255beb
db external to cluster
Jul 1, 2022
37a0ec7
db external to cluster
Jul 1, 2022
c49f6fb
db external to cluster
Jul 1, 2022
1f9aab5
db external to cluster
Jul 1, 2022
a44b13f
db external to cluster
Jul 1, 2022
31839ae
db external to cluster
Jul 1, 2022
182e637
db external to cluster
Jul 1, 2022
0833b55
db external to cluster
Jul 1, 2022
3787e46
db external to cluster
Jul 1, 2022
5d7eccc
db external to cluster
Jul 1, 2022
ac6146d
db external to cluster
Jul 1, 2022
76aaa43
db external to cluster
Jul 1, 2022
0569715
db external to cluster
Jul 1, 2022
210f793
db external to cluster
Jul 1, 2022
f4e2118
db external to cluster
Jul 1, 2022
e85bb50
db external to cluster
Jul 1, 2022
804e9cd
db external to cluster
Jul 1, 2022
9b55f2c
db external to cluster
Jul 1, 2022
f7a075a
db external to cluster
Jul 1, 2022
4612d9c
db external to cluster
Jul 1, 2022
81d24e8
db external to cluster
Jul 1, 2022
8e3dbb2
db external to cluster
Jul 1, 2022
fd9066f
db external to cluster
Jul 1, 2022
950497c
db external to cluster
Jul 1, 2022
ccce3f0
db external to cluster
Jul 1, 2022
708eabd
db external to cluster
Jul 1, 2022
446f7e6
db external to cluster
Jul 1, 2022
9c8a391
db external to cluster
Jul 1, 2022
a81a505
db external to cluster
Jul 1, 2022
3fc4ad5
db external to cluster
Jul 1, 2022
ff3c26b
db external to cluster
Jul 1, 2022
833ea10
db external to cluster
Jul 1, 2022
4216364
db external to cluster
Jul 1, 2022
1e3581b
db external to cluster
Jul 1, 2022
4b8de7d
db external to cluster
Jul 1, 2022
bad24b0
db external to cluster
Jul 1, 2022
d49e56c
db external to cluster
Jul 1, 2022
9ff6482
db external to cluster
Jul 1, 2022
432f159
db external to cluster
Jul 1, 2022
f7a9835
db external to cluster
Jul 1, 2022
2144bf9
db external to cluster
Jul 1, 2022
254f9d1
db external to cluster
Jul 1, 2022
e140c15
db external to cluster
Jul 1, 2022
1c1aba4
db external to cluster
Jul 1, 2022
47cfaa5
db external to cluster
Jul 1, 2022
a59d9e9
db external to cluster
Jul 1, 2022
f41bea1
db external to cluster
Jul 1, 2022
97a5a85
db external to cluster
Jul 1, 2022
2299a0d
db external to cluster
Jul 1, 2022
aeb2aa4
db external to cluster
Jul 1, 2022
f06c47f
db external to cluster
Jul 1, 2022
4089f33
db external to cluster
Jul 1, 2022
1298369
db external to cluster
Jul 1, 2022
9813431
db external to cluster
Jul 1, 2022
e983fe1
db external to cluster
Jul 1, 2022
a71c6c2
db external to cluster
Jul 1, 2022
0366b9d
db external to cluster
Jul 1, 2022
fa15170
db external to cluster
Jul 1, 2022
a49fb65
db external to cluster
Jul 1, 2022
2e0c639
db external to cluster
Jul 1, 2022
17fbaad
db external to cluster
Jul 1, 2022
8aac7da
db external to cluster
Jul 1, 2022
9831a2f
db external to cluster
Jul 1, 2022
d6dfaed
db external to cluster
Jul 1, 2022
ddba673
db external to cluster
Jul 1, 2022
e0bb614
db external to cluster
Jul 1, 2022
95f4025
db external to cluster
Jul 1, 2022
6a233a3
db external to cluster
Jul 1, 2022
f3390d2
db external to cluster
Jul 1, 2022
475a257
db external to cluster
Jul 1, 2022
171cdad
db external to cluster
Jul 1, 2022
8acb9a5
db external to cluster
Jul 1, 2022
ea027b5
db external to cluster
Jul 1, 2022
32e5c01
db external to cluster
Jul 1, 2022
e77cc61
db external to cluster
Jul 1, 2022
eb95c55
db external to cluster
Jul 1, 2022
be1ef33
db external to cluster
Jul 1, 2022
be96a56
db external to cluster
Jul 1, 2022
c0bd8b6
db external to cluster
Jul 1, 2022
2e386fe
db external to cluster
Jul 1, 2022
b2c9356
db external to cluster
Jul 1, 2022
065b60c
db external to cluster
Jul 1, 2022
7e3fee2
db external to cluster
Jul 1, 2022
4eed96f
db external to cluster
Jul 1, 2022
5bb4e3c
db external to cluster
Jul 1, 2022
60a40fc
db external to cluster
Jul 1, 2022
ae0d9b9
db external to cluster
Jul 1, 2022
38ab316
db external to cluster
Jul 1, 2022
c44603f
db external to cluster
Jul 1, 2022
7647a7c
db external to cluster
Jul 1, 2022
40922fb
db external to cluster
Jul 1, 2022
c2e4f50
db external to cluster
Jul 1, 2022
8ffba64
db external to cluster
Jul 1, 2022
d4c9c16
db external to cluster
Jul 1, 2022
aec480f
db external to cluster
Jul 1, 2022
108d2cf
db external to cluster
Jul 1, 2022
711c7c2
db external to cluster
Jul 1, 2022
c5fda74
db external to cluster
Jul 1, 2022
dd851d6
db external to cluster
Jul 1, 2022
ace8955
db external to cluster
Jul 1, 2022
306bdaf
db external to cluster
Jul 1, 2022
d3c7391
db external to cluster
Jul 1, 2022
d5bf06b
db external to cluster
Jul 1, 2022
4f23c38
db external to cluster
Jul 1, 2022
77249e5
db external to cluster
Jul 1, 2022
dd1c274
db external to cluster
Jul 1, 2022
61fa2db
db external to cluster
Jul 1, 2022
345592a
db external to cluster
Jul 1, 2022
b104ba1
db external to cluster
Jul 1, 2022
4dd4858
db external to cluster
Jul 1, 2022
e728cfc
db external to cluster
Jul 1, 2022
734d506
db external to cluster
Jul 1, 2022
63280ab
db external to cluster
Jul 1, 2022
ba3fcc1
db external to cluster
Jul 1, 2022
31fbfcc
db external to cluster
Jul 1, 2022
cdd9e65
db external to cluster
Jul 1, 2022
80f8594
db external to cluster
Jul 1, 2022
4d857ba
db external to cluster
ssenator Jul 1, 2022
cc305cb
db external to cluster
ssenator Jul 1, 2022
ad5c99b
db external to cluster
ssenator Jul 1, 2022
8deef2d
db external to cluster
ssenator Jul 1, 2022
bc2556f
db external to cluster
ssenator Jul 1, 2022
e5ffeaa
db external to cluster
ssenator Jul 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 6 additions & 2 deletions clusters/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,11 @@ vpath % $(PROVISIONED_D)
# ie. all PROVISIONED, all POWEROFF, all UNPROVISION

up provision: $(VAGRANTFILE) $(TARGET_PROVIDER_FILES) verifylocalenv $(PROVISIONED_FLAGS) ingest-state
echo started: $(HUMAN_TSTAMP)
# XXX pull from cluster definition & generator
#sudo mariadb -r -B -s -e "UPDATE cluster_table SET control_host = '192.168.56.64' WHERE NAME= 'vc';" slurm_acct_db
#sudo mariadb -r -B -s -e "UPDATE cluster_table SET control_host = '192.168.56.50' WHERE NAME= 'vx';" slurm_acct_db
#sudo mariadb -r -B -s -e 'select * from cluster_table;' slurm_acct_db
#echo started: $(HUMAN_TSTAMP)

up! provision!: unprovision up ingest-state

Expand Down Expand Up @@ -635,4 +639,4 @@ $(XFR_VBOXADD_ISO): $(TARBALLS_VBOXADD_ISO)
rsync -LHcau $< $@ ; \
fi

# vim: background=dark
# vim: background=dark ts=2 sw=2 syntax=make
2 changes: 1 addition & 1 deletion clusters/common/Vagrantfile.d/Vagrantfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
require 'pathname'

# following should allow for a full copy of the centos/{os,updates} repositories + pad
REPODISK_SIZE = 20 # Gb
REPODISK_SIZE = 32 # Gb

clustername_fullpath_raw = %x[pwd]
clustername_fullpath = "#{clustername_fullpath_raw}"
Expand Down
12 changes: 11 additions & 1 deletion clusters/common/bin/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ ConfigureCentOSRepos() {
return
fi

repos_size=$(du -x -s -m ${_have_repos} 2>&1 | awk '{print $1}')
repos_size=$(cd ${_have_repos}; du -x -s -m . 2>&1 | awk '{print $1}')
if ! [[ ${repos_size} =~ ${numeric} ]] ; then
ErrExit ${EX_CONFIG} "ingest repository is corrupt or empty: ${repos_size}"
fi
Expand Down Expand Up @@ -2223,8 +2223,18 @@ SW() {
ErrExit ${EX_SOFTWARE} "${what}/${_s}/${stop_flag} present"
fi
cmds=$(echo $(ls ${what}/${_s}))

if [ -L "${where}" ] ; then
local target=$(readlink -e "${where}")
if [ -f "${target}" ] ; then
Rc ErrExit ${EX_OSFILE} "rm -f ${where}"
elif [ -d "${target}" ] ; then
Rc ErrExit ${EX_OSFILE} "rmdir ${where}"
fi
fi
Rc ErrExit ${EX_OSFILE} "mkdir -p ${where}"
Rc ErrExit ${EX_OSFILE} "chmod 0755 ${where}"

local c
for c in ${cmds}
do
Expand Down
8 changes: 8 additions & 0 deletions clusters/common/env/site-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ export LANGUAGE=${LANGUAGE:-${LANG}}
export LC_ALL=${LC_ALL:-${LANG}}

export TZ=${TZ:-MST7MDT}

export LANL_PROTO=http
export LANL_PROXY_HOST=proxyout.lanl.gov
export LANL_PROXY_PORT=8080
export LANL_PROXY=${LANL_PROTO}://${LANL_PROXY_HOST}:${LANL_PROXY_PORT}
export http_proxy=${LANL_PROXY}
export https_proxy=${LANL_PROXY}
export proxy=${LANL_PROXY}
1 change: 0 additions & 1 deletion clusters/vc/cfg/vc1/requires/vcdb/2.socket-SLURMDBD

This file was deleted.

Binary file modified clusters/vc/cfg/vc1/rpm/early/munge-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vc1/rpm/early/munge-devel-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vc1/rpm/early/munge-libs-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
1 change: 0 additions & 1 deletion clusters/vc/cfg/vc2/requires/vcdb/2.socket-SLURMDBD

This file was deleted.

Binary file modified clusters/vc/cfg/vc2/rpm/early/munge-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vc2/rpm/early/munge-devel-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vc2/rpm/early/munge-libs-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[mysqld]
innodb_buffer_pool_size=5120
innodb_flush_log_at_trx_commit=1
innodb_lock_wait_timeout=900
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[mysqld]
innodb_buffer_pool_size=5120
innodb_flush_log_at_trx_commit=1
innodb_lock_wait_timeout=900
Binary file modified clusters/vc/cfg/vcaltdb/rpm/early/munge-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 19 additions & 1 deletion clusters/vc/cfg/vcbuild/build/slurm-spank-lua/1.setup-prereqs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ if [ -n "${OUT}" ] ; then
exec > >(tee -a "${OUT}") 2>&1
fi

set -xv

HOSTNAME=${HOSTNAME:-$(hostname -s)}
CLUSTERNAME=${HOSTNAME:0:2}
XFR=/${CLUSTERNAME}/xfr
Expand Down Expand Up @@ -71,10 +73,25 @@ if [ ! -d "${BUILDWHERE_PRODUCT}" ] ; then
fi
if [ ! -r "${SLURM_SPANK_LUA_SPEC}" ] ; then
need_ingest=true
else
SLURM_SPANK_LUA_SPEC_VERSION=$(awk '/Version:/ {print $2}' ${SLURM_SPANK_LUA_SPEC})
if [ "${SLURM_SPANK_LUA_SPEC_VERSION}" != "${SLURM_SPANK_LUA_VERSION}" ] ; then
Verbose " SLURM_SPANK_LUA_VERSION: ${SLURM_SPANK_LUA_VERSION}"
Verbose " SLURM_SPANK_LUA_SPEC_VERSION: ${SLURM_SPANK_LUA_SPEC_VERSION}"
ErrExit ${EX_OSFILE} "Update VERSION_FILE to: ${SLURM_SPANK_LUA_SPEC_VERSION}"
fi
fi

if [ -n "${need_ingest}" ] ; then
Verbose " recreating BUILDWHERE_PRODUCT:${BUILDWHERE_PRODUCT}"
if [ -L "${BUILDWHERE_PRODUCT}" ] ; then
target=$(readlink -e ${BUILDWHERE_PRODUCT})
Verbose " BUILDWHERE_PRODUCT -> ${target}"
if [ "${target}" != "${BUILDWHERE_PRODUCT_VERSION}" ] ; then
Verbose " target:${target} != ${BUILDWHERE_PRODUCT_VERSION} -- version mismatch?"
Rc ErrExit ${EX_OSFILE} "rm -f ${BUILDWHERE_PRODUCT_VERSION}"
fi
fi
if [ -r ${XFR}/${SLURM_SPANK_LUA_TARBALL} ] ; then
if [ ! -d ${BUILDWHERE_PRODUCT} ] ; then
Rc ErrExit ${EX_OSFILE} "tar -xzf ${XFR}/${SLURM_SPANK_LUA_TARBALL} -C ${BUILDWHERE}"
Expand Down Expand Up @@ -128,4 +145,5 @@ fi
Rc ErrExit ${EX_OSFILE} "cp -v --preserve=all ${RPMBUILD}/SOURCES/${slurm_spank_lua_vers}${TAR_SUFFIX} ${XFR}"

exit ${EX_OK}
# vim: background=dark

# vim: background=dark ts=2 sw=2 syntax=sh
2 changes: 1 addition & 1 deletion clusters/vc/cfg/vcbuild/build/slurm-spank-lua/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.43
0.45
2 changes: 1 addition & 1 deletion clusters/vc/cfg/vcbuild/build/slurm/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
21.08.2
22.05.2
Binary file modified clusters/vc/cfg/vcbuild/rpm/early/keyutils-1.5.8-3.el7.x86_64.rpm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified clusters/vc/cfg/vcbuild/rpm/early/libev-4.15-7.el7.x86_64.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vcbuild/rpm/early/libevent-2.0.21-4.el7.x86_64.rpm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified clusters/vc/cfg/vcbuild/rpm/early/libpcap-1.5.3-12.el7.x86_64.rpm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified clusters/vc/cfg/vcbuild/rpm/early/libverto-0.2.5-4.el7.x86_64.rpm
Binary file not shown.
Binary file not shown.
Binary file modified clusters/vc/cfg/vcbuild/rpm/early/munge-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified clusters/vc/cfg/vcbuild/rpm/early/quota-4.01-19.el7.x86_64.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vcbuild/rpm/early/quota-nls-4.01-19.el7.noarch.rpm
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[mysqld]
innodb_buffer_pool_size=1280M
innodb_flush_log_at_trx_commit=1
innodb_lock_wait_timeout=900
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[mysqld]
innodb_buffer_pool_size=1280M
innodb_flush_log_at_trx_commit=1
innodb_lock_wait_timeout=900
21 changes: 12 additions & 9 deletions clusters/vc/cfg/vcdb/config/slurm/3.start-slurmdbd-service
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@ if [ -n "${OUT}" ] ; then
exec > >(tee -a "${OUT}") 2>&1
fi

Rc ErrExit 4 "systemctl start slurmdbd"

isactive=$(systemctl status slurmdbd | grep Active: | awk '{print $2}')
if [ "${isactive}" != "active" ] ; then
ErrExit ${EX_CONFIG} "slurmdbd failed to start correctly: ${isactive}"
DBDHost=$(grep AccountingStorageHost= /etc/slurm/slurm.conf | sed 's/AccountingStorageHost=//')
if [ "${DBDHost}" = $(hostname -s) ] ; then
Rc ErrExit 4 "systemctl start slurmdbd"

isactive=$(systemctl status slurmdbd | grep Active: | awk '{print $2}')
if [ "${isactive}" != "active" ] ; then
ErrExit ${EX_CONFIG} "slurmdbd failed to start correctly: ${isactive}"
fi

# slurmdbd isn't ready immediately to start servicing requests
# if seeing "Connection refused" messages in slurmdbd status, may need to increase this
sleep 3
fi

# slurmdbd isn't ready immediately to start servicing requests
# if seeing "Connection refused" messages in slurmdbd status, may need to increase this
sleep 3

Rc ErrExit 3 "sacctmgr show cluster -n"

trap '' 0
Expand Down
2 changes: 2 additions & 0 deletions clusters/vc/cfg/vcdb/config/slurm/4.create-cluster-db
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ do
fi
done

ControlHost=$(grep SlurmctldHost /etc/slurm/slurm.conf | sed -s 's/SlurmctldHost=//' | sed 's/(/ /' | sed 's/)/ /' | awk '{print $1}')
ControlAddr=$(grep SlurmctldHost /etc/slurm/slurm.conf | sed -s 's/SlurmctldHost=//' | sed 's/(/ /' | sed 's/)/ /' | awk '{print $2}')
exists=$(sacctmgr show cluster ${CLUSTERNAME} -n -P)
if [ -z "${exists}" ] ; then
Verbose " creating cluster: ${CLUSTERNAME}"
Expand Down
34 changes: 24 additions & 10 deletions clusters/vc/cfg/vcdb/config/slurm/5.verify-db
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@ if [ ! -f ${SLURMDBDCONF} ] ; then
fi

STORAGEUSER=$(grep StorageUser ${SLURMDBDCONF} | sed 's/StorageUser=//')
MYSQL_AUTH=""
if [ -n "${STORAGEUSER}" ] ; then
MYSQL_AUTH="--user=${STORAGEUSER} "
fi
STORAGEPASS=$(grep StoragePass ${SLURMDBDCONF} | sed 's/StoragePass=//')
MYSQL_AUTH="--user=${STORAGEUSER} --password=${STORAGEPASS}"
if [ -n "${STORAGEPASS}" ] ; then
MYSQL_AUTH="${MYSQL_AUTH} --password=${STORAGEPASS}"
fi

export dbdhost=$(grep -i dbdhost ${SLURMDBDCONF} | tr '[:upper:]' '[:lower:]' | sed 's/dbdhost=//')
export dbdaddr=$(grep -i dbdaddr ${SLURMDBDCONF} | tr '[:upper:]' '[:lower:]' | sed 's/dbdaddr=//')
Expand All @@ -53,22 +59,30 @@ if [ -z "${dbdaddr}" ] ; then
ErrExit ${EX_SOFTWARE} "empty dbdaddr"
fi

MYSQL_CMD="mysql ${MYSQL_AUTH} --host=${dbdhost} --batch"
DBDHost=$(grep AccountingStorageHost= ${SLURMCONF} | sed 's/AccountingStorageHost=//')

MYSQL_CMD="mysql ${MYSQL_AUTH} --batch"
if [ "${DBDHost}" = $(hostname -s) ] ; then
MYSQL_CMD="${MYSQL_CMD} --host=${dbdhost}"
grep StorageUser ${SLURMDBDCONF}
else
MYSQL_CMD="${MYSQL_CMD} --host=${DBDHost}"
dbdhost=${DBDHost}
dbdaddr=$(host ${DBDHost} | awk '{print $4}')
fi
Rc ErrExit ${EX_SOFTWARE} "timeout ${TIMEOUT} ping -c 1 -i 1 -n ${dbdhost}"
Rc ErrExit ${EX_SOFTWARE} "timeout ${TIMEOUT} ping -c 1 -i 1 -n ${dbdaddr}"

grep StorageUser ${SLURMDBDCONF}

Rc ErrExit ${EX_SOFTWARE} "timeout ${TIMEOUT} ${MYSQL_CMD} --execute 'show databases;'"
#XXX Rc ErrExit ${EX_SOFTWARE} "timeout ${TIMEOUT} ${MYSQL_CMD} --execute 'show databases;'"
timeout ${TIMEOUT} ${MYSQL_CMD} --execute 'show databases;'

clustername=$(timeout ${TIMEOUT} ${MYSQL_CMD} --database=slurm_acct_db --skip-column-names --execute 'select name from cluster_table;' )

if [[ ${clustername} != ${CLUSTERNAME} ]] ; then
ErrExit ${EX_SOFTWARE} "select name from cluster_table => ${clustername} != ${CLUSTERNAME}"
fi
#XXX if [[ ${clustername} != ${CLUSTERNAME} ]] ; then
#XXX ErrExit ${EX_SOFTWARE} "select name from cluster_table => ${clustername} != ${CLUSTERNAME}"
#XXX fi

Rc ErrExit ${EX_SOFTWARE} "timeout ${TIMEOUT} ${MYSQL_CMD} --database=slurm_acct_db --skip-column-names --execute 'show tables;' | grep ${CLUSTERNAME}_last_ran"
#XXX Rc ErrExit ${EX_SOFTWARE} "timeout ${TIMEOUT} ${MYSQL_CMD} --database=slurm_acct_db --skip-column-names --execute 'show tables;' | grep ${CLUSTERNAME}_last_ran"
timeout ${TIMEOUT} ${MYSQL_CMD} --database=slurm_acct_db --skip-column-names --execute 'show tables;' | grep ${CLUSTERNAME}_last_ran

trap '' 0
exit ${EX_OK}
1 change: 0 additions & 1 deletion clusters/vc/cfg/vcdb/config/slurm/required.service
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
munge
slurmdbd
Binary file modified clusters/vc/cfg/vcdb/rpm/early/munge-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vcdb/rpm/early/munge-devel-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vcdb/rpm/early/munge-libs-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
1 change: 0 additions & 1 deletion clusters/vc/cfg/vcgate/requires/vcdb/2.socket-SLURMDBD

This file was deleted.

5 changes: 3 additions & 2 deletions clusters/vc/cfg/vclogin/config/slurm/5.licenses
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ do
clause=" type=license cluster=${cluster} "
suffix=" count=${count} "
if [ -n "${existing_licenses}" ] ; then
if [[ "${existing_licenses}" != *"${lic}"*"${cluster}" ]] ; then
if [[ "${existing_licenses}" = ${lic}*${cluster} ]] ; then
action="update"
clause=" cluster=${cluster} set "
suffix=""
Expand All @@ -83,10 +83,11 @@ do
attr_val=$(cat ${d}/${attr_name})
fi
if [[ "${existing}" == *"${lic_name}"* ]] ; then
existing_val=$(sacctmgr show resource withcluster where cluster=${cluster} name=${lic_name} -n | awk '{print $5}')
existing_val=$(sacctmgr show resource withcluster where cluster=${cluster} name=${lic_name} -n | awk '{print $7}')
if [ "${existing_val}" = "${attr_val}" ] ; then
if [ "${attr_val}" -ne 0 ] ; then
Verbose "license=${lic_name}, cluster=${cluster}, existing_val:${existing_val} = attr_val:${attr_val}, skipped"

continue
fi
fi
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
%VCDB%
192.168.56.1
1 change: 0 additions & 1 deletion clusters/vc/cfg/vclogin/requires/vcdb/2.socket-SLURMDBD

This file was deleted.

Binary file modified clusters/vc/cfg/vclogin/rpm/early/munge-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion clusters/vc/cfg/vcsched/requires/vcdb/1.ping

This file was deleted.

1 change: 0 additions & 1 deletion clusters/vc/cfg/vcsched/requires/vcdb/2.socket-SLURMDBD

This file was deleted.

1 change: 0 additions & 1 deletion clusters/vc/cfg/vcsched/requires/vcdb/3.provisioned

This file was deleted.

1 change: 0 additions & 1 deletion clusters/vc/cfg/vcsched/requires/vcdb/ipaddr

This file was deleted.

Binary file modified clusters/vc/cfg/vcsched/rpm/early/munge-0.5.11-3.el7.x86_64.rpm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified clusters/vc/cfg/vcsched/rpm/install/Lmod-8.2.7-1.el7.x86_64.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vcsched/rpm/install/PyYAML-3.10-11.el7.x86_64.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vcsched/rpm/install/ck-0.5.2-2.el7.x86_64.rpm
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file modified clusters/vc/cfg/vcsched/rpm/install/libaec-1.0.4-1.el7.x86_64.rpm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified clusters/vc/cfg/vcsched/rpm/install/lua-json-1.3.2-2.el7.noarch.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vcsched/rpm/install/lua-lpeg-0.12-1.el7.x86_64.rpm
Binary file not shown.
Binary file modified clusters/vc/cfg/vcsched/rpm/install/lua-posix-32-2.el7.x86_64.rpm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion clusters/vc/cfg/vcsvc/config/chrony/3.chrony-waitsync
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ -n "${OUT}" ] ; then
fi
SetFlags >/dev/null 2>&1

( cd / ; chronyc waitsync ) &
( cd / ; timeout 10 chronyc waitsync ) &

trap '' 0
exit ${EX_OK}
4 changes: 3 additions & 1 deletion clusters/vc/common/etc/hosts.%VC-NET%
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@

## hostonly network:

#10.0.2.2 gw.host-local gw host-gw gw.host ext-db db-ext db.host db.host-local db-host-local db

### following is used by generateproviderfiles.sh
### 192.168.56 %%%VC-VIRTUALBOX-NET%%% ###
### 192.168.56 %%%VX-VIRTUALBOX-NET%%% ###

192.168.56.0 virtualbox-net0.tc hostonly.tc hostonly hostonly.test-cluster hostonly.testcluster vbox-net
192.168.56.1 gw.vbox.tc gw-vbox gw.vbox.test-cluster gw.vbox.testcluster
192.168.56.1 gw.vbox.tc gw-vbox gw.vbox.test-cluster gw.vbox.testcluster db-host-local db.host-local db.host db

### following is used by generateproviderfiles.sh
### 192.168.78 %%%VC-LIBVIRT-NET%%% ###
Expand Down
Binary file modified clusters/vc/common/etc/munge/munge.key
Binary file not shown.
7 changes: 7 additions & 0 deletions clusters/vc/common/etc/networks.%VC-NET%
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
default 0.0.0.0
loopback 127.0.0.0
loopback-netmask 255.0.0.0

link-local 169.254.0.0
link-local-netmask 255.255.0.0

vc-net %VC-0NET% virtual-cluster-net virtualcluster-net test-cluster-net vx-net
vc-netmask 255.255.255.0

nat-ext-net 10.0.2.0 nat-external
nat-ext-netmask 255.255.255.0
12 changes: 7 additions & 5 deletions clusters/vc/common/etc/slurm/slurm.conf.template.%VCSCHED%
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SlurmctldHost=vcsched(%VCSCHED%)
SlurmctldAddr=%VCSCHED%
AuthType=auth/munge
CryptoType=crypto/munge
DisableRootJobs=NO
Expand Down Expand Up @@ -46,6 +47,7 @@ ReturnToService=2
SallocDefaultCommand="srun -n1 -N1 --mem-per-cpu=0 --pty --preserve-env $SHELL"
SlurmctldPidFile=/var/run/slurmctld.pid
SlurmctldPort=6817
#SlurmctldParameters=preempt_send_user_signal,max_dbd_msg_action=exit #schedmd#14358
SlurmctldParameters=preempt_send_user_signal
SlurmdPidFile=/var/run/slurm/slurmd.pid
SlurmdPort=6818
Expand Down Expand Up @@ -121,16 +123,16 @@ PriorityWeightQOS=86400
#
# LOGGING AND ACCOUNTING
AccountingStorageEnforce=associations,limits,qos,safe
AccountingStorageHost=vcdb
AccountingStorageExternalHost=vxdb
AccountingStorageHost=db-host-local
#AccountingStorageExternalHost=db-host-local
AccountingStorageLoc=slurm_acct_db
#AccountingStoragePass=
#AccountingStoragePort=
AccountingStorageType=accounting_storage/slurmdbd
#AccountingStorageUser=
#pre21.08 AccountingStoreJobComment=YES
AccountingStoreFlags=job_comment
# MaxDBDMsgs=Max(MaxJobCount * 2 + Node Count * 4, 10,000)
AccountingStoreFlags=job_comment,job_env,job_script
# default: MaxDBDMsgs=Max(MaxJobCount * 2 + Node Count * 4, 10,000)
MaxDBDMsgs=200000
ClusterName=vc
DebugFlags=Agent,Backfill,BackfillMap,CPU_Bind,Dependency,License,Network,NodeFeatures,Power,Priority,Reservation,Steps,TraceJobs,Triggers,WorkQueue
Expand Down Expand Up @@ -195,6 +197,6 @@ PartitionName=login Nodes=vclogin Default=NO State=UP
PartitionName=compile Nodes=vcbuild Default=NO State=UP MaxTime=1-00:00:00 PriorityTier=10
PartitionName=exclusive Nodes=vc[1-2] Oversubscribe=EXCLUSIVE Default=NO State=UP DefaultTime=1:00:00 MaxTime=10-00:00:00 PriorityTier=100
PartitionName=shared Nodes=vc[1-2] Oversubscribe=FORCE Default=YES State=UP DefaultTime=1:00:00 MaxTime=90-00:00:00 PriorityTier=1000
PartitionName=infrastructure Nodes=vcfs,vcsvc,vcdb,vcaltdb,vcsched,vcgate Default=NO State=Down DefaultTime=0:00:01 MaxTime=00:00:01 PriorityTier=0
PartitionName=infrastructure Nodes=vcfs,vcsvc,vcdb,vcaltdb,vcsched,vcgate Default=NO State=Down DefaultTime=0:00:01 MaxTime=00:00:01 PriorityTier=0 DenyAccounts=ALL DenyQOS=ALL Hidden=YES


4 changes: 2 additions & 2 deletions clusters/vc/common/etc/slurm/slurmdbd.conf.%VCDB%
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DbdAddr=%VCDB%
DbdHost=vcdb
DbdAddr=192.168.56.1
DbdHost=db-host-local
SlurmUser=root
DebugFlags=DB_ASSOC,DB_EVENT,DB_QOS,DB_JOB
DebugLevel=debug3
Expand Down
18 changes: 18 additions & 0 deletions clusters/vc/common/home/sts/.login.turq-slurmdbta
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
setenv http_proxy http://proxyout.lanl.gov:8080
setenv https_proxy http://proxyout.lanl.gov:8080
setenv proxy http://proxyout.lanl.gov:8080

setenv SLURM_CONF /etc/slurm/slurm.conf.vc

pushd ~/hpc-collab/http-repo
source bin/setpath.csh
mkdir -p /tmp/tarballs
mkdir -p /tmp/VirtualBox\ VMs
pushd clusters/vc
make Vagrantfile
cd ../vx
make Vagrantfile
show
popd


Loading