rename: fix remaining failover refs in fallback.sh, fallback_test.sh, array_started.sh, user_script_plug-in.sh

This commit is contained in:
Gmer4Lfe
2026-06-01 20:05:02 -04:00
parent cb7d7a688d
commit f8325a7067
4 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -370,7 +370,7 @@ _abort_fallback_containers() {
# ==============================================================================================
# All docker commands wrapped in DOCKER_TIMEOUT.
# All SSH docker commands wrapped in SSH_TIMEOUT.
# Verification after start — failover is critical, confirm containers came up.
# Verification after start — fallback is critical, confirm containers came up.
# Start a container locally and verify it came up
local_start() {
@@ -996,7 +996,7 @@ while [[ "$FALLBACK_RUNNING" == true ]]; do
"Fallback" "warning"
else
# Still in failover — check tier escalation
# Still in FALLBACK state — check tier escalation
state_set handback_strikes "0"
TIER2_DELAY=$(get_tier2_delay)
@@ -1092,7 +1092,7 @@ while [[ "$FALLBACK_RUNNING" == true ]]; do
if [[ "$REMOTE_UP" == true ]]; then
warn "Remote up, internet up — transitioning through FALLBACK for handback"
# Was in failover before DARK — route through FALLBACK state for handback
# Was in FALLBACK state before DARK — route through FALLBACK state for handback
state_set state "FALLBACK"
state_set handback_strikes "0"
else
+2 -2
View File
@@ -148,7 +148,7 @@ if [[ "$EUID" -ne 0 ]]; then
exit 1
fi
# FALLBACK_ENABLED gate — no point testing if failover is disabled
# FALLBACK_ENABLED gate — no point testing if fallback is disabled
if [[ "${FALLBACK_ENABLED:-false}" == false ]]; then
warn "FALLBACK_ENABLED=false — fallback test aborted"
warn "Enable fallback in master.conf before running this test"
@@ -226,7 +226,7 @@ TOTAL_START=$(date +%s)
phase_pass() { PHASES_PASS+=("$1"); warn "$ICON_DONE Phase: $1 — PASSED ✅"; }
phase_fail() { PHASES_FAIL+=("$1"); error "Phase: $1 — FAILED ❌"; }
# Get Tier 1 containers for this server's failover responsibility
# Get Tier 1 containers for this server's fallback responsibility
TIER1_VAR="FALLBACK_${MY_ID}_COVERS_${REMOTE_ID}_TIER1"
eval "TIER1_CONTAINERS=(\"\${${TIER1_VAR}[@]:-}\")"