There appears to be a window between a pacemaker remote resource
being added and the location properties for that resource being
added. In this window the resource is down and pacemaker may fence
the node.
The window is present because the charm charm currently does:
1) Set stonith-enabled=true cluster property
2) Add maas stonith device that controls pacemaker remote node that
has not yet been added.
3) Add pacemaker remote node
4) Add pacemaker location rules.
I think the following two fixes are needed:
1) For initial deploys update the charm so it does not enable stonith
until stonith resources and pacemaker remotes have been added.
2) For scale-out do not add the new pacemaker remote stonith resource
until the corresponding pacemaker resource has been added along
with its location rules.
Reviewed: https:/ /review. opendev. org/749686 /git.openstack. org/cgit/ openstack/ charm-hacluster /commit/ ?id=e02c6257ae1 27c86d5c5bc4104 5b6cd841a46fbe
Committed: https:/
Submitter: Zuul
Branch: master
commit e02c6257ae127c8 6d5c5bc41045b6c d841a46fbe
Author: Liam Young <email address hidden>
Date: Wed Sep 9 09:30:46 2020 +0000
Fix adding of stonith controlled resources.
There appears to be a window between a pacemaker remote resource
being added and the location properties for that resource being
added. In this window the resource is down and pacemaker may fence
the node.
The window is present because the charm charm currently does:
1) Set stonith- enabled= true cluster property
2) Add maas stonith device that controls pacemaker remote node that
has not yet been added.
3) Add pacemaker remote node
4) Add pacemaker location rules.
I think the following two fixes are needed:
1) For initial deploys update the charm so it does not enable stonith
until stonith resources and pacemaker remotes have been added.
2) For scale-out do not add the new pacemaker remote stonith resource
until the corresponding pacemaker resource has been added along
with its location rules.
Depends-On: Ib8a667d0d82ef3 dcd4da27e62460b 4f0ce32ee43 0bfc7859a7d0ea2 39203bbc490
Change-Id: I7e2f568d829f6d
Closes-Bug: #1884284