Hello, I am testing OpenOnDemand in our secure environment.
In this setup, HPC compute nodes do not have a shared home directory, and users run jobs in their project folder. (e.g., /project/test/userid) The project is shared between OpenOnDemand and the compute nodes.
Since OOD creates ondemand folder inside user’s home directory, it doesn’t work in our environment. I was wondering if there is a way to set the $USER/ondemand folder to a custom path /project/test/userid
Yea, you can use the environment variable OOD_DATAROOT.
So you could do something like this - though I don’t know where you got test from or if it’s a variable or what.
OOD_DATAROOT="/project/test/$USER"
If it is a computed variable like the primary group, you can do some extra calculations in /etc/ood/profile Though if you do write your own /etc/ood/profile you should start with the one we ship at /opt/ood/nginx_stage/etc/profile.
Thank you Jeff, yes test is primary group. Just for test I set /project/test/$USER in dashboard/env and restarted the server, however I got The application encountered the following error: File exists @ dir_s_mkdir - /project (Errno::EEXIST) Can I make OOD to ignore existing folder?