summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2017-10-06 09:50:30 +0200
committerManuel Buil <mbuil@suse.com>2017-10-06 09:50:30 +0200
commit95503c8d3aa79e64be4a68348436f3c64dc8464e (patch)
treec9915557a67eb2e0ba5b6f733e2e4d8cf5458952
parentd202010d4edc234e374e5d82eddd43a27baa835f (diff)
If the VM starts quickly, this check might fail
Sometimes VM starts very quickly and then it takes longer for this service to come up Change-Id: Ibc4ea47eb0b4b6655e338d1b85e6ed14e61d0064 Signed-off-by: Manuel Buil <mbuil@suse.com>
-rw-r--r--sfc/lib/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfc/lib/utils.py b/sfc/lib/utils.py
index 65b491be..ce57ad04 100644
--- a/sfc/lib/utils.py
+++ b/sfc/lib/utils.py
@@ -282,7 +282,7 @@ def assign_floating_ip(nova_client, neutron_client, instance_id):
return floating_ip
-def start_http_server(ip, iterations_check=5):
+def start_http_server(ip, iterations_check=10):
"""
Start http server on a given machine. Wait until the process exists
and until the port is up