From 8696c9cacf50c8144c61f72b0ac27c6fb2609700 Mon Sep 17 00:00:00 2001 From: George Paraskevopoulos Date: Wed, 21 Sep 2016 18:58:21 +0300 Subject: Open secgroups and add check_ssh in sfc_colorado1 - Open port 22 in every security group - Add check_ssh for sfc_colorado1 - Replace exits with continue statements in sfc_colorado1 test loop Change-Id: Ic7a7ba67c729667621cc0d1114ee2a42d8846247 Signed-off-by: George Paraskevopoulos (cherry picked from commit 4b07146f7d667c04159d57d681102995f6060f86) --- testcases/features/sfc/sfc.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'testcases/features/sfc/sfc.py') diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py index 3f46026ad..ec1720003 100755 --- a/testcases/features/sfc/sfc.py +++ b/testcases/features/sfc/sfc.py @@ -149,6 +149,18 @@ def main(): sg_id = os_utils.create_security_group_full(neutron_client, SECGROUP_NAME, SECGROUP_DESCR) + secgroups = os_utils.get_security_groups(neutron_client) + + for sg in secgroups: + os_utils.create_secgroup_rule(neutron_client, sg['id'], + 'ingress', 'tcp', + port_range_min=22, + port_range_max=22) + os_utils.create_secgroup_rule(neutron_client, sg['id'], + 'egress', 'tcp', + port_range_min=22, + port_range_max=22) + # boot INSTANCE logger.info("Creating instance '%s'..." % INSTANCE_NAME) logger.debug( @@ -289,12 +301,12 @@ def main(): time.sleep(3) r += 1 - logger.info("SSH connectivity to the SFs established") - if not all(check): logger.error("Cannot establish SSH connection to the SFs") sys.exit(1) + logger.info("SSH connectivity to the SFs established") + # SSH TO START THE VXLAN_TOOL ON SF1 logger.info("Configuring the SFs") try: -- cgit 1.2.3-korg