Anyone have a nice simple example showing
AccountingStorageEnforce=associations working?
I compiled 2.6.3 and tried inside sacctmgr:
add cluster testcluster
add account testaccount
add user testuser cluster=testcluster account=testaccount \
defaultaccount=testaccount partition=debug
That last line results in:
sacctmgr: add user testuser cluster=testcluster account=testaccount
defaultaccount=testaccount partition=debug
Adding User(s)
testuser
Settings =
Default Account = testaccount
Associations =
U = testuser A = testaccoun C = testcluste P = debug
Non Default Settings
sacctmgr:
So it looks like testuser has an association with testaccount on
testcluster, on partition debug.
In slurm.conf I have:
AccountingStorageEnforce=associations
Sinfo shows my debug partition:
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
debug* up infinite 8 idle c0-[1-8]
But when the test user tried to submit a job:
$ srun -Atestaccount -p debug hostname
srun: error: Unable to allocate resources: Invalid account or
account/partition combination specified
In the slurmctl logs:
[2013-10-17T18:13:13.128] _job_create: invalid account or partition for
user 1010, account 'testaccount', and partition 'debug'
[2013-10-17T18:13:13.128] _slurm_rpc_allocate_resources: Invalid account
or account/partition combination specified
sacctmgr: list associations where user=testuser
Cluster Account User Partition Share GrpJobs GrpNodes
GrpCPUs GrpMem GrpSubmit GrpWall GrpCPUMins MaxJobs MaxNodes
MaxCPUs MaxSubmit MaxWall MaxCPUMins QOS Def QOS
---------- ---------- ---------- ---------- --------- ------- --------
-------- ------- --------- ----------- ----------- ------- --------
-------- --------- ----------- ----------- -------------------- ---------
testclust+ testaccou+ testuser debug 1
normal
Any ideas?