<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=gb2312"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:等线;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@等线";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* 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:等线;}
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;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:等线;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:等线;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>I can make sure the test job is running (of course in the default time window) when doing sacct query, and here is the new test record which describe it more clearly:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>[2021-07-01T16:02:42+0800][hpczty@cas013] ~/downloads> sbatch testjob.sh<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Submitted batch job 6955371<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>[2021-07-01T16:02:48+0800][hpczty@cas013] ~/downloads> squeue<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 6955371 debug test hpczty R 0:02 1 cas011<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>[2021-07-01T16:02:50+0800][hpczty@cas013] ~/downloads> sacct<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> JobID JobName Partition Account AllocCPUS State ExitCode<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>------------ ---------- ---------- ---------- ---------- ---------- --------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>[2021-07-01T16:02:52+0800][hpczty@cas013] ~/downloads> sacct --state=R --starttime=2021-07-01T16:00:00 --endtime=now<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> JobID JobName Partition Account AllocCPUS State ExitCode<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>------------ ---------- ---------- ---------- ---------- ---------- --------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>[2021-07-01T16:03:25+0800][hpczty@cas013] ~/downloads> squeue<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 6955371 debug test hpczty R 0:43 1 cas011<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal align=left style='text-align:left'><b><span style='font-size:11.0pt'>发件人<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:11.0pt'> Brian Andrus <toomuchit@gmail.com> <br></span><b><span style='font-size:11.0pt'>发送时间<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:11.0pt'> 2021</span><span style='font-size:11.0pt'>年<span lang=EN-US>6</span>月<span lang=EN-US>30</span>日<span lang=EN-US> 22:29<br></span><b>收件人<span lang=EN-US>:</span></b><span lang=EN-US> taleintervenor@sjtu.edu.cn<br></span><b>主题<span lang=EN-US>:</span></b><span lang=EN-US> Re: [slurm-users] Is there bug in PrivateData=jobs option of slurmdbd?<o:p></o:p></span></span></p></div></div><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US><o:p> </o:p></span></p><p><span lang=EN-US>I suspect your job fell out of the default time window for sacct.</span><span lang=EN-US style='font-size:11.0pt'><o:p></o:p></span></p><p><span lang=EN-US>Add a time window that you know includes when the job ran and you will likely see it.<o:p></o:p></span></p><p><span lang=EN-US>Brian Andrus<o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US>On 6/30/2021 3:53 AM, </span><span lang=EN-US><a href="mailto:taleintervenor@sjtu.edu.cn">taleintervenor@sjtu.edu.cn</a></span><span lang=EN-US> wrote:<o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US>Hello,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>We find a strange behavior about sacct and PrivateData option of slurmdbd. Our original configuration is setting </span>“<span lang=EN-US>PrivateData = accounts,jobs,usage,users,reservations</span>”<span lang=EN-US> in slurm.conf and not setting </span>“<span lang=EN-US>PrivateData</span>”<span lang=EN-US> in slurmdbd.conf. At this point, common user can see all others job information with sacct. Now we add option </span>“<span lang=EN-US>PrivateData =jobs</span>”<span lang=EN-US> to slurmdbd.conf, then common users even can</span>’<span lang=EN-US>t see their own jobs using sacct.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>According.to <a href="https://slurm.schedmd.com/slurmdbd.conf.html">https://slurm.schedmd.com/slurmdbd.conf.html</a> , setting </span>“<span lang=EN-US>jobs</span>”<span lang=EN-US> in PrivateData should only prevent user from viewing others</span>’<span lang=EN-US> job. Why it also hide jobs submit by user itself from sacct query?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The test records as below:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>============ before add option </span>“<span lang=EN-US>PrivateData =jobs</span>”<span lang=EN-US> to slurmdbd.conf ==================<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2021-06-30T18:18:07+0800][hpczty@login3] ~/downloads> sbatch testjob.sh<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Submitted batch job 6944660<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2021-06-30T18:18:11+0800][hpczty@login3] ~/downloads> squeue<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 6944660 debug test hpczty PD 0:00 1 (None)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2021-06-30T18:18:16+0800][hpczty@login3] ~/downloads> sacct<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> JobID JobName Partition Account AllocCPUS State ExitCode<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>------------ ---------- ---------- ---------- ---------- ---------- --------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>6944660 test debug acct-hpc 1 RUNNING 0:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>6944660.bat+ batch acct-hpc 1 RUNNING 0:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>6944660.ext+ extern acct-hpc 1 RUNNING 0:0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>============ after add option </span>“<span lang=EN-US>PrivateData =jobs</span>”<span lang=EN-US> to slurmdbd.conf ==================<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2021-06-30T18:21:27+0800][hpczty@login3] ~/downloads> sbatch testjob.sh<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Submitted batch job 6944665<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2021-06-30T18:21:30+0800][hpczty@login3] ~/downloads> squeue<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> 6944665 debug test hpczty PD 0:00 1 (None)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2021-06-30T18:21:32+0800][hpczty@login3] ~/downloads> sacct<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> JobID JobName Partition Account AllocCPUS State ExitCode<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>------------ ---------- ---------- ---------- ---------- ---------- --------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>(no jobs shown)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks<o:p></o:p></span></p></blockquote></div></body></html>