Re: [slurm-users] Prolog and job_submit

2022-10-31 Thread Christopher Samuel
On 10/31/22 5:46 am, Davide DelVento wrote: Thanks for helping me find workarounds. No worries! My only other thought is that you might be able to use node features & job constraints to communicate this without the user realising. I am not sure I understand this approach. I was just tryi

Re: [slurm-users] Prolog and job_submit

2022-10-31 Thread Davide DelVento
Thanks for helping me find workarounds. > My only other thought is that you might be able to use node features & > job constraints to communicate this without the user realising. I am not sure I understand this approach. > For instance you could declare the nodes where the software is installed

Re: [slurm-users] Prolog and job_submit

2022-10-30 Thread Chris Samuel
On 30/10/22 12:27 pm, Davide DelVento wrote: But if I understand correctly your Prolog vs TaskProlog distinction, the latter would have the environmental variable and run as user, whereas the former runs as root and doesn't get the environment, That's correct. My personal view is that injectin

Re: [slurm-users] Prolog and job_submit

2022-10-30 Thread Davide DelVento
Hi Chris, > Unfortunately it looks like the license request information doesn't get > propagated into any prologs from what I see from a scan of the > documentation. :-( Thanks. If I am reading you right, I did notice the same thing and in fact that's why I wrote that job_submit lua script which

Re: [slurm-users] Prolog and job_submit

2022-10-30 Thread Chris Samuel
On 30/10/22 10:23 am, Chris Samuel wrote: Unfortunately it looks like the license request information doesn't get propagated into any prologs from what I see from a scan of the documentation. 🙁 This _may_ be fixed in the next major Slurm release (February) if I'm reading this right: https:

Re: [slurm-users] Prolog and job_submit

2022-10-30 Thread Chris Samuel
On 29/10/22 7:37 am, Davide DelVento wrote: So either I misinterpreted that "same environment as the user tasks" or there is something else that I am doing wrong. Slurm has a number of different prologs that can run which can cause confusion, and I suspect that's what's happening here. The

Re: [slurm-users] Prolog and job_submit

2022-10-29 Thread Davide DelVento
; DelVento > Sent: Saturday, October 29, 2022 9:37 AM > To: slurm-us...@schedmd.com > Subject: [slurm-users] Prolog and job_submit > > My problem: grant licensed software availability to my users only if > they request it on slurm; for now with local licenses. > > I wr

Re: [slurm-users] Prolog and job_submit

2022-10-29 Thread Sarlo, Jeffrey S
Sent: Saturday, October 29, 2022 9:37 AM To: slurm-us...@schedmd.com Subject: [slurm-users] Prolog and job_submit My problem: grant licensed software availability to my users only if they request it on slurm; for now with local licenses. I wrote a job_submit lua script which checks job_desc.license

[slurm-users] Prolog and job_submit

2022-10-29 Thread Davide DelVento
My problem: grant licensed software availability to my users only if they request it on slurm; for now with local licenses. I wrote a job_submit lua script which checks job_desc.licenses and if it contains the appropriate strings it sets an appropriate SOMETHING_LICENSE_REQ environmental variable.