Run aodh state one by one 53/46253/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Thu, 26 Oct 2017 08:46:58 +0000 (12:46 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Thu, 26 Oct 2017 11:41:19 +0000 (11:41 +0000)
Apply aodh state in consecutive order to avoid
a race condition with database synchronization.

Change-Id: I4684fbeaaba2c9780084e0a64fe6453bccfb67e0
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
(cherry picked from commit 9cfa75272ba2fd9abab416db1f22df5989c9959e)

mcp/config/states/openstack_ha

index 89733cc..9237cc0 100755 (executable)
@@ -58,7 +58,7 @@ wait_for 90 "salt -C 'I@mongodb:server and *01*' cmd.run 'mongo localhost:27017/
 salt -C 'I@mongodb:server and *01*' cmd.run 'mongo localhost:27017/admin --eval "rs.initiate()"'
 salt -C 'I@mongodb:server and *01*' state.sls mongodb
 
-salt -I 'aodh:server' state.sls aodh
+salt -I 'aodh:server' state.sls aodh -b 1
 salt -I 'ceilometer:server' state.sls ceilometer
 salt -I 'ceilometer:agent' state.sls ceilometer