diff --git a/.zuul.yaml b/.zuul.yaml index f7c1abad07..3ad1222a3e 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -11,7 +11,7 @@ - openstack-tox-pep8: required-projects: - openstack/neutron - - openstack/networking-l2gw + - x/networking-l2gw - openstack/networking-sfc - x/vmware-nsxlib - openstack/neutron-fwaas @@ -23,7 +23,7 @@ timeout: 5400 required-projects: - openstack/neutron - - openstack/networking-l2gw + - x/networking-l2gw - openstack/networking-sfc - x/vmware-nsxlib - openstack/neutron-fwaas @@ -35,7 +35,7 @@ timeout: 5400 required-projects: - openstack/neutron - - openstack/networking-l2gw + - x/networking-l2gw - openstack/networking-sfc - x/vmware-nsxlib - openstack/neutron-fwaas @@ -47,7 +47,7 @@ timeout: 5400 required-projects: - openstack/neutron - - openstack/networking-l2gw + - x/networking-l2gw - openstack/networking-sfc - x/vmware-nsxlib - openstack/neutron-fwaas @@ -59,7 +59,7 @@ timeout: 5400 required-projects: - openstack/neutron - - openstack/networking-l2gw + - x/networking-l2gw - openstack/networking-sfc - x/vmware-nsxlib - openstack/neutron-fwaas @@ -75,7 +75,7 @@ - openstack-tox-pep8: required-projects: - openstack/neutron - - openstack/networking-l2gw + - x/networking-l2gw - openstack/networking-sfc - x/vmware-nsxlib - openstack/neutron-fwaas @@ -87,7 +87,7 @@ timeout: 5400 required-projects: - openstack/neutron - - openstack/networking-l2gw + - x/networking-l2gw - openstack/networking-sfc - x/vmware-nsxlib - openstack/neutron-fwaas @@ -99,7 +99,7 @@ timeout: 5400 required-projects: - openstack/neutron - - openstack/networking-l2gw + - x/networking-l2gw - openstack/networking-sfc - x/vmware-nsxlib - openstack/neutron-fwaas @@ -111,7 +111,7 @@ timeout: 5400 required-projects: - openstack/neutron - - openstack/networking-l2gw + - x/networking-l2gw - openstack/networking-sfc - x/vmware-nsxlib - openstack/neutron-fwaas @@ -126,7 +126,7 @@ timeout: 5400 required-projects: - openstack/neutron - - openstack/networking-l2gw + - x/networking-l2gw - openstack/networking-sfc - x/vmware-nsxlib - openstack/neutron-fwaas diff --git a/devstack/lib/nsx_common b/devstack/lib/nsx_common index 519fbb4a9d..14e09b9709 100644 --- a/devstack/lib/nsx_common +++ b/devstack/lib/nsx_common @@ -31,7 +31,7 @@ function _nsxv_ini_set { function install_neutron_projects { - pkg_list="networking-l2gw networking-sfc neutron-dynamic-routing neutron-vpnaas vmware-nsxlib" + pkg_list="networking-sfc neutron-dynamic-routing neutron-vpnaas vmware-nsxlib" for pkg in `echo $pkg_list` do pkg_renamed=`echo $pkg | sed 's/-/_/g'` @@ -47,6 +47,23 @@ function install_neutron_projects { sudo chown -R ${USER}:${USER} src/${pkg} fi done + # same for packages out of stadium + pkg_list="networking-l2gw" + for pkg in `echo $pkg_list` + do + pkg_renamed=`echo $pkg | sed 's/-/_/g'` + sudo rm -rf /usr/local/lib/python2.7/dist-packages/${pkg_renamed}* + sudo rm -rf /usr/local/lib/python3.5/dist-packages/${pkg_renamed}* + sudo rm -rf ./src/${pkg_renamed}* + if is_plugin_enabled $pkg; then + echo "Plugin $pkg enabled explicitly with enable_plugin" + elif use_library_from_git $pkg; then + echo "Project $pkg enabled explicitly from LIBS_FROM_GIT" + else + sudo -H ${PIP} install -e "git+https://opendev.org/x/${pkg}@${NEUTRON_BRANCH}#egg=${pkg_renamed}" + sudo chown -R ${USER}:${USER} src/${pkg} + fi + done # install neutron and octavia separately to not delete neutron-lib & octavia-lib sudo rm -rf /usr/local/lib/python2.7/dist-packages/neutron sudo rm -rf /usr/local/lib/python2.7/dist-packages/neutron.egg* diff --git a/tox.ini b/tox.ini index 84d1856900..c3b25269fc 100644 --- a/tox.ini +++ b/tox.ini @@ -29,7 +29,7 @@ commands = false # https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs # note that order is important to ensure dependencies don't override commands = - pip install -q -e "git+https://opendev.org/openstack/networking-l2gw#egg=networking_l2gw" + pip install -q -e "git+https://opendev.org/x/networking-l2gw#egg=networking_l2gw" pip install -q -e "git+https://opendev.org/openstack/networking-sfc#egg=networking_sfc" pip install -q -e "git+https://opendev.org/openstack/neutron-dynamic-routing#egg=neutron_dynamic_routing" pip install -q -e "git+https://opendev.org/openstack/neutron-vpnaas#egg=neutron_vpnaas"