Run dogtag:server in single thread
Replication races are possinble in dogtag during initial setup.
To avoid them run dogtag:server state in one thread.
Change-Id: Ia9c6a05eea204cb2a82637c181f23808f736987d
Related-Prod: PROD-26810
(cherry picked from commit 6f83b6b019efc92c46f8f5b9738ed41eb296fef5)
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index 5f2700a..a62503f 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -387,7 +387,8 @@
// Install DogTag server service
salt.enforceStateWithTest([saltId: master, target: "I@dogtag:server:role:master ${extra_tgt}", state: 'dogtag.server', testTargetMatcher: "I@dogtag:server ${extra_tgt}"])
- salt.enforceStateWithTest([saltId: master, target: "I@dogtag:server ${extra_tgt}", state: 'dogtag.server'])
+ // Run dogtag state on slaves in serial to avoid races during replications PROD-26810
+ salt.enforceStateWithTest([saltId: master, target: "I@dogtag:server ${extra_tgt}", state: 'dogtag.server', batch: 1])
// Install barbican server service
salt.enforceStateWithTest([saltId: master, target: "I@barbican:server:role:primary ${extra_tgt}", state: 'barbican.server', testTargetMatcher: "I@barbican:server ${extra_tgt}"])