From 5ccfb79098c726477e9a07dad2a57e0693bf6ba6 Mon Sep 17 00:00:00 2001 From: Michael Polenchuk Date: Thu, 26 Apr 2018 16:42:11 +0400 Subject: 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 (cherry picked from commit 3bc1605a823400a80965f56ed9a502a8ce67b883) --- mcp/config/states/openstack_ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mcp/config/states/openstack_ha') 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" -- cgit 1.2.3-korg