Change delay for salt minion discovery from 0.5s with 200 retries to 1s with 180 retries, on slower environment e.g. labs is not enough
Change-Id: I940a53f9a6ad9e264d8751c3310b869ba8110006
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index ba97f80..0f81287 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -261,7 +261,7 @@
* @param answers how many minions should return (optional, default 1)
* @return output of salt command
*/
-def minionPresent(saltId, target, minion_name, waitUntilPresent = true, batch=null, output = true, maxRetries = 200, answers = 1) {
+def minionPresent(saltId, target, minion_name, waitUntilPresent = true, batch=null, output = true, maxRetries = 180, answers = 1) {
minion_name = minion_name.replace("*", "")
def common = new com.mirantis.mk.Common()
common.infoMsg("Looking for minion: " + minion_name)
@@ -281,7 +281,7 @@
return out
}
count++
- sleep(time: 500, unit: 'MILLISECONDS')
+ sleep(time: 1000, unit: 'MILLISECONDS')
common.infoMsg("Waiting for ${cmd} on ${target} to be in correct state")
}
} else {