During a minor update of a controller node, we list the
VIP hosted on the node and we force them to move away
with a pcs command.
The way we call the pcs command is racy, so change the
action to make sure the VIP move is performed only if
the VIP is still hosted on the node when we run the action.
Change-Id: Id379f4fe1668d01fdd5f91b46e2f75d7cdb577ae
Closes-Bug: #1921351
(cherry picked from commit 3da1e7661036a73c9f222bcdcc489912502d23cb)
(cherry picked from commit de98fdb208dac1cf01d474c4363f6e2177e22c7e)
Reviewed: https:/ /review. opendev. org/c/openstack /tripleo- heat-templates/ +/788601 /opendev. org/openstack/ tripleo- heat-templates/ commit/ eafdee6aedaab6d 210cd29970b0893 2f48221495
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/ussuri
commit eafdee6aedaab6d 210cd29970b0893 2f48221495
Author: Damien Ciabrini <email address hidden>
Date: Thu Mar 25 10:23:48 2021 +0100
HA: fix race when moving VIP during minor update
During a minor update of a controller node, we list the
VIP hosted on the node and we force them to move away
with a pcs command.
The way we call the pcs command is racy, so change the
action to make sure the VIP move is performed only if
the VIP is still hosted on the node when we run the action.
Change-Id: Id379f4fe1668d0 1fdd5f91b46e2f7 5d7cdb577ae c9f222bcdcc4899 12502d23cb) f01d474c4363f6e 2177e22c7e)
Closes-Bug: #1921351
(cherry picked from commit 3da1e7661036a73
(cherry picked from commit de98fdb208dac1c