From: George Paraskevopoulos Date: Wed, 14 Sep 2016 12:32:02 +0000 (+0300) Subject: Add delay after SF floating IP assignment X-Git-Tag: danube.1.RC1~407 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=a684becbcffc993322209b525a64f10ee10d7ab5;p=functest.git 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 --- 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