Commit Graph
8 Commits
Author SHA1 Message Date
John Chilton 78e0ede829 Fix for running LSF DRMAA jobs as 'real' user.
Fix thanks to Chong Chen at IBM - "When invoking the LSF drmma api to submit a job, the API will print the message like 'Job <78> is submitted to default queue <normal>'. So if the Galaxy want to use this API, need modify the drmaa_external_runner.py script to handle this message.  LSF already support a env variable to disable this message print out, "BSUB_QUIET", set this into env can disable this message output."

A second issue was related to subsequent querying of the job state as a user other than the submitter - according to Chong Chen this has been fixed in latest LSF DRMAA changes on github (https://github.com/PlatformLSF/lsf-drmaa/commit/43e62546172b90d9f95e90273d77f4c35a0bb404).
2014-08-18 08:43:37 -04:00
Dannon Baker 559ecb4ec8 Remove dependency on simplejson; convert everything over to using the json module in the python standard library. 2014-01-10 07:29:05 -05:00
John Chilton 5e36bde9c8 Rework contribution from pull request #267 to be optional.
To obtain the behavior (assigning all groups for a given user for each job submission) change the property - 'drmaa_external_runjob_script' from  'scripts/drmaa_external_runner.py' to 'scripts/drmaa_external_runner.py --assign_all_groups'.

Making this optional because my concern is that this could be an expensive operation on some clusters.
2013-12-10 08:26:22 -06:00
John Chilton 039780705c PEP-8 fixes for scripts/drmaa_external_runner.py. 2013-12-10 08:02:17 -06:00
Frederik Delaere c939ebb9d8 Fix for two issues
- The secondary user groups are not assigned to the user
 - When the json file is on a NFS share where root access is not allowed this script fails with a "error: JobTemplate file (/path/to/jsonfile) doesn't exist" error

To fix the first we have to go through all the groups of the user in set_user(uid) and assign them with os.setgroups()

The second one is fixed by removing the check if the json file exists in the function validate_paramters and move that check to a new function which is called after set_user(uid). Because its possible that the new user (the one in uid) has access to that file but root hasn't
2013-11-26 15:04:57 +00:00
Nate Coraor 9ab95a9fa9 Fix passing of job name when running jobs as a system user. 2012-10-03 11:51:07 -04:00
Carl Eberhard d97ada4bb5 minor docstring adds in /scripts 2012-08-03 13:31:48 -04:00
ichorny 236276b132 add actual user changes to galaxy-central 2011-10-21 14:01:48 -07:00