Install OVN for functional tests

This patch is changing the tools/configure_for_func_testing.sh script to
install OVN when setting up the environment for functional tests.

The "ovn" driver in master needs the latest released version of OVN
(2.12), unfortunately this version is not yet present in the ubuntu
repository so we need to compile it from source.

Partially-Implements: blueprint neutron-ovn-merge
Change-Id: I181da9981ec95da8cef36ba2bb667b5a4ec9db22
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
This commit is contained in:
Lucas Alvares Gomes 2019-12-05 10:39:52 +00:00
parent 0643ab44d8
commit 00a74d1137

View File

@ -97,13 +97,18 @@ function _install_base_deps {
echo_summary "Installing base dependencies"
INSTALL_TESTONLY_PACKAGES=True
PACKAGES=$(get_packages general,neutron,q-agt,q-l3,openvswitch)
PACKAGES=$(get_packages general,neutron,q-agt,q-l3)
# Do not install 'python-' prefixed packages other than
# python-dev*. Neutron's functional testing relies on deployment
# to a tox env so there is no point in installing python
# dependencies system-wide.
PACKAGES=$(echo $PACKAGES | perl -pe 's|python-(?!dev)[^ ]*||g')
install_package $PACKAGES
source $NEUTRON_PATH/devstack/lib/ovs
remove_ovs_packages
OVS_BRANCH="v2.12.0"
compile_ovs False /usr /var
}