Add delay after SF floating IP assignment 29/21129/1
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>
Wed, 14 Sep 2016 12:32:02 +0000 (15:32 +0300)
committerMorgan Richomme <morgan.richomme@orange.com>
Wed, 14 Sep 2016 13:27:33 +0000 (13:27 +0000)
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>
(cherry picked from commit a684becbcffc993322209b525a64f10ee10d7ab5)

testcases/features/sfc/sfc.py

index 8aa7bb9..c73d8b2 100755 (executable)
@@ -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