-
Notifications
You must be signed in to change notification settings - Fork 569
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
[NodeKiller] Schedule reboot and disconnect from node #1109
[NodeKiller] Schedule reboot and disconnect from node #1109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this is great!
// 'nohup' - Making sure that end of SSH connection signal will not break sudo | ||
// 'sudo' - Elevated priviliages, required by 'reboot' | ||
// 'reboot' - Rebooting node | ||
// '+1s' - Parameter to 'reboot', to wait 1 second before rebooting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be wrong but I'm not sure whether reboot accepts such parameter. I checked sudo reboot --help
on COS system and such feature wasn't documented anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, this should use shutdown
command.
clusterloader2/pkg/chaos/nodes.go
Outdated
// 'sudo' - Elevated priviliages, required by 'reboot' | ||
// 'reboot' - Rebooting node | ||
// '+1s' - Parameter to 'reboot', to wait 1 second before rebooting. | ||
// '> /dev/null 2> /dev/null < /dev/null' - File descriptor redirect, as we are closing terminal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The explanation is not very clear. Wouldn't be better to write something like:
// redirect all three I/O to avoid ssh hanging, see https://web.archive.org/web/20090429074212/http://www.openssh.com/faq.html#3.10
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this comment
ccec805
to
f1647f4
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jprzychodzen, mm4tt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
1 similar comment
/retest |
No description provided.