Ticket 3932 - RebootProgram shutdown -r powers off the node in stead of rebooting it
Summary: RebootProgram shutdown -r powers off the node in stead of rebooting it
Status: RESOLVED DUPLICATE of ticket 3612
Alias: None
Product: Slurm
Classification: Unclassified
Component: Configuration (show other tickets)
Version: 16.05.10
Hardware: Linux Linux
: 3 - Medium Impact
Assignee: Director of Support
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2017-06-27 06:22 MDT by Ole.H.Nielsen@fysik.dtu.dk
Modified: 2017-06-27 06:57 MDT (History)
1 user (show)

See Also:
Site: DTU Physics
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
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.