Added retry for linux network interface
Related bug: PROD-19696
Change-Id: I407dee84f56b7613552f4fb91ffe11f3bb02af13
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index 05f9d04..3c56533 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -48,7 +48,9 @@
if (staticMgmtNet) {
salt.runSaltProcessStep(master, "* ${extra_tgt}", 'cmd.shell', ["salt-call state.sls linux.network; salt-call service.restart salt-minion"], null, true, 60)
}
- salt.enforceState(master, "I@linux:network:interface ${extra_tgt}", ['linux.network.interface'])
+ common.retry(2,5){
+ salt.enforceState(master, "I@linux:network:interface ${extra_tgt}", ['linux.network.interface'])
+ }
sleep(5)
salt.enforceState(master, "I@linux:system ${extra_tgt}", ['linux', 'openssh', 'ntp', 'rsyslog'])
salt.enforceState(master, "* ${extra_tgt}", ['salt.minion'], true, false, null, false, 60, 2)