-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add option to enable persistence to the status, to allow restart-ability to the script #4
base: master
Are you sure you want to change the base?
Conversation
…handle "legit" (200) exits without a status change.
… be restartable and will pick up where it left off
…vice 2. fix initial state of None to "NONE" for persistance
@spkesan - do you have some time to review and merge this? thanks! :) |
@realmgic |
Hi @realmgic Let's say:
When you observed the script hung or exited unexpectedly, did you check or collect the log file ( |
Hi @spkesan, When the script (or actually, the systemd service which runs it) is restarted, we don't know what was the last state we observed and what is the cluster state. In that specific case, the service was stopped after maintenance flag was raised but before we got the What I did is to persist the fact that the last state we saw was maintenance (saved to a file) so when we come back, we can check for that and undo the quiesce modes that might be there (if we get |
In some cases the script exits (or hangs) on various (unknown) reasons, leaving the cluster in quiesce mode. Saving the state to a file will allow restarting the script and if the node is out of maintenance mode, it will automatically undo the quiesce.