In slurm.conf I configured a reboot command: # scontrol show config | grep Reboot RebootProgram = /usr/sbin/shutdown -r now However, when I ask Slurm to reboot a node by: # scontrol reboot x017 then the node is simply shut down and powered off, but it doesn't reboot and in stead goes to the power off state. It's as if the "shutdown --poweroff" default had been executed and the "-r" (reboot) flag is ignored. I have to subsequently power on the node to make it boot. Question: What's the correct configuration of RebootProgram to actually reboot a node?
This was fixed in commit 64c3fc37673 included since 17.02.3 tag, which allows the RebootProgram to have arguments. Previous versions don't allow that, you could either upgrade or workaround this by using /sbin/reboot. *** This ticket has been marked as a duplicate of ticket 3612 ***
(In reply to Alejandro Sanchez from comment #1) > This was fixed in commit 64c3fc37673 included since 17.02.3 tag, which > allows the RebootProgram to have arguments. Previous versions don't allow > that, you could either upgrade or workaround this by using /sbin/reboot. > > *** This bug has been marked as a duplicate of bug 3612 *** Thanks for the info. I didn't find bug 3612 while searching for bugs. Please close this case.
That bug is marked as a customer private bug, that's why you can't see it. But the issue was tracked there and solved in the mentioned commit.
I have confirmed that RebootProgram="/usr/sbin/reboot" works as expected on a CentOS 7.3 node.