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:
parent
3f42a8a687
commit
2cd2962c2b
|
@ -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__':
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue