Switching salt.minion states to be executed one by one
Due to the fact that some certificates are placed in cookiecutter
on glusterfs, if they are being managed from 2 nodes in the same time
it leads to errors during deployment due to race conditions.
Change-Id: Ib3bfb734de0ed3ade3d46251002054e357cf0c49
Related-Prod: https://mirantis.jira.com/browse/PROD-25796
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index dea0366..d18ebb5 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -284,7 +284,10 @@
// Install sphinx server
salt.enforceStateWithTest(master, "I@sphinx:server ${extra_tgt}", 'sphinx')
- salt.enforceStateWithTest(master, "I@nginx:server ${extra_tgt}", 'salt.minion')
+ // Running minion states in a batch to avoid races related to certificates which are placed on glusterfs
+ // Details on races: https://mirantis.jira.com/browse/PROD-25796
+ // TODO: Run in parallel when glusterfs for certificates is dropped in cookiecutter
+ salt.enforceStateWithTest(master, "I@nginx:server ${extra_tgt}", 'salt.minion', '', true, true, 1)
salt.enforceStateWithTest(master, "I@nginx:server ${extra_tgt}", 'nginx')
// setup keystone service