Most of our users have all lowercase usernames, e.g. john.smith. Some users have mixed-case usernames, e.g. John.Smith. For the mixed-case users, when they submit jobs, their RawUsage remains at 0 in the output of 'sshare -a -l'. I created a test mixed-case user and confirmed this. The all lowercase users have the correct RawUsage. The following bug appears to confirm the mixed-case issue: https://bugs.schedmd.com/show_bug.cgi?id=1554 See comments 15 to 18. However, this bug is 6 years old, and it isn't clear if mixed-case support has been added since then. Please advise.
Any updates?
Jeff, Can I get your slurm.conf and sshare output for the affected user(s). -Scott
Created attachment 20376 [details] slurm.conf
User Senay.Negusse has run thousands of jobs today, his RawUsage should not be 0. sshare -u Senay.Negusse Account User RawShares NormShares RawUsage EffectvUsage FairShare -------------------- ---------- ---------- ----------- ----------- ------------- ---------- root 0.000000 3762485 1.000000 allusers 10000 0.999900 3762485 1.000000 allusers senay.neg+ 100 0.028571 0 0.000000 0.972222
Jeff, Can I also get your slurmdbd.conf -Scott
Created attachment 20393 [details] slurmdbd.conf Attaching slurmdbd.conf
Jeff, Can I also get the output of: >sacctmgr show assoc where user=Senay.Negusse >sacctmgr show assoc where user=senay.negusse -Scott
sacctmgr show assoc where user=Senay.Negusse Cluster Account User Partition Share Priority GrpJobs GrpTRES GrpSubmit GrpWall GrpTRESMins MaxJobs MaxTRES MaxTRESPerNode MaxSubmit MaxWall MaxTRESMins QOS Def QOS GrpTRESRunMin ---------- ---------- ---------- ---------- --------- ---------- ------- ------------- --------- ----------- ------------- ------- ------------- -------------- --------- ----------- ------------- -------------------- --------- ------------- kopgrid allusers senay.neg+ 100 normal sacctmgr show assoc where user=senay.negusse Cluster Account User Partition Share Priority GrpJobs GrpTRES GrpSubmit GrpWall GrpTRESMins MaxJobs MaxTRES MaxTRESPerNode MaxSubmit MaxWall MaxTRESMins QOS Def QOS GrpTRESRunMin ---------- ---------- ---------- ---------- --------- ---------- ------- ------------- --------- ----------- ------------- ------- ------------- -------------- --------- ----------- ------------- -------------------- --------- ------------- kopgrid allusers senay.neg+ 100 normal
And a couple jobs from the output of >sacct -u Senay.Negusse --format=user,jobid,state,CPUTimeRAW >sacct -u senay.negusse --format=user,jobid,state,CPUTimeRAW
Also show the uid >sacct -u Senay.Negusse --format=user,uid,jobid,state,CPUTimeRAW >sacct -u senay.negusse --format=user,uid,jobid,state,CPUTimeRAW
Created attachment 20394 [details] Output of 'sacct -u Senay.Negusse --format=user,uid,jobid,state,CPUTimeRAW' Output of 'sacct -u Senay.Negusse --format=user,uid,jobid,state,CPUTimeRAW'
sacct -u senay.negusse --format=user,uid,jobid,state,CPUTimeRAW sacct: error: Invalid user id: senay.negusse
Jeff, Ok, I understand what is going on. sshare is looking for senay.negusse but all the jobs have Senay.Negusse. Thus you get rawusage=0. The short answer is you need the correct case version of the username in slurm. You do this by adding this line to your slurmbdb.conf. >Parameters=PreserveCaseUser Afterwards you can update the user to the correct upper case version in slurm accounting. >sacctmgr update user senay.negusse set newname=Senay.Negusse -Scott
Thanks Scott, that fixed the problem. Mixed-case usernames now incur the proper RawUsage. Please close this bug.
Closing Bug