Hmm, aside from a possible timeout issue (I think it does take a while for
accounting info to be sent to the dbd -- is it sent every hour??), I wonder if
the test jobs you ran were definitely running in that account? The fact that you
used 'DefaultAccount=' when creating the association does suggest that the
account should have been in use though.

If you run 'scontrol show job NNNNN' when the job is running (or pending), does
it include 'Account=testgroup' in the output?

Paddy

On Mon, Sep 12, 2016 at 11:50:56PM -0700, Eneko Anasagasti wrote:

> 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
> [email protected] <mailto:[email protected]> |
> 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
> >
> 

-- 
Paddy Doyle
Trinity Centre for High Performance Computing,
Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
Phone: +353-1-896-3725
http://www.tchpc.tcd.ie/

Reply via email to