From 8f6343fb8020a8e609f771b0a52d49dc2f1c4f43 Mon Sep 17 00:00:00 2001 From: George Paraskevopoulos Date: Thu, 22 Sep 2016 10:24:02 +0300 Subject: Increment counter in sfc_colorado1 Avoid infinite loop Change-Id: I2b024b188dcf0cdddb924c5bd13c9dfe81183bdd Signed-off-by: George Paraskevopoulos --- testcases/features/sfc/sfc_colorado1.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'testcases') diff --git a/testcases/features/sfc/sfc_colorado1.py b/testcases/features/sfc/sfc_colorado1.py index dc13436e..103d10b1 100755 --- a/testcases/features/sfc/sfc_colorado1.py +++ b/testcases/features/sfc/sfc_colorado1.py @@ -174,6 +174,7 @@ def main(): if instance is None: logger.error("Error while booting instance.") + iterator += 1 continue # Retrieve IP of INSTANCE instance_ip = instance.networks.get(NET_NAME)[0] @@ -191,6 +192,7 @@ def main(): if floatip_client is None: logger.error("Cannot create floating IP.") + iterator += 1 continue logger.info("Floating IP created: '%s'" % floatip_client) @@ -200,6 +202,7 @@ def main(): instance.id, floatip_client): logger.error("Cannot associate floating IP to VM.") + iterator += 1 continue # STARTING SECOND VM (server) ### @@ -217,6 +220,7 @@ def main(): if instance_2 is None: logger.error("Error while booting instance.") + iterator += 1 continue # Retrieve IP of INSTANCE instance_ip_2 = instance_2.networks.get(NET_NAME)[0] @@ -234,6 +238,7 @@ def main(): if floatip_server is None: logger.error("Cannot create floating IP.") + iterator += 1 continue logger.info("Floating IP created: '%s'" % floatip_server) @@ -244,6 +249,7 @@ def main(): instance_2.id, floatip_server): logger.error("Cannot associate floating IP to VM.") + iterator += 1 continue # CREATION OF THE 2 SF #### @@ -309,6 +315,7 @@ def main(): if not all(check): logger.error("Cannot establish SSH connection to the SFs") + iterator += 1 continue logger.info("SSH connectivity to the SFs established") -- cgit 1.2.3-korg