From 20b839fd51ff0ccecbc67f3d29578ce042c8b3c3 Mon Sep 17 00:00:00 2001 From: Kyle Mestery Date: Mon, 8 Dec 2014 06:17:27 +0000 Subject: [PATCH] Update devstack to work with new split neutron services repos This commit udpates devstack to work with the latest neutron services, which are now in their own repositories. This will also unblock third party CI for services testing. This also allows devstack users to run neutron with services again. Change-Id: I9cdd51f09edaccf218988240b48ce733d5771a65 --- lib/neutron | 15 +++++++++++++++ lib/neutron_plugins/services/firewall | 2 +- lib/neutron_plugins/services/loadbalancer | 2 +- lib/neutron_plugins/services/vpn | 2 +- stackrc | 12 ++++++++++++ 5 files changed, 30 insertions(+), 3 deletions(-) diff --git a/lib/neutron b/lib/neutron index 5a2bfea801..0029158202 100644 --- a/lib/neutron +++ b/lib/neutron @@ -99,6 +99,9 @@ GITDIR["python-neutronclient"]=$DEST/python-neutronclient NEUTRON_DIR=$DEST/neutron +NEUTRON_FWAAS_DIR=$DEST/neutron-fwaas +NEUTRON_LBAAS_DIR=$DEST/neutron-lbaas +NEUTRON_VPNAAS_DIR=$DEST/neutron-vpnaas NEUTRON_AUTH_CACHE_DIR=${NEUTRON_AUTH_CACHE_DIR:-/var/cache/neutron} # Support entry points installation of console scripts @@ -596,6 +599,18 @@ function init_neutron { function install_neutron { git_clone $NEUTRON_REPO $NEUTRON_DIR $NEUTRON_BRANCH setup_develop $NEUTRON_DIR + if is_service_enabled q-fwaas; then + git_clone $NEUTRON_FWAAS_REPO $NEUTRON_FWAAS_DIR $NEUTRON_FWAAS_BRANCH + setup_develop $NEUTRON_FWAAS_DIR + fi + if is_service_enabled q-lbaas; then + git_clone $NEUTRON_LBAAS_REPO $NEUTRON_LBAAS_DIR $NEUTRON_LBAAS_BRANCH + setup_develop $NEUTRON_LBAAS_DIR + fi + if is_service_enabled q-vpn; then + git_clone $NEUTRON_VPNAAS_REPO $NEUTRON_VPNAAS_DIR $NEUTRON_VPNAAS_BRANCH + setup_develop $NEUTRON_VPNAAS_DIR + fi if [ "$VIRT_DRIVER" == 'xenserver' ]; then local dom0_ip diff --git a/lib/neutron_plugins/services/firewall b/lib/neutron_plugins/services/firewall index b5253dbeef..ce1f93f7d2 100644 --- a/lib/neutron_plugins/services/firewall +++ b/lib/neutron_plugins/services/firewall @@ -5,7 +5,7 @@ FW_XTRACE=$(set +o | grep xtrace) set +o xtrace -FWAAS_PLUGIN=neutron.services.firewall.fwaas_plugin.FirewallPlugin +FWAAS_PLUGIN=neutron_fwaas.services.firewall.fwaas_plugin.FirewallPlugin function neutron_fwaas_configure_common { _neutron_service_plugin_class_add $FWAAS_PLUGIN diff --git a/lib/neutron_plugins/services/loadbalancer b/lib/neutron_plugins/services/loadbalancer index f84b71076d..bd9dc8731b 100644 --- a/lib/neutron_plugins/services/loadbalancer +++ b/lib/neutron_plugins/services/loadbalancer @@ -7,7 +7,7 @@ set +o xtrace AGENT_LBAAS_BINARY="$NEUTRON_BIN_DIR/neutron-lbaas-agent" -LBAAS_PLUGIN=neutron.services.loadbalancer.plugin.LoadBalancerPlugin +LBAAS_PLUGIN=neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPlugin function neutron_agent_lbaas_install_agent_packages { if is_ubuntu || is_fedora || is_suse; then diff --git a/lib/neutron_plugins/services/vpn b/lib/neutron_plugins/services/vpn index 2478c47ae5..07f1f35d9a 100644 --- a/lib/neutron_plugins/services/vpn +++ b/lib/neutron_plugins/services/vpn @@ -7,7 +7,7 @@ set +o xtrace AGENT_VPN_BINARY="$NEUTRON_BIN_DIR/neutron-vpn-agent" -VPN_PLUGIN=${VPN_PLUGIN:-"neutron.services.vpn.plugin.VPNDriverPlugin"} +VPN_PLUGIN=${VPN_PLUGIN:-"neutron_vpnaas.services.vpn.plugin.VPNDriverPlugin"} IPSEC_PACKAGE=${IPSEC_PACKAGE:-"openswan"} function neutron_vpn_install_agent_packages { diff --git a/stackrc b/stackrc index 81b60674ee..ccff87e2e4 100644 --- a/stackrc +++ b/stackrc @@ -185,6 +185,18 @@ KEYSTONE_BRANCH=${KEYSTONE_BRANCH:-master} NEUTRON_REPO=${NEUTRON_REPO:-${GIT_BASE}/openstack/neutron.git} NEUTRON_BRANCH=${NEUTRON_BRANCH:-master} +# neutron fwaas service +NEUTRON_FWAAS_REPO=${NEUTRON_FWAAS_REPO:-${GIT_BASE}/openstack/neutron-fwaas.git} +NEUTRON_FWAAS_BRANCH=${NEUTRON_FWAAS_BRANCH:-master} + +# neutron lbaas service +NEUTRON_LBAAS_REPO=${NEUTRON_LBAAS_REPO:-${GIT_BASE}/openstack/neutron-lbaas.git} +NEUTRON_LBAAS_BRANCH=${NEUTRON_LBAAS_BRANCH:-master} + +# neutron vpnaas service +NEUTRON_VPNAAS_REPO=${NEUTRON_VPNAAS_REPO:-${GIT_BASE}/openstack/neutron-vpnaas.git} +NEUTRON_VPNAAS_BRANCH=${NEUTRON_VPNAAS_BRANCH:-master} + # compute service NOVA_REPO=${NOVA_REPO:-${GIT_BASE}/openstack/nova.git} NOVA_BRANCH=${NOVA_BRANCH:-master}