PBSPro environment issues with OOD


We noticed that when we submit jobs through OODs interactive apps that the environment variables PBS_O_LOGNAME and PBS_O_MAIL are always set to root instead of the correct vaules. We are not sure how to go about changing the environment from where the job is submitted to see if we can fix this is or if this is due to something in OOD.




Are those variables set correctly when you start a job through the Job Composer?


I work with Matt. The variables are not set correctly when you start a job through the Job Composer. The variables are set to the same incorrect things through job composer and interactive apps.

I looked up the source code, and we don’t modify that anywhere. All that we’re doing for this functionality is passing in parameters to send (-m b or -m be for example). We’re not specifying who to send by, so the system is just using the default. And by system I mean qsub on the ondemand host. Perhaps there’s a setting missing on that host that’s different from, say a login node where uses submit through ssh?

That said, you can pass environment variables to interactive jobs. This is what that looks like. It’s the job_environment attribute under script.

     PBS_O_MAIL: "cluster-mailer@cluster.org"
     FOO: "bar"

Hope that helps!

We’ll look into that further. Good to know that it doesn’t get modified. Thanks for the feedback. I’ll let y’all know if I have more questions/feedback.