Hi Jeff, thanks for that lightning-speed reply to Chris!
Could I beg you verify: we want to target submit.yml.erb not script.yml.erb, right?
# So we'd modify:
/etc/ood/config/myjobs/submit/submit.yml.erb
# rather than:
/etc/ood/config/myjobs/submit/script.yml.erb
And the contents of submit.yml.erb should resemble this:
$ cat /var/www/ood/apps/sys/myjobs/submit.yml.erb
---
script:
copy_environment: "true"
Is that correct?
And to be fully explicit, we are not modifying template/script.sh.erb
, right?
Sadly, if all of the above is correct, we seemingly still are not successfully copying-over the environment. 
To expand slightly on Chrisâ inquiry and provide context to future forumdwellers: weâre trying to fix our setup to allow users to use per-line srun someCommand
syntax in batch jobs submitted to Slurm via the Job Composer App. This is probably best explained with some examples:
This job will succeed:
#!/bin/bash
#SBATCH --job-name=test_no_srun
hostname
This job will also succeed:
#!/bin/bash
#SBATCH --job-name=test_export_all
srun --export=all hostname
But this job will fail:
#!/bin/bash
#SBATCH --job-name=test_export_none
srun hostname
âŚwith output suggesting the environment is bone dry:
slurmstepd: error: execve(): hostname: No such file or directory
srun: error: cn69: task 0: Exited with exit code 2
My understanding of srunâs functionality inside sbatch scripts is that while technically optional, it allows us to collect more metadata on the job.
If relevant, this seems to be similar or the same as our former EL6/OOD 1.6 situation where weâd previously patched the ruby directly to regain âsrun functionalityâ.
Thanks for your assistance!
Jason