From 3c6e0efc2f4575ec2cf2e1304bdc1b66cdc08b06 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 21 Mar 2017 21:25:53 +0100 Subject: Bug fix in CI: security groups not working CI tests create a lot of security groups with the name default. Our SFs are assigned to a default security group but there are so many that the result is not predictable and most likely wrong. We add it now to example-sg sec. group Change-Id: I64984aa7b6114747c5bab5fb2e4b8d8d32865bb0 Signed-off-by: Manuel Buil --- .../sfc_one_chain_two_service_functions_different_computes.py | 2 +- sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'sfc/tests/functest') diff --git a/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py b/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py index 97ff0011..079bc0b8 100644 --- a/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py +++ b/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py @@ -154,7 +154,7 @@ def main(): instances = os_utils.get_instances(nova_client) for instance in instances: - if 'client' or 'server' not in instance.name: + if ('client' not in instance.name) and ('server' not in instance.name): os_utils.add_secgroup_to_instance(nova_client, instance.id, sg_id) os_tacker.create_sfc(tacker_client, 'red', diff --git a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py index 68ac1e24..021e8df1 100644 --- a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py +++ b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py @@ -159,6 +159,11 @@ def main(): logger.error('ERROR while booting vnfs') sys.exit(1) + instances = os_utils.get_instances(nova_client) + for instance in instances: + if ('client' not in instance.name) and ('server' not in instance.name): + os_utils.add_secgroup_to_instance(nova_client, instance.id, sg_id) + os_tacker.create_sfc(tacker_client, 'red', chain_vnf_names=['testVNF1']) os_tacker.create_sfc(tacker_client, 'blue', chain_vnf_names=['testVNF2']) -- cgit 1.2.3-korg