Skip to content

Commit 3d8294c

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 43e3046 + 508b32f commit 3d8294c

3 files changed

Lines changed: 25 additions & 8 deletions

File tree

ondemand/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,26 @@ sudo sacctmgr add user hpcadmin account=sfoster
10041004
sudo sacctmgr modify user where user=hpcadmin set defaultaccount=staff
10051005
```
10061006
1007+
### Hiding form options
1008+
1009+
Lastly, we can use this feature to hide and show other form fields. This can be useful when
1010+
some options are avaialbe for somethings. For example you may want to show CUDA versions as
1011+
a form option for GPU nodes, but not for other nodes.
1012+
1013+
Add the `data-hide-bc-account` line to our `debug` form option and we'll start hiding that
1014+
field when the debug option is chosen.
1015+
1016+
```yaml
1017+
- [
1018+
"Debug", "debug",
1019+
data-min-memory: 400,
1020+
data-max-memory: 600,
1021+
1022+
data-set-bc-account: 'staff',
1023+
data-hide-bc-account: true, # hide the bc_account field when this is chosen.
1024+
]
1025+
```
1026+
10071027
## Passenger app tutorial
10081028

10091029
Access OnDemand dashboard https://localhost:3443

xdmod/install.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ ARCHTYPE=`uname -m`
2121

2222
dnf install -y \
2323
expect \
24-
python2-pip \
24+
python3-pexpect \
2525
php-pear \
2626
php-devel
2727

28-
pip2 install pexpect==4.4.0
29-
3028
#------------------------
3129
# Open XDMoD Installation
3230
#
@@ -39,10 +37,10 @@ pip2 install pexpect==4.4.0
3937
# be installed in the same container. In a production deployment they may be installed
4038
# on separate hosts.
4139
#------------------------
42-
dnf install -y https://github.com/ubccr/xdmod/releases/download/v10.0.0-beta4-el8/xdmod-10.0.0-1.4.beta4.el8.noarch.rpm \
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 \
4341
https://github.com/ubccr/xdmod-ondemand/releases/download/v10.0.0/xdmod-ondemand-10.0.0-1.0.beta1.el8.noarch.rpm \
4442
https://github.com/ubccr/xdmod/releases/download/v10.0.0-beta4-el8/xdmod-supremm-10.0.0-1.4.beta4.el8.noarch.rpm \
45-
https://github.com/ubccr/supremm/releases/download/2.0.0-beta3/supremm-2.0.0-1.0_beta3.el8.x86_64.rpm
43+
https://github.com/ubccr/supremm/releases/download/2.0.0-beta3/supremm-2.0.0-1.0_beta3.el8."$ARCHTYPE".rpm
4644

4745
#------------------------
4846
# The Job Performance software uses MongoDB to store the job-level performance
@@ -63,7 +61,6 @@ pecl install mongodb
6361
echo "extension=mongodb.so" >> /etc/php.d/40-mongodb.ini
6462

6563
pip3 install pymongo==3.7.0 --upgrade
66-
pip2 install pymongo --upgrade
6764

6865
#------------------------
6966
# O/S package configuration.

xdmod/scripts/supremm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22
import pexpect
33
import sys
44

55
def main():
66

77
scriptsettings = ['start', 'start', 'start', 'end', 'submit']
88

9-
with open("supremm_expect_log", "w") as f:
9+
with open("supremm_expect_log", "wb") as f:
1010
p = pexpect.spawn('supremm-setup')
1111
p.logfile = f
1212

0 commit comments

Comments
 (0)