Hi,

I really like the Licenses feature which slurm has and am hoping to
make use of it shortly.  I particularly like the ability to return a
license by using scontrol update to change the number of licenses for
a running job. I notice that is only permitted by the root or
SlurmUser when specifying a string. But I also notice I am able to
crash the slurm controller with the empty string as a user.


drdws0115:~$ scontrol show -o JobId=312  | awk ' { print $42 }'
Licenses=pitstop*4

drdws0115:~$ sudo -u slurmcl2 /opt/slurmcl2/bin/scontrol update
JobId=312 Licenses="pitstop*1"

drdws0115:~$ scontrol show -o JobId=312  | awk ' { print $42 }'
Licenses=pitstop*1

# Great worked as expected!

drdws0115:~$ sudo -u slurmcl2 /opt/slurmcl2/bin/scontrol update
JobId=312 Licenses="pitstop*0"
slurm_update error: Invalid license specification
# I need to use the emptry string because 0 is not allowed


drdws0115:~$ sudo -u slurmcl2 /opt/slurmcl2/bin/scontrol update
JobId=312 Licenses=""
drdws0115:~$ scontrol show -o JobId=312  | awk ' { print $42 }'
Licenses=
# Again great worked as expected

drdws0115:~$ /opt/slurmcl2/bin/scontrol update JobId=312 Licenses=""
scontrol: error: slurm_receive_msg: Zero Bytes were transmitted or received
slurm_update error: Zero Bytes were transmitted or received

Can other people see this problem too? What additional information
could I provide to help fix this?

drdws0115:~$ /opt/slurmcl2/bin/scontrol version
slurm 2.2.7
drdws0115:~$ uname -a
Linux drdws0115.nyc.desres.deshaw.com 2.6.18-238.12.1.el5 #1 SMP Tue
May 31 13:22:04 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
drdws0115:~$ cat /etc/redhat-release
CentOS release 5.6 (Final)

drdws0115:~$ /opt/slurmcl2/bin/scontrol show config | grep SlurmUser
SlurmUser               = slurmcl2(406)

Best,
Chris

Reply via email to