Hello all!

I've been working on getting off the ground with Lua plugins. The goal is
to implement Torque's routing queues for SLURM, but so far I have been
unable to get SLURM to even call my plugin.

What I have tried:
1) Copied contrib/lua/job_submit.lua to /etc/slurm/ (the same directory as
slurm.conf)
2) Restarted slurmctld and verified that no functionality was broken
3) Added slurm.log_info("I got here") to several points in the script.
After restarting slurmctld and submitting a job, grep "I got here" -R
/var/log found no results.
4) In case there was a problem with the log file, I added os.execute("touch
/home/myUser/slurm_job_submitted") to the top of the slurm_job_submit
method. Restarting slurmctld and submitting a job still produced no
evidence that my plugin was called.
5) In case there were permission issues, I made job_submit.lua executable.
Nothing. Even grep "job_submit" -R /var/log (in case there was an error
calling the script) comes up dry.

Relevant information:
OS: Ubuntu 16.04
Lua: lua5.2 and liblua5.2-dev (I can use Lua interactively)
SLURM version: 17.02.5, compiled from source (after installing Lua) using
./configure --prefix=/usr --sysconfdir=/etc/slurm

Any guidance to get me up and running would be greatly appreciated!

Thanks,
Nathan

Reply via email to