Hi Open Ondemand Discourse
I have installed open ondemand 2.0.0 on ubuntu 20, and have it connected to a cluster running slurm 21.08.8-2.
While the job composer does work, and can submit jobs to the cluster, I am having some issues with the environment variables not being passed. I was hoping to have it setup, such that jobs launched with the job composer would know the PATH and USER of the job (similar to what it would be if a user logged in through ssh to the login node). This would also make it possible to issue commands like module load, which users usually use to access software. And also let people use srun and sbatch from within the main sbatch template.
However the environment variables for the job seems very limited and only seems to contain some slurm specific variables, and no $PATH at all.
I was able to get the interactive desktop to work by exporting the HOME variable, and setting it based on the $SLURM_JOB_USER variable. This was done in the batch connect vnc section of /etc/ood/config/clusters.d/ yml file for the cluster.
However none of the commands present under either the vnc or basic sections of the clusters.d yml file seems to be executed when submitting jobs through the job composer, so it doesn’t seem possible to build the environment variables from there.
Based of some posts in the discourse, i have tried to add
to the file /etc/ood/config/app/myjobs/env
and i have also tried to
to the job section of the /etc/ood/config/clusters.d yml file.
and also to source /etc/profile
but none of these things seemed to help.
Does anyone know if it is possible to load environment variables for the job composer application?