Do not attempt to remove a unit during clustering

Do not attempt to remove a node while in the act of clustering.

Change-Id: Id30ba53b17fb015e8336127ab1479faf7d8f4779
Partial-Bug: #1818260
(cherry picked from commit f1c3deac35)
This commit is contained in:
David Ames 2020-06-01 14:00:05 -07:00
parent 3f42a8a687
commit 2cd2962c2b
2 changed files with 4 additions and 2 deletions

View File

@ -964,7 +964,9 @@ def update_status():
#
# Have a look at the docstring of the stop() function for detailed
# explanation.
if is_leader() and not is_unit_paused_set():
kvstore = kv()
if (is_leader() and not is_unit_paused_set() and not
kvstore.get(INITIAL_CLIENT_UPDATE_KEY, False)):
rabbit.check_cluster_memberships()
if __name__ == '__main__':

View File

@ -33,7 +33,7 @@ applications:
options:
openstack-origin: *openstack-origin
percona-cluster:
charm: cs:~openstack-charmers/percona-cluster-340
charm: cs:~openstack-charmers/trusty/percona-cluster
num_units: 1
options:
source: *openstack-origin