From 7a58f1ffb1572122e76346156050f0b8c1c35c00 Mon Sep 17 00:00:00 2001 From: Pawel Wieczorek Date: Tue, 23 Jun 2020 17:18:24 +0200 Subject: Add Ansible roles for OpenStack security groups Additional OpenStack security group and its rules are required to allow traffic to virtual machines created on DevStack. Virtual machines will be accessible from 172.24.4.0/24 network (default public IP pool). Issue-ID: INT-1601 Change-Id: I902f64f542197e329e21790f98662d2e408d4bb6 Signed-off-by: Pawel Wieczorek --- .../vagrant/test/destroy_securitygroup.test | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 deployment/noheat/infra-openstack/vagrant/test/destroy_securitygroup.test (limited to 'deployment/noheat/infra-openstack/vagrant/test/destroy_securitygroup.test') diff --git a/deployment/noheat/infra-openstack/vagrant/test/destroy_securitygroup.test b/deployment/noheat/infra-openstack/vagrant/test/destroy_securitygroup.test new file mode 100755 index 000000000..0d8042d6a --- /dev/null +++ b/deployment/noheat/infra-openstack/vagrant/test/destroy_securitygroup.test @@ -0,0 +1,21 @@ +#!/bin/sh + +export SECURITYGROUP_NAME='onap_ci_lab' + +export VAGRANT_CWD='..' + +set_up() { + vagrant up --provision-with=run_playbook_create + vagrant up --provision-with=run_playbook_destroy +} + +check() { + local secgrp="$1" + vagrant ssh operator --no-tty -c \ + "export OS_CLOUD=openstack; openstack security group list -fcsv" \ + | grep "$secgrp" \ + || echo "Security group ${secgrp} not found." +} + +set_up >/dev/null # drop provisioning output +check "$SECURITYGROUP_NAME" -- cgit 1.2.3-korg