I have not set up any accounts or slurm users at all, we don't have that
particular need in this environment.I may have missed it in the
documentation - are these a requirement for sreport to work? Of course
doing an "sacct" and selecting the "user" field to be shown is showing the
correct usernames on jobs that are ran by those users.
I added a user to slurm, assigned them to an account, ran a job, then went
back with sacct and sreport and it still isn't showing data.
Thanks for the help! This is confusing to get working properly!
[user@rdhpc-n1 ~]$ sacct
JobID JobName Partition Account AllocCPUS State ExitCode
------------ ---------- ---------- ---------- ---------- ---------- --------
132 sbatch Acceptanc+ evcluster 8 COMPLETED 0:0
132.batch batch evcluster 8 COMPLETED 0:0
[user@rdhpc-n1 ~]$ sreport cluster AccountUtilizationByUser start=10/20
end=10/21
--------------------------------------------------------------------------------
Cluster/Account/User Utilization 2016-10-20T00:00:00 - 2016-10-20T23:59:59
(86400 secs)
Time reported in CPU Minutes
--------------------------------------------------------------------------------
Cluster Account Login Proper Name Used Energy
--------- --------------- --------- --------------- ---------- ----------
[user@rdhpc-n1 ~]$ sreport user topusage start=10/20 end=10/21
--------------------------------------------------------------------------------
Top 10 Users 2016-10-20T00:00:00 - 2016-10-20T23:59:59 (86400 secs)
Time reported in CPU Minutes
--------------------------------------------------------------------------------
Cluster Login Proper Name Account Used Energy
On Thu, Oct 20, 2016 at 12:49 AM, Marcin Stolarek <[email protected]
> wrote:
>
> Account field is empty, have you enabled AccountingStorageEnforce ?
>
>
> cheers,
> Marcin
>
> 2016-10-19 16:50 GMT+02:00 Russell Jones <[email protected]>:
> > Hi all,
> >
> > This is on Slurm 14.11.7.
> >
> > When trying to get a report via sreport, regardless of if I run it as
> root
> > or a user, and on the slurm controller or a node, the report is empty.
> > "sacct" reports information back as expected for all users.
> >
> > I've seen a few messages about this issue and have verified I am not
> running
> > into those problems (date and time not synced, controller node not
> knowing
> > what cluster it belongs to, etc).
> >
> > Any additional help in figuring out what's going on would be great!
> Here's
> > an example of my issue:
> >
> >
> > [root@rdhpc-n5 ~]# /opt/slurm/14.11.7/bin/sacct -S 10/18
> > JobID JobName Partition Account AllocCPUS State
> ExitCode
> > ------------ ---------- ---------- ---------- ---------- ----------
> --------
> > 85 bash rdhpc 80 CANCELLED+
> 0:0
> > 85.0 pmi_proxy 10 COMPLETED
> 0:0
> > 87 sbatch Acceptanc+ 8 COMPLETED
> 0:0
> > 87.batch batch 8 COMPLETED
> 0:0
> > 88 bash rdhpc 80 CANCELLED+
> 0:0
> > 88.0 pmi_proxy 10 COMPLETED
> 0:0
> > 88.1 pmi_proxy 10 COMPLETED
> 0:0
> > 88.2 pmi_proxy 10 COMPLETED
> 0:0
> > 89 run_rdhpc+ rdhpc 32 FAILED
> 1:0
> > 89.batch batch 32 FAILED
> 1:0
> > 90 run_rdhpc+ rdhpc 32 COMPLETED
> 0:0
> > 90.batch batch 32 COMPLETED
> 0:0
> > 90.0 orted 3 COMPLETED
> 0:0
> > 91 run_rdhpc+ rdhpc 32 COMPLETED
> 0:0
> > 91.batch batch 32 COMPLETED
> 0:0
> > 91.0 orted 3 COMPLETED
> 0:0
> > 92 run_rdhpc+ rdhpc 32 COMPLETED
> 0:0
> > 92.batch batch 32 COMPLETED
> 0:0
> > 92.0 orted 3 COMPLETED
> 0:0
> > 93 bash rdhpc 80 COMPLETED
> 0:0
> > 93.0 pmi_proxy 10 COMPLETED
> 0:0
> > 94 run_rdhpc+ rdhpc 32 COMPLETED
> 0:0
> > 94.batch batch 32 COMPLETED
> 0:0
> > 94.0 orted 3 COMPLETED
> 0:0
> > 95 run_rdhpc+ rdhpc 32 COMPLETED
> 0:0
> > 95.batch batch 32 COMPLETED
> 0:0
> > 95.0 orted 3 COMPLETED
> 0:0
> >
> >
> >
> > [root@rdhpc-n5 ~]# /opt/slurm/14.11.7/bin/sreport user topusage
> start=10/18
> > ------------------------------------------------------------
> --------------------
> > Top 10 Users 2016-10-18T00:00:00 - 2016-10-18T23:59:59 (86400 secs)
> > Time reported in CPU Minutes
> > ------------------------------------------------------------
> --------------------
> > Cluster Login Proper Name Account Used Energy
> > --------- --------- --------------- --------------- ---------- ----------
> >
>