From f548ce4816b58d7e65d64fc22a1066f1aea63824 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Thu, 4 Mar 2021 10:31:30 +0900 Subject: [PATCH] Allow to install os-ken from git repo os-ken is used by neutron ML2/OVS agent. We need to install os-ken from source to test os-ken changes against neutron. We already have tempest-integrated-networking job in os-ken repo but it turns out it consumes os-ken from PyPI :-( Change-Id: Ibcff212591e9fed25f1316403627269d81455b09 --- lib/neutron_plugins/openvswitch_agent | 4 ++++ stackrc | 5 +++++ tests/test_libs_from_pypi.sh | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/neutron_plugins/openvswitch_agent b/lib/neutron_plugins/openvswitch_agent index 100961196d..7fed8bf853 100644 --- a/lib/neutron_plugins/openvswitch_agent +++ b/lib/neutron_plugins/openvswitch_agent @@ -15,6 +15,10 @@ function neutron_plugin_create_nova_conf { function neutron_plugin_install_agent_packages { _neutron_ovs_base_install_agent_packages + if use_library_from_git "os-ken"; then + git_clone_by_name "os-ken" + setup_dev_lib "os-ken" + fi } function neutron_plugin_configure_dhcp_agent { diff --git a/stackrc b/stackrc index a36f8970e6..2b1511d04f 100644 --- a/stackrc +++ b/stackrc @@ -554,6 +554,11 @@ GITREPO["ovsdbapp"]=${OVSDBAPP_REPO:-${GIT_BASE}/openstack/ovsdbapp.git} GITBRANCH["ovsdbapp"]=${OVSDBAPP_BRANCH:-$TARGET_BRANCH} GITDIR["ovsdbapp"]=$DEST/ovsdbapp +# os-ken used by neutron +GITREPO["os-ken"]=${OS_KEN_REPO:-${GIT_BASE}/openstack/os-ken.git} +GITBRANCH["os-ken"]=${OS_KEN_BRANCH:-$TARGET_BRANCH} +GITDIR["os-ken"]=$DEST/os-ken + ################## # # TripleO / Heat Agent Components diff --git a/tests/test_libs_from_pypi.sh b/tests/test_libs_from_pypi.sh index ab7583d042..5b53389073 100755 --- a/tests/test_libs_from_pypi.sh +++ b/tests/test_libs_from_pypi.sh @@ -44,7 +44,7 @@ ALL_LIBS+=" debtcollector os-brick os-traits automaton futurist oslo.service" ALL_LIBS+=" oslo.cache oslo.reports osprofiler cursive" ALL_LIBS+=" keystoneauth ironic-lib neutron-lib oslo.privsep" ALL_LIBS+=" diskimage-builder os-vif python-brick-cinderclient-ext" -ALL_LIBS+=" castellan python-barbicanclient ovsdbapp" +ALL_LIBS+=" castellan python-barbicanclient ovsdbapp os-ken" # Generate the above list with # echo ${!GITREPO[@]}