Incorrect quoting of shell arguments when submitting to SLURM
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
When submitting to a SLURM resource a command that has shell
metacharacters in its arguments (see example in `gmbsim.py`),
submission fails miserably::
gc3.gc3libs: ERROR: Got error in submitting task 'GmbsimApplication.72848', informing scheduler: LRMSError: Failed executing command 'cd /home/gc3-user/.gc3pie_jobs/lrms_job.it9lZWqpXb && sbatch --no-requeue --time 120 --mem-per-cpu 1000 --output sim_run_dclone_design_test.log --job-name sim_run_dclone_design_test_dates=1:7_sampling=c(4,2*7+6,7over7)_isolation=c(80*3,200*4,150,150)_detection=c(0.25,0.25,0.25,0.25,0.99,0.99,1)#1 ./script.7faeea7748a2b259.sh' on resource 'mbrooks'; exit code: 2, stderr: '/bin/sh: 1: Syntax error: "(" unexpected
'.
...
Traceback (most recent call last):
File "/home/rmurri/gc3/gc3pie.googlecode.com/gc3pie/gc3libs/core.py", line 944, in first_come_first_serve
result = yield (task_idx, target.name)
File "/home/rmurri/gc3/gc3pie.googlecode.com/gc3pie/gc3libs/core.py", line 1319, in progress
self._core.submit(task, targets=[resource])
File "/home/rmurri/gc3/gc3pie.googlecode.com/gc3pie/gc3libs/core.py", line 257, in submit
return self.__submit_application(app, resubmit, targets, **extra_args)
File "/home/rmurri/gc3/gc3pie.googlecode.com/gc3pie/gc3libs/core.py", line 371, in __submit_application
raise ex
While the script arguments are (maybe?) properly quoted, arguments to
the `sbatch` command are not.
Original issue reported on code.google.com by riccardo.murri@gmail.com
on 13 Oct 2014 at 2:48
Google Code Exporter commented
Fixed in SVN r4056
Original comment by riccardo.murri@gmail.com
on 13 Oct 2014 at 3:34
- Changed state: Fixed