Ticket 2010

Summary: Does Slurm store uid/gid cache?
Product: Slurm Reporter: Akmal Madzlan <akmalm>
Component: slurmctldAssignee: David Bigagli <david>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 4 - Minor Issue    
Priority: --- CC: akmalm, brian, da
Version: 14.11.9   
Hardware: Linux   
OS: Linux   
Site: DownUnder GeoSolutions Slinky Site: ---
Alineos Sites: --- Atos/Eviden Sites: ---
Confidential Site: --- Coreweave sites: ---
Cray Sites: --- DS9 clusters: ---
Google sites: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- NoveTech Sites: ---
Nvidia HWinf-CS Sites: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Tzag Elita Sites: ---
Linux Distro: --- Machine Name:
CLE Version: Version Fixed:
Target Release: --- DevPrio: ---
Emory-Cloud Sites: ---

Description Akmal Madzlan 2015-10-05 21:59:20 MDT
[akmala@kud6 ~]$ scontrol update jobid=3280512 partition=teamredang
User's group not permitted to use this partition for job 3280512

[root@kque0001 ~]# id akmala
uid=1509(akmala) gid=2110(teambond) groups=2110(teambond),2109(teamredang)

[2015-10-06T12:09:02.207] _slurm_rpc_update_job JobId=3280512 uid=1509: User's group not permitted to use this partition


Did Slurm store uid/gid cache?
Sometimes when users is added to a group, he still unable to use a partition until slurmctld is restarted

We dont have CacheGroups=1 in our config
Comment 1 David Bigagli 2015-10-05 22:12:08 MDT
Yes it does, it keeps an array of uids to avoid calling getpwuid() functions.
I will check how this interacts with CacheGroups and get back to you.

David
Comment 2 David Bigagli 2015-10-05 22:13:37 MDT
Akmal, I have added you in CC to this bugzilla report, you may have not got
my previous answer.

David
Comment 3 Akmal Madzlan 2015-10-05 22:16:21 MDT
Thanks David
Comment 4 David Bigagli 2015-10-06 00:40:04 MDT
Akmal the CacheGroups parameter applies to slurmd only. If you change the
user membership of a group you need to restart the controller indeed.
It would be possible to check the group membership on the fly but that
could affest the performance of the controller as the name resolution
routines can be slow especially if they have to call NIC, LDAP and so on.

David