Hi,
Having used
https://github.com/giovtorres/slurm-docker-cluster
successfully a couple of years ago to develop a job_submit.lua plugin, I am trying to do this again.
However, the plugin which works on our current cluster (CentOS 7.9, Slurm 23.02.7) fails in the Docker cluster (Rocky 8.9, Slurm 23.02.7) with
error: job_submit/lua: /etc/slurm/job_submit.lua: /usr/share/lua/5.3/posix/deprecated.lua:453: bad argument #1 to 'getpwuid' (int expected, got number)
which occurs when
submit_user = posix.getpasswd(submit_user.uid)
The problems is that 'submit_user.uid' has the value
0.0
and is thus not an integer. The only user within the Docker cluster is 'root'.
Has anyone come across this issue? Is it to do with the Docker environment or the difference in the OS versions (Lua 5.1.4 vs. 5.3.4, lua-posix 32 vs. 33.3.1)?
Cheers,
Loris