Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable NHC to handle Slurm boot node state #83

Closed
wants to merge 1 commit into from

Conversation

hintron
Copy link

@hintron hintron commented Apr 10, 2019

Add boot node state to node online and offline script.
Properly handle scontrol reboot asap so Slurm doesn't erroneously
online a node after the first NHC call after a reboot.

For context, see #81 and
https://bugs.schedmd.com/show_bug.cgi?id=6391

scontrol reboot asap will set the node state to REBOOT+DRAIN and reason to Reboot ASAP. Then, after boot, and after NHC runs once, Slurm will set the node base state to IDLE. If reason == Reboot ASAP, Slurm will also clear the DRAIN flag. We want NHC to clear the DRAIN flag, not Slurm, so delete the Reboot ASAP reason by not preserving it below. See https://slurm.schedmd.com/scontrol.html --> reboot.

Add `boot` node state to node online and offline script.
Properly handle `scontrol reboot asap` so Slurm doesn't erroneously
online a node after the first NHC call after a reboot.

For context, see mej#81 and
https://bugs.schedmd.com/show_bug.cgi?id=6391
@hintron
Copy link
Author

hintron commented Apr 10, 2019

Sorry, turns out I needed another piece of code. I will force push shortly.

@hintron
Copy link
Author

hintron commented Apr 10, 2019

Sorry, I found some things that need to be reworked. I'll reopen this once I have things figured out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant