Thanks for reporting this. I'll see if I can reproduce today. I am not sure why this one variable doesn't get cleared though. I am guessing you only tested this one and not others?
In any case I'll see what I can do, it is probably an easy fix that just wasn't set up correctly. Danny > -----Original Message----- > From: [email protected] [mailto:owner-slurm- > [email protected]] On Behalf Of Bjørn-Helge Mevik > Sent: Friday, March 25, 2011 2:27 AM > To: [email protected] > Subject: [slurm-dev] sacctmgr load clean does not clear GrpCPUs > > Now that you are close to releasing 2.2.4, and probably have nothing to > do, I thought I'd report another problem. :-) > > (This is on an unpatched 2.2.3.) It seems "sacctmgr load clean > file=foo" does not clear GrpCPUs settings for accounts. For instance: > > # sacctmgr show account grid withassoc > Account Descr Org Cluster Par Name > User Share GrpJobs GrpNodes GrpCPUs GrpSubmit GrpWall GrpCPUMins > MaxJobs MaxNodes MaxCPUs MaxSubmit MaxWall MaxCPUMins > QOS Def QOS > ---------- -------------------- -------------------- ---------- ---------- > ---------- --------- ------- -------- -------- --------- ----------- ------ > ----- ------- -------- -------- --------- ----------- ----------- --------- > ----------- --------- > grid virtual: parent acc+ grid titan root > 1 30 > 500 gridnormal gridnorm+ > grid virtual: parent acc+ grid titan > bhm 1 > 500 gridnormal gridnorm+ > > (I.e., the grid account has GrpCPUs=30.) > > # sacctmgr dump titan file=orig.dump > # cp orig.dump modified.dump > # emacs modified.dump ## remove the GrpCPUs=30 for grid > # grep 'Account - grid:' orig.dump modified.dump > orig.dump:Account - grid:Description='virtual: parent account for grid > cores':Organization='grid':DefaultQOS='gridnormal':Fairshare=1:GrpCPUs=30:Q > OS='gridnormal' > modified.dump:Account - grid:Description='virtual: parent account for grid > cores':Organization='grid':DefaultQOS='gridnormal':Fairshare=1:QOS='gridnor > mal' > # sacctmgr --immediate load clean file=modified.dump 2>&1 | tee grpcpus.log > # sacctmgr dump titan file=new.dump > # diff orig.dump new.dump > (no output) > # sacctmgr show account grid withassoc > Account Descr Org Cluster Par Name > User Share GrpJobs GrpNodes GrpCPUs GrpSubmit GrpWall GrpCPUMins > MaxJobs MaxNodes MaxCPUs MaxSubmit MaxWall MaxCPUMins > QOS Def QOS > ---------- -------------------- -------------------- ---------- ---------- > ---------- --------- ------- -------- -------- --------- ----------- ------ > ----- ------- -------- -------- --------- ----------- ----------- --------- > ----------- --------- > grid virtual: parent acc+ grid titan root > 1 30 > 500 gridnormal gridnorm+ > grid virtual: parent acc+ grid titan > bhm 1 > 500 gridnormal gridnorm+ > > So the GrpCPUs is still there. > > I've attached the orig.dump, as well as the log from the load command.
