Hi,

Following an issue we had with sreport where a user wasn't reporting (thread below). We discovered that any change done to the accounting database isn't notified to the slurm daemon, therefore it does not apply changes until slurmctld is restarted.

The docs (http://slurm.schedmd.com/accounting.html <http://slurm.schedmd.com/accounting.html>) say: /Once an entity has been added, modified or removed, the change is sent to the appropriate Slurm daemons and will be available for use instantly./

We are using Slurm 15.08.7

Thanks,

Eneko Anasagasti
IT Engineer
*BCAM -* Basque Center for Applied Mathematics
Alameda de Mazarredo, 14
E-48009 Bilbao, Basque Country - Spain
Tel. +34 946 567 842
eanasaga...@bcamath.org <mailto:eanasaga...@bcamath.org> | www.bcamath.org/eanasagasti <http://www.bcamath.org/eanasagasti>
*/
/*
*/(/*///matematika mugaz bestalde *)*/


-------- Forwarded Message --------
Subject:        Re: [slurm-dev] Re: Missing user in sreport
Date:   Tue, 13 Sep 2016 08:48:18 +0200
From:   Eneko Anasagasti <eanasaga...@bcamath.org>
To:     slurm-dev@schedmd.com



Hi,

Thanks for your answer Paddy. Actually you were right about the user not been in a slurm account.

So I added it with the following comand

/sacctmgr -i add user testuser DefaultAccount=testgroup FairShare=100/

And now it will show up when listing associations but it still doesn't show in sreport...

I'm trying this:

/sreport cluster AccountUtilizationByUser Start=2016-03-01-00:00:00 End=2016-09-12-23:59:59 -t percent/

(I sent slurm jobs myself using this user to try to make them show in the report)

Thanks,


Eneko Anasagasti
IT Engineer
*BCAM -* Basque Center for Applied Mathematics
Alameda de Mazarredo, 14
E-48009 Bilbao, Basque Country - Spain
Tel. +34 946 567 842
eanasaga...@bcamath.org <mailto:eanasaga...@bcamath.org> | www.bcamath.org/eanasagasti <http://www.bcamath.org/eanasagasti>
*/
/*
*/(/*///matematika mugaz bestalde *)

*/
On 09/09/16 10:17, Paddy Doyle wrote:
Hi Eneko,

On Fri, Sep 09, 2016 at 12:12:32AM -0700, Eneko Anasagasti wrote:

Hi,

I just realized a user is missing from sreport, although it is perfectly
visible with sacct.

We are using slurm 15.8.7-1.1

After doing a small analysis I found out that this user wasn't a member of
the group object it should be in openldap.

So I add it where it belonged. But still this wasn't enough apparently.
I don't think that slurm would interact directly with LDAP. It's more likely
that the user is not in a slurm Account, as managed by sacctmgr. If your sreport
is something like "sreport cluster AccountUtilizationByUser..." then I think
users need to be in a slurm Account/Association before they are visible in that
report. Does the user show up in "sacctmgr list associations cluster=XX"?

As a wild guess, do you have a process that looks at a user's group membership
in LDAP and then adds them to a slurm Account? Perhaps that hadn't run yet for
the user?

I also tried using slurmreport but I am getting the following error

/Can't locate Slurm.pm in @INC/
I don't know what 'slurmreport' is, but that looks like a Perl include path
error. Maybe you need to install the slurm-perlapi package?

Thanks,
Paddy


Reply via email to