Freeze HA scoring and document reported production failover

This commit is contained in:
Lyncoln
2026-09-12 18:07:28 -04:00
parent c8636ed6d4
commit 488a1672d7
29 changed files with 2285 additions and 46 deletions
+11 -12
View File
@@ -13,6 +13,9 @@
: "${OCF_ROOT:=/usr/lib/ocf}"
OCF_FUNCTIONS_DIR="${OCF_ROOT}/lib/heartbeat"
# Preserve explicit resource identity before ocf-shellfuncs supplies its
# standalone-invocation default; never publish a score for that dummy resource.
MC_PROMOTION_RESOURCE_INSTANCE="${OCF_RESOURCE_INSTANCE:-}"
. "${OCF_FUNCTIONS_DIR}/ocf-shellfuncs"
# Pacemaker uses "Promoted" terminology, while many OCF shell libraries
@@ -33,40 +36,37 @@ unset MC_MODULE
case "$1" in
meta-data)
meta_data
mc_promotion_metadata
exit "${OCF_SUCCESS}"
;;
validate-all)
validate_all
mc_promotion_validate
exit $?
;;
monitor|status)
managed_monitor
mc_promotion_monitor
exit $?
;;
start)
validate_all || exit $?
managed_start
mc_promotion_action start
exit $?
;;
stop)
managed_stop
mc_promotion_action stop
exit $?
;;
promote)
validate_all || exit $?
managed_promote
mc_promotion_action promote
exit $?
;;
demote)
validate_all || exit $?
managed_demote
mc_promotion_action demote
exit $?
;;
@@ -76,8 +76,7 @@ case "$1" in
;;
rejoin)
validate_all || exit $?
managed_rejoin
mc_promotion_action rejoin
exit $?
;;