Browse Source

Merge "HA: fix race when moving VIP during minor update"

changes/33/785233/1
Zuul 1 year ago committed by Gerrit Code Review
parent
commit
c76182cb3a
  1. 2
      deployment/pacemaker/pacemaker-baremetal-puppet.yaml

2
deployment/pacemaker/pacemaker-baremetal-puppet.yaml

@ -349,7 +349,7 @@ outputs:
VIPS_TO_MOVE=$(crm_mon --as-xml | xmllint --xpath '//resource[@resource_agent = "ocf::heartbeat:IPaddr2" and @role = "Started" and @managed = "true" and ./node[@name = "'${CLUSTER_NODE}'"]]/@id' - | sed -e 's/id=//g' -e 's/"//g')
for v in ${VIPS_TO_MOVE}; do
echo "Moving VIP $v on another node"
pcs resource move $v --wait=300
pcs resource ban $v ${CLUSTER_NODE} --wait=300
done
echo "Removing the location constraints that were created to move the VIPs"
for v in ${VIPS_TO_MOVE}; do

Loading…
Cancel
Save