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

updating reboot logic to minimize the chance of an unnecessary reboot #203

Conversation

aleiner
Copy link
Contributor

@aleiner aleiner commented Apr 12, 2024

Existing code would reboot a server at install time due to sysctl changes. It turns out that a reboot is only necessary if RKE2 is already running.

What type of PR is this?

  • bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

Updates the reboot logic to check to see if RKE2 is running. If it is, and sysctl updates, reboot the host. Otherwise just restart sysctl.

Which issue(s) this PR fixes:

Fixes #199

Release Notes

NONE

@aleiner aleiner linked an issue Apr 12, 2024 that may be closed by this pull request
@mddamato mddamato merged commit 15f5087 into main Apr 12, 2024
2 of 5 checks passed
@aleiner aleiner deleted the 199-re-evaluate-the-necessity-to-reboot-a-node-after-making-sysctl-changes branch April 12, 2024 17:15
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.

Re-evaluate the necessity to reboot a node after making sysctl changes
2 participants