diff options
author | Michael Polenchuk <mpolenchuk@mirantis.com> | 2018-04-26 16:42:11 +0400 |
---|---|---|
committer | Michael Polenchuk <mpolenchuk@mirantis.com> | 2018-04-26 16:44:15 +0400 |
commit | 3bc1605a823400a80965f56ed9a502a8ce67b883 (patch) | |
tree | 6c95d4d3a907bcf4060980c2366216933a2c70b4 /mcp/config | |
parent | 2d2fbccbc5ae167319a9af636d96efaab8f9ae32 (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>
Diffstat (limited to 'mcp/config')
-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" |