aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/config/states/dpdk
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-12-31 19:35:17 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-01-08 00:43:04 +0100
commit2b7c862e8c668d8fabc784680b05bec75baff2c6 (patch)
tree689c0b55659d49b2644672c3f71973b52c9371e4 /mcp/config/states/dpdk
parentf25c19f7a3f90f2cf11f1352772756dadbe95bcc (diff)
lib.sh: Extend wait_for function to catch no resp
wait_for function should be able to also check for minions that did not return or not respond, in addition to the return code. To keep it backwards compatible, condition the new check on the max attempt number being specified in decimal format (e.g. '10.0' unlike old '10'). Change-Id: If2512cf9121cdd795638efe7362ef0485d4e8d91 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit 3f559299c232bbb7639d02243c95d6256cdf94d4)
Diffstat (limited to 'mcp/config/states/dpdk')
-rwxr-xr-xmcp/config/states/dpdk3
1 files changed, 1 insertions, 2 deletions
diff --git a/mcp/config/states/dpdk b/mcp/config/states/dpdk
index eb00d7279..1b2d269bc 100755
--- a/mcp/config/states/dpdk
+++ b/mcp/config/states/dpdk
@@ -13,8 +13,7 @@ CI_DEBUG=${CI_DEBUG:-0}; [[ "${CI_DEBUG}" =~ (false|0) ]] || set -x
source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh"
salt -I 'nova:compute' system.reboot
-wait_for 90 "! salt -I 'nova:compute' test.ping | " \
- "tee /dev/stderr | grep -Fq 'Not connected'"
+wait_for 90.0 "salt -I 'nova:compute' test.ping"
salt -I 'nova:compute' state.sls linux.network
# switch to UCA repos since fuel-infra packages have bugs