From 00a74d1137abe78a0f34a73144ee7e2ccc486a32 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Thu, 5 Dec 2019 10:39:52 +0000 Subject: [PATCH] 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 --- tools/configure_for_func_testing.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/configure_for_func_testing.sh b/tools/configure_for_func_testing.sh index e4348039755..25b3d3cf3f9 100755 --- a/tools/configure_for_func_testing.sh +++ b/tools/configure_for_func_testing.sh @@ -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 }