diff options
author | Michael Polenchuk <mpolenchuk@mirantis.com> | 2018-04-26 16:42:11 +0400 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2018-04-26 13:21:17 +0000 |
commit | 5ccfb79098c726477e9a07dad2a57e0693bf6ba6 (patch) | |
tree | f181c26a09ad404ac87c89bafa59c681a8ec6adf /mcp | |
parent | cfba3e9da448ebf47b7cea77d3335277d9b3c96b (diff) |
Run galera state on slave nodes one by one
Apply galera state in consecutive order to avoid
a race condition with database initialization.
Change-Id: I877bad38777d8469c03cee3b7e96acc875a3a72a
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
(cherry picked from commit 3bc1605a823400a80965f56ed9a502a8ce67b883)
Diffstat (limited to 'mcp')
-rwxr-xr-x | mcp/config/states/openstack_ha | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp/config/states/openstack_ha b/mcp/config/states/openstack_ha index 07bd6b48b..77063d6c8 100755 --- a/mcp/config/states/openstack_ha +++ b/mcp/config/states/openstack_ha @@ -25,7 +25,7 @@ salt -I 'glusterfs:server' cmd.run "gluster peer status; gluster volume status" salt -I 'glusterfs:client' state.sls glusterfs.client salt -I 'galera:master' state.sls galera -salt -I 'galera:slave' state.sls galera +salt -I 'galera:slave' state.sls galera -b 1 salt -I 'galera:master' mysql.status | grep -A1 wsrep_cluster_size wait_for 3.0 "salt -I 'memcached:server' state.sls memcached" |