show-status: footer listing fenced nodes (maintenance windows)
Fenced nodes are dropped from COMPOSE_FILE so show-status silently omitted them - a fenced-but-running node looked 'gone'. rpc-update now writes /root/rpc/.fenced (node | until | reason | owner per active window); print it as a footer. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -79,6 +79,16 @@ for pid in "${pids[@]}"; do
|
||||
wait "$pid"
|
||||
done
|
||||
|
||||
# Fenced nodes (fleet-state maintenance windows) are dropped from COMPOSE_FILE
|
||||
# by rpc-update, so they never appear above even though their containers keep
|
||||
# running. The .fenced marker is written by the same rpc-update task that
|
||||
# fences them and is rewritten every reconcile (empty once windows expire).
|
||||
if [ -s "$BASEPATH/.fenced" ]; then
|
||||
echo ""
|
||||
echo "Fenced (maintenance window - running but unmanaged, not checked above):"
|
||||
sed 's/^/ /' "$BASEPATH/.fenced"
|
||||
fi
|
||||
|
||||
# If any invocation failed, return a failure exit code
|
||||
if $any_failure; then
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user