-
Install this project under
/usr/local/src/
-
Create symlink, depends on python version.
To find python path, at command line:
python import sys sys.path exit()
To create the symlinks:
ln -s /usr/local/src/karaage-limits/kglimits /usr/local/lib/python2.5/site-packages/kglimits ln -s /usr/local/src/karaage-limits/kglimits /usr/local/lib/python2.6/dist-packages/kglimits
-
Test, at command prompt.
kg-manage shell import kglimits.gold import kglimits.slurm
Skip this section if not using gold.
-
Install gold command line.
-
Ensure gold installed under
/usr/local/gold/bin/
and works as www-data user. -
Add project to gold that has no access. Call it null_project (or whatever else you want).
-
In
/etc/karaage/global_settings.py
add:INSTALLED_APPS += ( 'kglimits.gold', ) GOLD_NULL_PROJECT = "null_project"
-
Test and fix breakage. Log file /tmp/gold.log will help resolve problems.
Skip this section if not using slurm.
-
Install slurm command line
-
Add to /etc/sudoers:
www-data ALL=(slurm) NOPASSWD: /usr/local/slurm/latest/bin/sacctmgr
-
Test as www-data
sudo -uslurm /usr/local/slurm/latest/bin/sacctmgr -ip
-
Install these files in python path.
-
Add project to slurm that has no access. Call it null_project (or whatever else you want).
-
In
/etc/karaage/global_settings.py
add:INSTALLED_APPS += ( 'kglimits.slurm', ) SLURM_NULL_PROJECT = "null_project"
-
Test and fix breakage. Log file /tmp/slurm.log will help resolve problems.