neutron-fwaas/tools/configure_for_fwaas_func_testing.sh
ZhouHeng a9f26b81e2 revive neutron-fwaas project
This reverts commit caae7b6a6f.

Reason for revert:
Many users still need L3 firewalls and Inspur team wants to maintain
this project.
Neutron drivers team discussed the topic of the maintenance of
neutron-fwaas, and agreed to include neutron-fwaas again to Neutron
stadium[1].

Some updates have been made:
Remove use "autonested_transaction" method, see more [2]
Replace "neutron_lib.callbacks.registry.notify" with "registry.publish"
Replace rootwrap execution with privsep context execution.
Ensure db Models and migration scripts are sync, set table
firewall_group_port_associations_v2's two columns nullable=False

[1] https://meetings.opendev.org/meetings/neutron_drivers/2022/neutron_drivers.2022-01-28-14.00.log.html#l-14
[2] https://review.opendev.org/c/openstack/neutron-lib/+/761728

Change-Id: I14f551c199d9badcf25b9e65c954c012326d27cd
2022-03-01 01:01:47 +00:00

35 lines
850 B
Bash
Executable File

set -e
IS_GATE=${IS_GATE:-False}
USE_CONSTRAINT_ENV=${USE_CONSTRAINT_ENV:-False}
PROJECT_NAME=${PROJECT_NAME:-neutron-fwaas}
REPO_BASE=${GATE_DEST:-$(cd $(dirname "$BASH_SOURCE")/../.. && pwd)}
source $REPO_BASE/neutron/tools/configure_for_func_testing.sh
NEUTRON_FWAAS_DIR=$REPO_BASE/neutron-fwaas
source $NEUTRON_FWAAS_DIR/devstack/plugin.sh
function _install_fw_package {
echo_summary "Installing fw packs"
if is_ubuntu; then
install_package conntrack
else
# EPEL
install_package conntrack-tools
fi
}
function configure_host_for_fwaas_func_testing {
echo_summary "Configuring for Fwaas functional testing"
if [ "$IS_GATE" == "True" ]; then
configure_host_for_func_testing
fi
_install_fw_package
}
if [ "$IS_GATE" != "True" ]; then
configure_host_for_fwaas_func_testing
fi