aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2017-03-21 20:11:12 +0100
committerManuel Buil <mbuil@suse.com>2017-03-21 20:26:41 +0000
commit80732036d12ddaad25edb6ff00aa60c84910a887 (patch)
tree08078d9e5ae853398dd457fa68962c1822aa81c5
parenteb3a83d040357ffa8f3a651b27be6ab8ef6c5a00 (diff)
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 <mbuil@suse.com> (cherry picked from commit 6282c5cce71ae994aaece374375234cf207992f8)
-rw-r--r--sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py5
1 files changed, 5 insertions, 0 deletions
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]])