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 14:45:00 +0000
commit5e51b205160f869b94ab2e83815413950ae76631 (patch)
tree9ee46e693138f7e48124472faa2dde05621313ec
parentad1d1bfd5cf2c2e18248f40169b437861c5abf41 (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> (cherry picked from commit 95503c8d3aa79e64be4a68348436f3c64dc8464e)
-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