ovn: use bundled ovs
We are using the latest OVS, however, OVN needs to build using the
OVS submodule since some of the signatures don't work[1].
[1]: https://github.com/ovn-org/ovn/issues/128
Change-Id: I3ad7e5e80f1141c3d94f7ce7c8b8f8fdb9fb7c3c
diff --git a/lib/neutron_plugins/ovn_agent b/lib/neutron_plugins/ovn_agent
index 927896b..bf1b23a 100644
--- a/lib/neutron_plugins/ovn_agent
+++ b/lib/neutron_plugins/ovn_agent
@@ -320,8 +320,24 @@
./boot.sh
fi
+ # NOTE(mnaser): OVN requires that you build using the OVS from the
+ # submodule.
+ #
+ # https://github.com/ovn-org/ovn/blob/3fb397b63663297acbcbf794e1233951222ae5af/Documentation/intro/install/general.rst#bootstrapping
+ # https://github.com/ovn-org/ovn/issues/128
+ git submodule update --init
+ pushd ovs
+ if [ ! -f configure ] ; then
+ ./boot.sh
+ fi
if [ ! -f config.status ] || [ configure -nt config.status ] ; then
- ./configure --with-ovs-source=$DEST/$OVS_REPO_NAME $prefix $localstatedir
+ ./configure
+ fi
+ make -j$(($(nproc) + 1))
+ popd
+
+ if [ ! -f config.status ] || [ configure -nt config.status ] ; then
+ ./configure $prefix $localstatedir
fi
make -j$(($(nproc) + 1))
sudo make install