Add fullstack resources for linuxbridge agent
This patch adds resources, fixtures and base test_connectivity tests for host with linuxbridge agent. Model of host with linuxbridge agent is made in separate namespace named "host-XXX". It has got connectivity with rabbit via ovs port. Same port is used also to provide connectivity with different "hosts" Co-Authored-By: Mathieu Rohon <mathieu.rohon@gmail.com> Change-Id: I6230d8d09f77bd20674bf6c3be69fbc1627d66f8 Closes-bug: #1518675
This commit is contained in:
@@ -245,6 +245,15 @@ function _install_post_devstack {
|
||||
}
|
||||
|
||||
|
||||
function _configure_iptables_rules {
|
||||
# For linuxbridge agent fullstack tests we need to add special rules to
|
||||
# iptables for connection of agents to rabbitmq:
|
||||
CHAIN_NAME="openstack-INPUT"
|
||||
sudo iptables -n --list $CHAIN_NAME 1> /dev/null 2>&1 || CHAIN_NAME="INPUT"
|
||||
sudo iptables -I $CHAIN_NAME -s 240.0.0.0/8 -p tcp -m tcp -d 240.0.0.0/8 --dport 5672 -j ACCEPT
|
||||
}
|
||||
|
||||
|
||||
function configure_host_for_func_testing {
|
||||
echo_summary "Configuring host for functional testing"
|
||||
|
||||
@@ -270,3 +279,7 @@ if [[ "$IS_GATE" != "True" ]]; then
|
||||
configure_host_for_func_testing
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$VENV" =~ "dsvm-fullstack" ]]; then
|
||||
_configure_iptables_rules
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user