Re: [slurm-users] Create users

2018-10-05 Thread Andy Georges
Hi, > On 3 Oct 2018, at 16:51, Andy Georges wrote: > > Hi all, > >> On 15 Sep 2018, at 14:47, Chris Samuel wrote: >> >> On Thursday, 13 September 2018 3:10:19 AM AEST Paul Edmon wrote: >> >>> Another way would be to make all your Linux users and then map that in to >>> Slurm using sacctmgr.

Re: [slurm-users] Create users

2018-10-03 Thread Andy Georges
Hi all, > On 15 Sep 2018, at 14:47, Chris Samuel wrote: > > On Thursday, 13 September 2018 3:10:19 AM AEST Paul Edmon wrote: > >> Another way would be to make all your Linux users and then map that in to >> Slurm using sacctmgr. > > At ${JOB} and ${JOB-1} we've wired user creation in Slurm int

Re: [slurm-users] Create users

2018-09-15 Thread John Hearns
Loris said: Until now I had thought that the most elegant way of setting up Slurm users would be via a PAM module analogous to pam_mkhomedir, the simplest option being to use pam_script. When in Denmark this year (hello Ole!) I looked at pam_mkhomedir quite closely. The object was to automaticall

Re: [slurm-users] Create users

2018-09-15 Thread Chris Samuel
On Thursday, 13 September 2018 3:10:19 AM AEST Paul Edmon wrote: > Another way would be to make all your Linux users and then map that in to > Slurm using sacctmgr. At ${JOB} and ${JOB-1} we've wired user creation in Slurm into our online user management systems (both Django based & independentl

Re: [slurm-users] Create users

2018-09-13 Thread Paul Edmon
Users can control that: https://slurm.schedmd.com/sbatch.html -Paul Edmon- On 09/13/2018 11:10 AM, Ariel Balter wrote: Does anyone know how to change email settings? On 9/13/2018 7:59 AM, Damien François wrote: Just to add my 2c to the discussion: at our site, we use a utility we wrote [1

Re: [slurm-users] Create users

2018-09-13 Thread Ariel Balter
Does anyone know how to change email settings? On 9/13/2018 7:59 AM, Damien François wrote: Just to add my 2c to the discussion: at our site, we use a utility we wrote [1] that monitors our LDAP and triggers Ansible playbooks upon addition or modification in the list of users. We have playbook

Re: [slurm-users] Create users

2018-09-13 Thread Paul Edmon
This is true.  I've seen this happen before in our set up if sacctmgr happens to wedge.  It doesn't happen very frequently though and doesn't impact us that much.  We've been running in this fashion for years now with only very infrequent degradation. We do about 80,000 jobs per day.  Plus we o

Re: [slurm-users] Create users

2018-09-13 Thread Damien François
Just to add my 2c to the discussion: at our site, we use a utility we wrote [1] that monitors our LDAP and triggers Ansible playbooks upon addition or modification in the list of users. We have playbooks to setup the different directories for the user in the many filesystems, along with the resp

Re: [slurm-users] Create users

2018-09-13 Thread Douglas Jacobsen
At one point in time we would also use the job_submit.lua to add users, however, I cannot recommend it in general since job_submit runs while locks are held within slurmcltd, which could have dramatic performance or even functionality impacts if there are delays in adding the user. Doug Jacobs

Re: [slurm-users] Create users

2018-09-13 Thread Eric F. Alemany
Thank you Paul! ._ Eric F. Alemany System Administrator for Research Division of Radiation & Cancer Biology Department of Radiation Oncology Stanford University School of Medicine Stanford, Cal

Re: [slurm-users] Create users

2018-09-13 Thread Paul Edmon
So the Lua script I posted only does it for people who submit to the cluster.  To do it for all users it should just be a simple bash script to do that, I don't have one put together though. -Paul Edmon- On 09/13/2018 10:29 AM, Eric F. Alemany wrote: Hi Paul You said “Another way would be

Re: [slurm-users] Create users

2018-09-13 Thread Eric F. Alemany
Hi Paul You said “Another way would be to make all your Linux users and then map that in to Slurm using sacctmgr.” I am curious to know how you do that. Thank you Best Eric ._ Eric F. Aleman

Re: [slurm-users] Create users

2018-09-13 Thread Paul Edmon
Sure. Here is our lua script. -Paul Edmon- On 09/13/2018 07:28 AM, Andre Torres wrote: That's interesting using AD to maintain uid consistency across all the nodes. Like Loris, I'm also interested in your Lua script. - André On 13/09/2018, 11:42, "slurm-users on behalf of Loris Bennett"

Re: [slurm-users] Create users

2018-09-13 Thread Andre Torres
That's interesting using AD to maintain uid consistency across all the nodes. Like Loris, I'm also interested in your Lua script. - André On 13/09/2018, 11:42, "slurm-users on behalf of Loris Bennett" wrote: Hi Paul, I'd be interested in seeing your Lua submit script, if you'r

Re: [slurm-users] Create users

2018-09-13 Thread Loris Bennett
Hi Paul, I'd be interested in seeing your Lua submit script, if you're willing to share. Until now I had thought that the most elegant way of setting up Slurm users would be via a PAM module analogous to pam_mkhomedir, the simplest option being to use pam_script. However, given that we do have u

Re: [slurm-users] Create users

2018-09-12 Thread Ole Holm Nielsen
On 12-09-2018 18:21, Andre Torres wrote: I’m new to slurm and I’m confused regarding user creation. I have an installation with 1 login node and 5 compute nodes. If I create a user across all the nodes with the same uid and gid I can execute jobs but I can’t understand the difference between us

Re: [slurm-users] Create users

2018-09-12 Thread Paul Edmon
So useradd is adding a Linux user, which sacctmgr creates a Slurm user. What we do is that we run AD for our Linux user managment.  We then in our job submit lua script look to see if the user has an account in slurm and if they don't we create it. Another way would be to make all your Linux

[slurm-users] Create users

2018-09-12 Thread Andre Torres
Hi all, I’m new to slurm and I’m confused regarding user creation. I have an installation with 1 login node and 5 compute nodes. If I create a user across all the nodes with the same uid and gid I can execute jobs but I can’t understand the difference between user creation with “useradd” com