diff options
author | 2016-07-26 18:56:05 +0200 | |
---|---|---|
committer | 2016-07-26 21:15:13 +0000 | |
commit | 91fc1fc908acf29d3c65058ff8a0570036286fc9 (patch) | |
tree | f0711016bfa15f26935a68b732e1e6aec82e23b0 /testcases/features/sfc/sfc.py | |
parent | 20b9b2e3841172f13b8674bfb9f217b7fd6b6529 (diff) |
Bug fix for ODL-SFC testcase
The vxlan_tool was sometimes not started properly in the SFs. Now we check
that the process is started
Change-Id: I8b88b76ba30755a1ed339f9e4c374d43e5e0b422
Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
Diffstat (limited to 'testcases/features/sfc/sfc.py')
-rwxr-xr-x | testcases/features/sfc/sfc.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py index 562d410b..ad724dca 100755 --- a/testcases/features/sfc/sfc.py +++ b/testcases/features/sfc/sfc.py @@ -229,6 +229,7 @@ def main(): logger.debug("Problems assigning floating IP to SFs") logger.debug("Floating IPs for SFs: %s..." % ips) + # SSH TO START THE VXLAN_TOOL ON SF1 logger.info("Configuring the SFs") try: @@ -242,6 +243,15 @@ def main(): time.sleep(6) # timeout -= 1 + try: + (stdin, stdout, stderr) = ssh.exec_command("ps lax | grep python") + if "vxlan_tool.py" in stdout.readlines()[0]: + logger.debug("HTTP firewall started") + else: + logger.error("HTTP firewall not started") + except: + logger.error("vxlan_tool not started in SF1") + # SSH TO START THE VXLAN_TOOL ON SF2 try: ssh.connect(ips[1], username="root", @@ -254,6 +264,15 @@ def main(): time.sleep(6) # timeout -= 1 + try: + (stdin, stdout, stderr) = ssh.exec_command("ps lax | grep python") + if "vxlan_tool.py" in stdout.readlines()[0]: + logger.debug("SSH firewall started") + else: + logger.error("SSH firewall not started") + except: + logger.error("vxlan_tool not started in SF2") + # SSH TO EXECUTE cmd_client logger.info("TEST STARTED") |