<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Ok.</p>
<p>You may want to check your slurmdbd host(s) and ensure the users
are known there. If it does not know who a user is, it will not
allow access to the data.</p>
<p>If you are running sssd, clear the cache and such too.<br>
</p>
<p>Brian Andrus<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 7/1/2021 1:12 AM,
<a class="moz-txt-link-abbreviated" href="mailto:taleintervenor@sjtu.edu.cn">taleintervenor@sjtu.edu.cn</a> wrote:<br>
</div>
<blockquote type="cite"
cite="mid:001201d76e50$e1b82620$a5287260$@sjtu.edu.cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@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;}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;}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]-->
<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" style="text-align:left" align="left"><b><span
style="font-size:11.0pt">发件人<span lang="EN-US">:</span></span></b><span
style="font-size:11.0pt" lang="EN-US"> Brian Andrus
<a class="moz-txt-link-rfc2396E" href="mailto:toomuchit@gmail.com"><toomuchit@gmail.com></a> <br>
</span><b><span style="font-size:11.0pt">发送时间<span
lang="EN-US">:</span></span></b><span
style="font-size:11.0pt" lang="EN-US"> 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"> <a class="moz-txt-link-abbreviated" href="mailto:taleintervenor@sjtu.edu.cn">taleintervenor@sjtu.edu.cn</a><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" style="text-align:left" 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 style="font-size:11.0pt"
lang="EN-US"><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"
moz-do-not-send="true">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"
moz-do-not-send="true">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>
</blockquote>
</body>
</html>