Ticket 3932

Summary: RebootProgram shutdown -r powers off the node in stead of rebooting it
Product: Slurm Reporter: Ole.H.Nielsen <Ole.H.Nielsen>
Component: ConfigurationAssignee: Director of Support <support>
Status: RESOLVED DUPLICATE QA Contact:
Severity: 3 - Medium Impact    
Priority: --- CC: alex
Version: 16.05.10   
Hardware: Linux   
OS: Linux   
Site: DTU Physics Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Ole.H.Nielsen@fysik.dtu.dk 2017-06-27 06:22:00 MDT
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?
Comment 1 Alejandro Sanchez 2017-06-27 06:35:40 MDT
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 ***
Comment 2 Ole.H.Nielsen@fysik.dtu.dk 2017-06-27 06:46:07 MDT
(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.
Comment 3 Alejandro Sanchez 2017-06-27 06:52:13 MDT
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.
Comment 4 Ole.H.Nielsen@fysik.dtu.dk 2017-06-27 06:57:02 MDT
I have confirmed that

RebootProgram="/usr/sbin/reboot"

works as expected on a CentOS 7.3 node.