11 Commits

Author SHA1 Message Date
Erik Thuning
8316968deb Made several values relating to timeouts and polling configurable
Also removed unnecessary declarations of instance variables on
ProxManager, only keeping the ones that aren't set directly in
__init__ around for greater visibility.
2026-02-18 15:24:37 +01:00
Erik Thuning
266c528ed2 Implemented handling of the noout flag on reboots
noout will now be set on ceph before rebooting a node. Once the node
is back up, the script will wait until ceph reports no issues apart
from noout being set before unsetting the flag and moving on to the
next node.
2026-02-13 15:22:32 +01:00
Erik Thuning
2e19d61783 Changed verbosity level of some messages and made the -q flag actually do something 2026-02-13 15:21:14 +01:00
Erik Thuning
3964799e8c Implemented handling of authentication to multiple clusters
Each cluster now has an "auth.<cluster>" section in config.ini.
2026-02-13 13:59:54 +01:00
Erik Thuning
e9eda0999f Cosmetic: Wrapped long output lines
Also made some messages look more consistent
2026-02-13 13:58:37 +01:00
Erik Thuning
c2460b3d36 Added an info message for when no failed services are found 2026-02-10 14:32:33 +01:00
Erik Thuning
44bc9bb53f Added a fix-services command
The command checks for failed services and attempts to restart
them. Can target the entire cluster or a specific node.
2026-02-10 14:29:39 +01:00
Erik Thuning
2f66393f93 Changed verbosity level on some messages 2026-02-10 14:29:00 +01:00
Erik Thuning
77a154b7dc Fixed the reboot timing issue
The script will now consistently wait long enough after triggering a
reboot to ensure the node has gone down before starting to poll for
the node being back up again.
2026-02-10 14:26:34 +01:00
Erik Thuning
2bc35bbb81 Implemented command-line options, configuration and improved logging
Moved to http backend from ssh, which seems to be causing some issues
with reboot timing
2026-02-10 12:26:36 +01:00
Erik Thuning
099bac19e6 Initial commit
The script successfully reboots a cluster without disrupting guests
when run, but needs expansion to remove hardcoding of various things
2026-02-06 10:59:30 +01:00