Lbaas devstack support is now in the neutron-lbaas repo, so we can move
towards removing it here. This will explode hard, but let's start peeling
the onion.
This can't merge until p-c no longer references lbaas jobs.
Change-Id: I1c49877bab53f6b25385302420086b25e3eeeebf
| ... | ... |
@@ -107,7 +107,6 @@ GITDIR["python-neutronclient"]=$DEST/python-neutronclient |
| 107 | 107 |
|
| 108 | 108 |
NEUTRON_DIR=$DEST/neutron |
| 109 | 109 |
NEUTRON_FWAAS_DIR=$DEST/neutron-fwaas |
| 110 |
-NEUTRON_LBAAS_DIR=$DEST/neutron-lbaas |
|
| 111 | 110 |
NEUTRON_VPNAAS_DIR=$DEST/neutron-vpnaas |
| 112 | 111 |
NEUTRON_AUTH_CACHE_DIR=${NEUTRON_AUTH_CACHE_DIR:-/var/cache/neutron}
|
| 113 | 112 |
|
| ... | ... |
@@ -122,9 +121,6 @@ NEUTRON_CONF_DIR=/etc/neutron |
| 122 | 122 |
NEUTRON_CONF=$NEUTRON_CONF_DIR/neutron.conf |
| 123 | 123 |
export NEUTRON_TEST_CONFIG_FILE=${NEUTRON_TEST_CONFIG_FILE:-"$NEUTRON_CONF_DIR/debug.ini"}
|
| 124 | 124 |
|
| 125 |
-# Default provider for load balancer service |
|
| 126 |
-DEFAULT_LB_PROVIDER=LOADBALANCER:Haproxy:neutron_lbaas.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default |
|
| 127 |
- |
|
| 128 | 125 |
# Default provider for VPN service |
| 129 | 126 |
DEFAULT_VPN_PROVIDER=VPN:openswan:neutron_vpnaas.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default |
| 130 | 127 |
|
| ... | ... |
@@ -347,12 +343,6 @@ if [ -f $TOP_DIR/lib/neutron_plugins/$Q_PLUGIN ]; then |
| 347 | 347 |
source $TOP_DIR/lib/neutron_plugins/$Q_PLUGIN |
| 348 | 348 |
fi |
| 349 | 349 |
|
| 350 |
-# Agent loadbalancer service plugin functions |
|
| 351 |
-# ------------------------------------------- |
|
| 352 |
- |
|
| 353 |
-# Hardcoding for 1 service plugin for now |
|
| 354 |
-source $TOP_DIR/lib/neutron_plugins/services/loadbalancer |
|
| 355 |
- |
|
| 356 | 350 |
# Agent metering service plugin functions |
| 357 | 351 |
# ------------------------------------------- |
| 358 | 352 |
|
| ... | ... |
@@ -442,10 +432,6 @@ function configure_neutron {
|
| 442 | 442 |
iniset_rpc_backend neutron $NEUTRON_CONF |
| 443 | 443 |
|
| 444 | 444 |
# goes before q-svc to init Q_SERVICE_PLUGIN_CLASSES |
| 445 |
- if is_service_enabled q-lbaas; then |
|
| 446 |
- deprecated "Configuring q-lbaas through devstack is deprecated" |
|
| 447 |
- _configure_neutron_lbaas |
|
| 448 |
- fi |
|
| 449 | 445 |
if is_service_enabled q-metering; then |
| 450 | 446 |
_configure_neutron_metering |
| 451 | 447 |
fi |
| ... | ... |
@@ -656,10 +642,6 @@ function install_neutron {
|
| 656 | 656 |
git_clone $NEUTRON_FWAAS_REPO $NEUTRON_FWAAS_DIR $NEUTRON_FWAAS_BRANCH |
| 657 | 657 |
setup_develop $NEUTRON_FWAAS_DIR |
| 658 | 658 |
fi |
| 659 |
- if is_service_enabled q-lbaas; then |
|
| 660 |
- git_clone $NEUTRON_LBAAS_REPO $NEUTRON_LBAAS_DIR $NEUTRON_LBAAS_BRANCH |
|
| 661 |
- setup_develop $NEUTRON_LBAAS_DIR |
|
| 662 |
- fi |
|
| 663 | 659 |
if is_service_enabled q-vpn; then |
| 664 | 660 |
git_clone $NEUTRON_VPNAAS_REPO $NEUTRON_VPNAAS_DIR $NEUTRON_VPNAAS_BRANCH |
| 665 | 661 |
setup_develop $NEUTRON_VPNAAS_DIR |
| ... | ... |
@@ -703,10 +685,6 @@ function install_neutron_agent_packages {
|
| 703 | 703 |
if is_service_enabled q-agt q-dhcp q-l3; then |
| 704 | 704 |
neutron_plugin_install_agent_packages |
| 705 | 705 |
fi |
| 706 |
- |
|
| 707 |
- if is_service_enabled q-lbaas; then |
|
| 708 |
- neutron_agent_lbaas_install_agent_packages |
|
| 709 |
- fi |
|
| 710 | 706 |
} |
| 711 | 707 |
|
| 712 | 708 |
# Start running processes, including screen |
| ... | ... |
@@ -769,7 +747,6 @@ function start_neutron_other_agents {
|
| 769 | 769 |
fi |
| 770 | 770 |
|
| 771 | 771 |
run_process q-meta "$AGENT_META_BINARY --config-file $NEUTRON_CONF --config-file=$Q_META_CONF_FILE" |
| 772 |
- run_process q-lbaas "$AGENT_LBAAS_BINARY --config-file $NEUTRON_CONF --config-file=$LBAAS_AGENT_CONF_FILENAME" |
|
| 773 | 772 |
run_process q-metering "$AGENT_METERING_BINARY --config-file $NEUTRON_CONF --config-file $METERING_AGENT_CONF_FILENAME" |
| 774 | 773 |
|
| 775 | 774 |
if [ "$VIRT_DRIVER" = 'xenserver' ]; then |
| ... | ... |
@@ -808,9 +785,6 @@ function stop_neutron_other {
|
| 808 | 808 |
stop_process q-meta |
| 809 | 809 |
fi |
| 810 | 810 |
|
| 811 |
- if is_service_enabled q-lbaas; then |
|
| 812 |
- neutron_lbaas_stop |
|
| 813 |
- fi |
|
| 814 | 811 |
if is_service_enabled q-fwaas; then |
| 815 | 812 |
neutron_fwaas_stop |
| 816 | 813 |
fi |
| ... | ... |
@@ -915,7 +889,7 @@ function cleanup_neutron {
|
| 915 | 915 |
fi |
| 916 | 916 |
|
| 917 | 917 |
# delete all namespaces created by neutron |
| 918 |
- for ns in $(sudo ip netns list | grep -o -E '(qdhcp|qrouter|qlbaas|fip|snat)-[0-9a-f-]*'); do |
|
| 918 |
+ for ns in $(sudo ip netns list | grep -o -E '(qdhcp|qrouter|fip|snat)-[0-9a-f-]*'); do |
|
| 919 | 919 |
sudo ip netns delete ${ns}
|
| 920 | 920 |
done |
| 921 | 921 |
} |
| ... | ... |
@@ -1108,18 +1082,6 @@ function _configure_neutron_ceilometer_notifications {
|
| 1108 | 1108 |
iniset $NEUTRON_CONF oslo_messaging_notifications driver messaging |
| 1109 | 1109 |
} |
| 1110 | 1110 |
|
| 1111 |
-function _configure_neutron_lbaas {
|
|
| 1112 |
- # Uses oslo config generator to generate LBaaS sample configuration files |
|
| 1113 |
- (cd $NEUTRON_LBAAS_DIR && exec ./tools/generate_config_file_samples.sh) |
|
| 1114 |
- |
|
| 1115 |
- if [ -f $NEUTRON_LBAAS_DIR/etc/neutron_lbaas.conf.sample ]; then |
|
| 1116 |
- cp $NEUTRON_LBAAS_DIR/etc/neutron_lbaas.conf.sample $NEUTRON_CONF_DIR/neutron_lbaas.conf |
|
| 1117 |
- iniset $NEUTRON_CONF_DIR/neutron_lbaas.conf service_providers service_provider $DEFAULT_LB_PROVIDER |
|
| 1118 |
- fi |
|
| 1119 |
- neutron_agent_lbaas_configure_common |
|
| 1120 |
- neutron_agent_lbaas_configure_agent |
|
| 1121 |
-} |
|
| 1122 |
- |
|
| 1123 | 1111 |
function _configure_neutron_metering {
|
| 1124 | 1112 |
neutron_agent_metering_configure_common |
| 1125 | 1113 |
neutron_agent_metering_configure_agent |
| 1126 | 1114 |
deleted file mode 100644 |
| ... | ... |
@@ -1,51 +0,0 @@ |
| 1 |
-#!/bin/bash |
|
| 2 |
- |
|
| 3 |
-# Neutron loadbalancer plugin |
|
| 4 |
-# --------------------------- |
|
| 5 |
- |
|
| 6 |
-# Save trace setting |
|
| 7 |
-_XTRACE_NEUTRON_LB=$(set +o | grep xtrace) |
|
| 8 |
-set +o xtrace |
|
| 9 |
- |
|
| 10 |
- |
|
| 11 |
-AGENT_LBAAS_BINARY="$NEUTRON_BIN_DIR/neutron-lbaas-agent" |
|
| 12 |
-LBAAS_PLUGIN=neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPlugin |
|
| 13 |
- |
|
| 14 |
-function neutron_agent_lbaas_install_agent_packages {
|
|
| 15 |
- if is_ubuntu || is_fedora || is_suse; then |
|
| 16 |
- install_package haproxy |
|
| 17 |
- fi |
|
| 18 |
-} |
|
| 19 |
- |
|
| 20 |
-function neutron_agent_lbaas_configure_common {
|
|
| 21 |
- _neutron_service_plugin_class_add $LBAAS_PLUGIN |
|
| 22 |
- _neutron_deploy_rootwrap_filters $NEUTRON_LBAAS_DIR |
|
| 23 |
-} |
|
| 24 |
- |
|
| 25 |
-function neutron_agent_lbaas_configure_agent {
|
|
| 26 |
- LBAAS_AGENT_CONF_PATH=/etc/neutron/services/loadbalancer/haproxy |
|
| 27 |
- mkdir -p $LBAAS_AGENT_CONF_PATH |
|
| 28 |
- |
|
| 29 |
- LBAAS_AGENT_CONF_FILENAME="$LBAAS_AGENT_CONF_PATH/lbaas_agent.ini" |
|
| 30 |
- |
|
| 31 |
- cp $NEUTRON_LBAAS_DIR/etc/lbaas_agent.ini.sample $LBAAS_AGENT_CONF_FILENAME |
|
| 32 |
- |
|
| 33 |
- # ovs_use_veth needs to be set before the plugin configuration |
|
| 34 |
- # occurs to allow plugins to override the setting. |
|
| 35 |
- iniset $LBAAS_AGENT_CONF_FILENAME DEFAULT ovs_use_veth $Q_OVS_USE_VETH |
|
| 36 |
- |
|
| 37 |
- neutron_plugin_setup_interface_driver $LBAAS_AGENT_CONF_FILENAME |
|
| 38 |
- |
|
| 39 |
- if is_fedora; then |
|
| 40 |
- iniset $LBAAS_AGENT_CONF_FILENAME DEFAULT user_group "nobody" |
|
| 41 |
- iniset $LBAAS_AGENT_CONF_FILENAME haproxy user_group "nobody" |
|
| 42 |
- fi |
|
| 43 |
-} |
|
| 44 |
- |
|
| 45 |
-function neutron_lbaas_stop {
|
|
| 46 |
- pids=$(ps aux | awk '/haproxy/ { print $2 }')
|
|
| 47 |
- [ ! -z "$pids" ] && sudo kill $pids || true |
|
| 48 |
-} |
|
| 49 |
- |
|
| 50 |
-# Restore xtrace |
|
| 51 |
-$_XTRACE_NEUTRON_LB |
| ... | ... |
@@ -231,10 +231,6 @@ NEUTRON_BRANCH=${NEUTRON_BRANCH:-master}
|
| 231 | 231 |
NEUTRON_FWAAS_REPO=${NEUTRON_FWAAS_REPO:-${GIT_BASE}/openstack/neutron-fwaas.git}
|
| 232 | 232 |
NEUTRON_FWAAS_BRANCH=${NEUTRON_FWAAS_BRANCH:-master}
|
| 233 | 233 |
|
| 234 |
-# neutron lbaas service |
|
| 235 |
-NEUTRON_LBAAS_REPO=${NEUTRON_LBAAS_REPO:-${GIT_BASE}/openstack/neutron-lbaas.git}
|
|
| 236 |
-NEUTRON_LBAAS_BRANCH=${NEUTRON_LBAAS_BRANCH:-master}
|
|
| 237 |
- |
|
| 238 | 234 |
# neutron vpnaas service |
| 239 | 235 |
NEUTRON_VPNAAS_REPO=${NEUTRON_VPNAAS_REPO:-${GIT_BASE}/openstack/neutron-vpnaas.git}
|
| 240 | 236 |
NEUTRON_VPNAAS_BRANCH=${NEUTRON_VPNAAS_BRANCH:-master}
|