aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-03-21 03:17:15 +0000
committerGerrit Code Review <review@openstack.org>2015-03-21 03:17:15 +0000
commitf84c2b1705bf4568387a0e0e82327b221218fef5 (patch)
treeef0377ad90914ba530c783b1b35d9dc978e3f0fa /docs
parentad6026e0e11ab015218fa3e19206b42652d16da9 (diff)
parent1cb551435365c7e06cb605ff11417f0a43881f37 (diff)
downloadkolla-f84c2b1705bf4568387a0e0e82327b221218fef5.tar.gz
kolla-f84c2b1705bf4568387a0e0e82327b221218fef5.zip
Merge "Fix `wait_for` function in kolla-common.sh"
Diffstat (limited to 'docs')
-rw-r--r--docs/wait-for.md18
1 files changed, 0 insertions, 18 deletions
diff --git a/docs/wait-for.md b/docs/wait-for.md
deleted file mode 100644
index 3317c315f..000000000
--- a/docs/wait-for.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# Wait-for function
-
-The usage of the wait_for function looks like the following
- $ SCRIPT_NAME LOOPS_NUMBER SLEEP_TIME ARGS
-
-The ARGS are read and concatenated together into a single command
-and the command is executed in a loop until it succeeds or reaches
-the max number of attempts (LOOPS_NUMBER).
-
-An optional FAIL_MATCH_OUTPUT variable may also be set to control
-if the loop exits early if the commands stdout/stderr matches the
-supplied regex string.
-Examples:
- $ wait_for 30 10 ping -c 1 192.0.2.2
- $ wait_for 10 1 ls file_we_are_waiting_for
- $ wait_for 10 3 date \| grep 8
- $ FAIL_MATCH_OUTPUT=CREATE_FAILED wait_for 30 10 heat stack-show undercloud
- $ SUCCESSFUL_MATCH_OUTPUT=CREATE_COMPLETE wait_for 30 10 heat stack-show undercloud