update
This commit is contained in:
+13
-1
@@ -6,6 +6,7 @@
|
||||
source /opt/idssys/defaults/default.inc
|
||||
source /opt/idssys/ta-proxmenu/defaults.inc
|
||||
source /opt/idssys/ta-proxmenu/inc/git-update.inc
|
||||
source /opt/idssys/ta-proxmenu/inc/ha-status.inc
|
||||
source /opt/idssys/ta-proxmenu/inc/deploy-iso-nfs-lxc.sh
|
||||
source /opt/idssys/ta-proxmenu/inc/deploy-pulse-lxc.sh
|
||||
source /opt/idssys/ta-proxmenu/inc/virtio-helpers.inc
|
||||
@@ -1948,9 +1949,20 @@ MONITORING_MENU() {
|
||||
CLUSTER_MENU() {
|
||||
local -a labels
|
||||
local -a values=("maintenance" "services" "keepalived" "iso_nfs")
|
||||
local maintenance_status
|
||||
local node
|
||||
|
||||
while true; do
|
||||
if ha-manager status | grep -F "$(hostname -s)" | grep -q "maintenance mode"; then
|
||||
node="$(hostname -s)"
|
||||
TAPM_HA_NODE_IN_MAINTENANCE "$node"
|
||||
maintenance_status=$?
|
||||
if (( maintenance_status == 2 )); then
|
||||
ha-manager status |
|
||||
grep -F "$node" |
|
||||
grep -q "maintenance mode"
|
||||
maintenance_status=$?
|
||||
fi
|
||||
if (( maintenance_status == 0 )); then
|
||||
labels=("Take this host out of maintenance mode")
|
||||
else
|
||||
labels=("Put this host into maintenance mode and evacuate guests")
|
||||
|
||||
Reference in New Issue
Block a user