[slurm-users] Is there bug in PrivateData=jobs option of slurmdbd?

taleintervenor at sjtu.edu.cn taleintervenor at sjtu.edu.cn
Wed Jun 30 10:53:18 UTC 2021


Hello,

 

We find a strange behavior about sacct and PrivateData option of slurmdbd.
Our original configuration is setting "PrivateData =
accounts,jobs,usage,users,reservations" in slurm.conf and not setting
"PrivateData" in slurmdbd.conf. At this point, common user can see all
others job information with sacct. Now we add option "PrivateData =jobs" to
slurmdbd.conf, then common users even can't see their own jobs using sacct.

 

According.to https://slurm.schedmd.com/slurmdbd.conf.html , setting "jobs"
in PrivateData should only prevent user from viewing others' job. Why it
also hide jobs submit by user itself from sacct query?

 

The test records as below:

============ before add option "PrivateData =jobs" to slurmdbd.conf
==================

[2021-06-30T18:18:07+0800][hpczty at login3] ~/downloads> sbatch testjob.sh

Submitted batch job 6944660

 

[2021-06-30T18:18:11+0800][hpczty at login3] ~/downloads> squeue

             JOBID PARTITION     NAME     USER ST       TIME  NODES
NODELIST(REASON)

           6944660     debug     test   hpczty PD       0:00      1 (None)

 

[2021-06-30T18:18:16+0800][hpczty at login3] ~/downloads> sacct

       JobID    JobName  Partition    Account  AllocCPUS      State ExitCode

------------ ---------- ---------- ---------- ---------- ---------- --------

6944660            test      debug   acct-hpc          1    RUNNING      0:0

6944660.bat+      batch              acct-hpc          1    RUNNING      0:0

6944660.ext+     extern              acct-hpc          1    RUNNING      0:0

 

 

============ after add option "PrivateData =jobs" to slurmdbd.conf
==================

[2021-06-30T18:21:27+0800][hpczty at login3] ~/downloads> sbatch testjob.sh

Submitted batch job 6944665

 

[2021-06-30T18:21:30+0800][hpczty at login3] ~/downloads> squeue

             JOBID PARTITION     NAME     USER ST       TIME  NODES
NODELIST(REASON)

           6944665     debug     test   hpczty PD       0:00      1 (None)

 

[2021-06-30T18:21:32+0800][hpczty at login3] ~/downloads> sacct

       JobID    JobName  Partition    Account  AllocCPUS      State ExitCode

------------ ---------- ---------- ---------- ---------- ---------- --------

(no jobs shown)

 

Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20210630/5f797e9e/attachment.htm>


More information about the slurm-users mailing list