summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>2016-09-14 15:32:02 +0300
committerGeorge Paraskevopoulos <geopar@intracom-telecom.com>2016-09-14 15:32:02 +0300
commita684becbcffc993322209b525a64f10ee10d7ab5 (patch)
treeb725f186ee61ce4da05342a90bc76e845c5d18bb
parentdb4d9e7b272a13616f233be606b25da4bd9d2af1 (diff)
Add delay after SF floating IP assignment
JIRA: https://jira.opnfv.org/browse/SFC-48 The assignment of floating IPs to service functions needs some time to complete, otherwise we get ssh failures Change-Id: Ia3e789be95d20801ee2c741a473d407e936f4fb6 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
-rwxr-xr-xtestcases/features/sfc/sfc.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py
index 8aa7bb9a0..c73d8b230 100755
--- a/testcases/features/sfc/sfc.py
+++ b/testcases/features/sfc/sfc.py
@@ -263,6 +263,11 @@ def main():
logger.error('Failed to obtain IPs, cant continue, exiting')
return
+ logger.info("Waiting 60 seconds for floating IP assignment")
+ for j in range(0, 6):
+ logger.debug("Test starting in {0} seconds".format(str((6 - j) * 10)))
+ time.sleep(10)
+
logger.debug("Floating IPs for SFs: %s..." % ips)
# SSH TO START THE VXLAN_TOOL ON SF1
@@ -325,11 +330,6 @@ def main():
shell=True,
stdout=subprocess.PIPE)
- logger.info("Waiting for 60 seconds before TEST")
- for j in range(0, 6):
- logger.info("Test starting in {0} seconds".format(str((6 - j) * 10)))
- time.sleep(10)
-
i = 0
# SSH TO EXECUTE cmd_client