Ticket 1098

Summary: Sync accounts to linux identities
Product: Slurm Reporter: Marco Passerini <marco.passerini>
Component: AccountingAssignee: David Bigagli <david>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 5 - Enhancement    
Priority: --- CC: da
Version: 14.03.3   
Hardware: Linux   
OS: Linux   
Site: CSC - IT Center for Science Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Marco Passerini 2014-09-11 00:36:02 MDT
We wrote a custom script to add users to the accounting database based on the entries in the /etc/passwd file. For now they all end up in the same common account.
We would like to have proper syncing with /etc/group so that every linux group would match one account. It would be important that not only addition, but also removal and group changes would be followed in the accounting database.
Would you be able to include such a feature in Slurm in the future, so we won't need to write these "hacks" ourselves?
Comment 1 David Bigagli 2014-09-11 04:40:35 MDT
Marco,
      have you looked at the slurm.conf parameters GroupUpdateForce and GroupUpdateTime, I know they are not directly related to the accounts
in the databases but do you make use of them somehow?

Ciao
     David
Comment 2 Marco Passerini 2014-11-12 18:31:10 MST
Hi,

Sorry for the delay. I checked your suggestion, but it seems to me that those fields don't update the accounting database, correct?
Comment 3 David Bigagli 2014-11-13 05:28:50 MST
Hi, indeed they don't. They only sync the Slurm's cache. 
This is one of the things that every user does a bit different so it is hard
to come up with a general solution and it does belong to a cluster management capabilities rather the scheduling. However if you would like to make your code available we could possibly check it in under contribs directory.

David