Skip to content

Commit 187fae7

Browse files
committed
Fix up xdmod install errors
1 parent 8e529f2 commit 187fae7

4 files changed

Lines changed: 20 additions & 7 deletions

File tree

xdmod/install.sh

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@ ARCHTYPE=`uname -m`
1919
# needed for automated setup, not for supremm
2020
#------------------------
2121

22+
dnf module -y reset nodejs
23+
dnf module -y install nodejs:16
24+
2225
dnf install -y \
2326
expect \
27+
python3-devel \
28+
pcp-devel \
2429
python3-pexpect \
2530
php-pear \
2631
php-devel
@@ -37,10 +42,13 @@ dnf install -y \
3742
# be installed in the same container. In a production deployment they may be installed
3843
# on separate hosts.
3944
#------------------------
40-
dnf install -y https://github.com/ubccr/xdmod/releases/download/v10.0.0-beta5-el8/xdmod-10.0.0-1.5.beta5.el8.noarch.rpm \
45+
dnf install -y https://github.com/ubccr/xdmod/releases/download/v10.0.2-beta1-el8/xdmod-10.0.2-1.0.el8.noarch.rpm \
4146
https://github.com/ubccr/xdmod-ondemand/releases/download/v10.0.0/xdmod-ondemand-10.0.0-1.0.beta1.el8.noarch.rpm \
4247
https://github.com/ubccr/xdmod/releases/download/v10.0.0-beta4-el8/xdmod-supremm-10.0.0-1.4.beta4.el8.noarch.rpm \
43-
https://github.com/ubccr/supremm/releases/download/2.0.0-beta3/supremm-2.0.0-1.0_beta3.el8."$ARCHTYPE".rpm
48+
https://github.com/ubccr/xdmod-appkernels/releases/download/v10.0.0/xdmod-appkernels-10.0.0-1.0.beta1.el8.noarch.rpm
49+
50+
# supremm rpm has broken deps so we force install the rpm and install the deps via pip
51+
rpm --nodeps -ivh https://github.com/ubccr/supremm/releases/download/2.0.0-beta3/supremm-2.0.0-1.0_beta3.el8."$ARCHTYPE".rpm
4452

4553
#------------------------
4654
# The Job Performance software uses MongoDB to store the job-level performance
@@ -53,14 +61,19 @@ dnf install -y \
5361
https://repo.mongodb.org/yum/redhat/8/mongodb-org/5.0/${ARCHTYPE}/RPMS/mongodb-org-shell-5.0.9-1.el8.${ARCHTYPE}.rpm
5462

5563

56-
5764
#------------------------
5865
#
5966
#------------------------
6067
pecl install mongodb
6168
echo "extension=mongodb.so" >> /etc/php.d/40-mongodb.ini
6269

63-
pip3 install pymongo==3.7.0 --upgrade
70+
# This is required because /usr/bin/supremm-setup uses the platform-python
71+
/usr/libexec/platform-python -m pip install pymongo==3.7.0 --upgrade
72+
/usr/libexec/platform-python -m pip install pytz
73+
/usr/libexec/platform-python -m pip install scipy
74+
/usr/libexec/platform-python -m pip install Cython
75+
/usr/libexec/platform-python -m pip install pcp
76+
/usr/libexec/platform-python -m pip install PyMySQL
6477

6578
#------------------------
6679
# O/S package configuration.

xdmod/scripts/supremm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/libexec/platform-python
22
import pexpect
33
import sys
44

xdmod/scripts/xdmod-setup-ondemand.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ confirmFileWrite yes
3636
enterToContinue
3737

3838
# Setup the OnDemand database
39-
selectMenuOption 10
39+
selectMenuOption 11
4040

4141
selectMenuOption d
4242

xdmod/scripts/xdmod-setup-supremm.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ source [file join [file dirname [info script]] helper-functions.tcl]
1919
set timeout 240
2020
spawn "xdmod-setup"
2121

22-
selectMenuOption 9
22+
selectMenuOption 10
2323

2424
selectMenuOption d
2525
answerQuestionAlt {DB Admin Username:} root

0 commit comments

Comments
 (0)