Archived
fix(ha): use crm_mon for Active node detection and add cleanup before VIP wait
Check NixOS configurations / eval-hosts (push) Successful in 10m26s
Check NixOS configurations / eval-hosts (push) Successful in 10m26s
acceptance-tests.sh: replace drbdadm-role-based Active node detection with crm_mon-based detection. DRBD role briefly reads Secondary during Pacemaker transitions, causing T2/T3/T4 to target the wrong node. crm_mon Promoted:/ Masters: lines are authoritative; wait up to 90 s for Pacemaker to settle before falling back to NODE1. cluster-init.sh: add crm_resource --cleanup before the VIP wait loop so stale migration-threshold failure counters from previous cluster-init runs are cleared before Pacemaker decides resource placement. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -399,6 +399,9 @@ cibadmin --replace --scope constraints --xml-text '<constraints>
|
||||
<rsc_colocation id="coloc-group-with-drbd" score="INFINITY" rsc="ha-group" with-rsc="ms-drbd0" with-rsc-role="Promoted"/>
|
||||
</constraints>'
|
||||
|
||||
log "Clearing stale Pacemaker failure history..."
|
||||
crm_resource --cleanup 2>/dev/null || true
|
||||
|
||||
log "Waiting for resources to start..."
|
||||
for i in $(seq 1 60); do
|
||||
if crm_resource -r vip --locate 2>/dev/null | grep -q "running on"; then
|
||||
|
||||
Reference in New Issue
Block a user