From 80732036d12ddaad25edb6ff00aa60c84910a887 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 21 Mar 2017 20:11:12 +0100 Subject: Bug fix in CI: security groups 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: I120765a33e55e47b78ef3c8664c82fb147ce9df0 Signed-off-by: Manuel Buil (cherry picked from commit 6282c5cce71ae994aaece374375234cf207992f8) --- .../sfc_one_chain_two_service_functions_different_computes.py | 5 +++++ 1 file changed, 5 insertions(+) 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 7e68ba25..97ff0011 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 @@ -152,6 +152,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' or '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=[vnfs[0], vnfs[1]]) -- cgit 1.2.3-korg