Closed georgeha closed 6 years ago
My assumption is that rp add "" to the arguments. The unit.0000.sh has:
stress-ng " --cpu 1 --timeout 720s "
and stress-ng can't read the arguments
arguments
is a list, and that's for a good reason :-) This should work:
cud.arguments = ['--cpu', '1', '--timeout', '720s'] # 720 sec = 12 min
as should this:
cud.arguments = '--cpu 1 --timeout 720s '.split() # 720 sec = 12 min
The reason for this is the handling of arguments which do contain spaces - quoting gets tricky then. Assume the command line:
$ grep "foo 'bar' buz" /dev/random
The current array based syntax makes this easy:
cud.arguments = ["foo 'bar' buz", "/dev/random"]
It might be a corner case - but quotes and spaces in arguments are frequent enough to matter. Hell, we had users which pass whole python scripts (50 lines or so) as command line arguments! :-P
PS.; the fact that specifying all off it for cud.executable
is coincidental (i.e. lucky), and depends on the launch method used in the pilot. You cannot in general rely on this.
@georgeha : ping - is this resolved?
yes. Closing now
If I define the arguments of stress-ng as CU arguments. Stress-ng does not read the arguments.
It works
it does not work