<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:"\@Malgun Gothic";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:DengXian;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:DengXian;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:DengXian;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link="#0563C1" vlink="#954F72" style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>Hi all:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>We encountered a strange bug when query job history using <b>sacct. </b>As show below, we try to list user <b>hpczbzt</b>‘s job, and sacct do filter the right jobs belong to this user. But there username is displayed as <b>phywht</b>.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>> sacct -X --user=hpczbzt --format=jobid%16,jobidraw,user,uid,partition,start,end,AllocCPUS,state%20<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> JobID JobIDRaw User UID Partition Start End AllocCPUS State<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>---------------- ------------ --------- ------ ---------- ------------------- ------------------- ---------- --------------------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9882328 9882328 phywht 6270 dgx2 2022-03-13T04:50:12 Unknown 6 RUNNING<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9882330 9882330 phywht 6270 dgx2 2022-03-13T04:50:12 Unknown 6 RUNNING<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9882332 9882332 phywht 6270 dgx2 2022-03-13T04:50:12 Unknown 6 RUNNING<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9882335 9882335 phywht 6270 dgx2 2022-03-13T04:50:12 Unknown 6 RUNNING<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9882337 9882337 phywht 6270 dgx2 2022-03-13T04:50:12 Unknown 6 RUNNING<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9884211 9884211 phywht 6270 a100 2022-03-12T23:56:02 2022-03-13T00:13:43 8 CANCELLED by 6270<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9884265 9884265 phywht 6270 a100 2022-03-13T00:14:22 Unknown 8 RUNNING<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9884308 9884308 phywht 6270 64c512g 2022-03-13T01:18:44 2022-03-13T01:37:04 4 CANCELLED by 6270<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9884413 9884413 phywht 6270 64c512g 2022-03-13T04:52:06 2022-03-13T05:59:49 40 COMPLETED<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9884431 9884431 phywht 6270 a100 2022-03-13T06:09:02 2022-03-13T09:32:45 8 COMPLETED<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9887011 9887011 phywht 6270 debug64c5+ 2022-03-13T11:06:44 2022-03-13T11:07:41 1 CANCELLED by 6270<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>The UID showed by sacct is right, and actual UID of <b>phywht</b> is <b>6272 </b>as shown below<b>:</b><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>> id phywht<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>uid=6272(phywht) gid=6272(phywht) groups=6272(phywht)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>> id hpczbzt<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>uid=6270(hpczbzt) gid=6270(hpczbzt) groups=6270(hpczbzt)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>Those 2 system accounts are both stored in ldap. Also we have checked them to be consistent on either slurmctld and slurmdbd node. What’s more, scontrol and squeue can show the right username as hpczbzt:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>> scontrol show job 9884265<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>JobId=9884265 JobName=af_test_session<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> UserId=hpczbzt(6270) GroupId=hpczbzt(6270) MCS_label=N/A<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> Priority=519 Nice=0 Account=acct-phywht QOS=normal<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> JobState=RUNNING Reason=None Dependency=(null)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>……<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>> squeue --user=hpczbzt<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9884265 a100 af_test_ hpczbzt R 11:43:46 1 gpu04<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> 9882328 dgx2 repeat_V hpczbzt R 7:07:56 1 vol05<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>……<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>So is there any guess about why only sacct display the wrong username?<o:p></o:p></span></p></div></body></html>