auth_strategy = keystone
debug = True
verbose = True
-service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,lbaas
+service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
core_plugin = $CORE_PLUGIN
rabbit_password = guest
rabbit_hosts = 127.0.0.1
[haproxy]
EOF
+cat > /etc/neutron/neutron_lbaas.conf << EOF
+[DEFAULT]
+[service_providers]
+service_provider=LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
+EOF
+
}
upgrade_neutron_db () {
check_neutron_lbaas () {
NET_ID=$(neutron net-create $NEUTRON_AUTH net$RANDOM | grep ' id ' | awk '{print $4}')
- SUBNET_ID=$(neutron $NEUTRON_AUTH subnet-create $NET_ID 10.0.0.0/24 | grep ' id ' | awk '{print $4}')
- LB_POOL_ID=$(neutron $NEUTRON_AUTH lb-pool-create --lb-method ROUND_ROBIN --name mypool --protocol HTTP --subnet-id $SUBNET_ID | grep ' id ' | awk '{print $4}')
- CHECK=$(neutron $NEUTRON_AUTH lb-pool-list | grep $LB_POOL_ID)
- if [ -z "$CHECK" ]; then echo "ERROR. The pool wasn't created" && FAILURE=true; fi
+ neutron $NEUTRON_AUTH subnet-create --name subnet1 $NET_ID 10.0.0.0/24
+ LB_ID=$(neutron $NEUTRON_AUTH lbaas-loadbalancer-create --name lb1 subnet1 | awk '/ id / {print $4}')
+ # wait till balancer goes into ACTIVE state
+ sleep 10
+ PROV_STATUS=$(neutron $NEUTRON_AUTH lbaas-loadbalancer-show $LB_ID | awk '/ provisioning_status / {print $4}')
+ if [ "$PROV_STATUS" != "ACTIVE" ]; then echo "ERROR. The loadbalancer is not working properly (provisioning_status=$PROV_STATUS)"; FAILURE=true; fi
+ OPER_STATUS=$(neutron $NEUTRON_AUTH lbaas-loadbalancer-show $LB_ID | awk '/ operating_status / {print $4}')
+ if [ "$OPER_STATUS" != "ONLINE" ]; then echo "ERROR. The loadbalancer is not working properly (operating_status=$OPER_STATUS)"; FAILURE=true; fi
}
-check_neutron_lbaas_agent () {
+check_neutron_lbaasv2_agent () {
if ! $SERVICE_STARTED ; then
- restart_service neutron-lbaas-agent
+ restart_service neutron-lbaasv2-agent
SERVICE_STARTED=true
fi
#This sleep here and in other functions is intended to let the agent add information to the queue
sleep 10
- STATUS=$(neutron $NEUTRON_AUTH agent-list | grep "Loadbalancer agent" | awk '{print $9}')
- if [ "$STATUS" != ":-)" ]; then echo "LBaaS agent check failed"; FAILURE=true; fi
+ STATUS=$(neutron $NEUTRON_AUTH agent-list | awk '/ Loadbalancerv2 agent / {print $10}')
+ if [ "$STATUS" != ":-)" ]; then echo "LBaaSv2 agent check failed"; FAILURE=true; fi
}
check_error () {
}
case $PACKAGE in
- neutron-lbaas-agent)
+ neutron-lbaasv2-agent)
install_neutron_server
install_packages
setup_database
upgrade_neutron_db
setup_rabbitmq
start_neutron_server
- try check_neutron_lbaas_agent
+ try check_neutron_lbaasv2_agent
try check_neutron_lbaas
check_error
;;
Build-Depends: debhelper (>= 9),
dh-python,
dh-systemd,
+ git,
openstack-pkg-tools (>= 23~),
python-all,
python-pbr (>= 1.8),
python-neutron (>= 2:7.0.0~b1),
python-openssl (>= 0.14),
python-oslo.concurrency (>= 2.3.0),
- python-oslo.config (>= 1:2.3.0),
- python-oslo.db (>= 2.4.1),
- python-oslo.log (>= 1.8.0),
- python-oslo.messaging (>= 1.16.0),
- python-oslo.serialization (>= 1.4.0),
- python-oslo.service (>= 0.7.0),
- python-oslo.utils (>= 2.0.0),
+ python-oslo.config (>= 1:2.7.0),
+ python-oslo.db (>= 3.2.0),
+ python-oslo.log (>= 1.12.0),
+ python-oslo.messaging (>= 2.6.1),
+ python-oslo.serialization (>= 1.10.0),
+ python-oslo.service (>= 0.12.0),
+ python-oslo.utils (>= 2.8.0),
python-oslosphinx (>= 2.5.0),
python-pyasn1,
python-pyasn1-modules,
- python-requests (>= 2.5.2),
- python-requests-mock (>= 0.6.0),
+ python-requests (>= 2.8.1),
+ python-requests-mock (>= 0.7.0),
python-six (>= 1.9.0),
python-sqlalchemy (>= 0.9.7),
python-stevedore (>= 1.5.0),
- python-tempest-lib (>= 0.8.0),
+ python-tempest-lib (>= 0.10.0),
python-testscenarios (>= 0.4),
python-testtools (>= 1.4.0),
python-webob (>= 1.2.3),
python-eventlet (>= 0.17.4),
python-netaddr (>= 0.7.12),
python-openssl (>= 0.14),
- python-oslo.config (>= 1:2.3.0),
- python-oslo.db (>= 2.4.1),
- python-oslo.log (>= 1.8.0),
- python-oslo.messaging (>= 1.16.0),
- python-oslo.serialization (>= 1.4.0),
- python-oslo.service (>= 0.7.0),
- python-oslo.utils (>= 2.0.0),
+ python-oslo.config (>= 1:2.7.0),
+ python-oslo.db (>= 3.2.0),
+ python-oslo.log (>= 1.12.0),
+ python-oslo.messaging (>= 2.6.1),
+ python-oslo.serialization (>= 1.10.0),
+ python-oslo.service (>= 0.12.0),
+ python-oslo.utils (>= 2.8.0),
python-pyasn1,
python-pyasn1-modules,
- python-requests (>= 2.5.2),
+ python-requests (>= 2.8.1),
python-six (>= 1.9.0),
python-sqlalchemy (>= 0.9.7),
python-stevedore (>= 1.5.0),
+++ /dev/null
-diff -Naurp neutron-lbaas-2015.1.0rc1.orig/neutron_lbaas/tests/unit/common/tls_utils/test_cert_parser.py neutron-lbaas-2015.1.0rc1/neutron_lbaas/tests/unit/common/tls_utils/test_cert_parser.py
---- neutron-lbaas-2015.1.0rc1.orig/neutron_lbaas/tests/unit/common/tls_utils/test_cert_parser.py 2015-04-09 15:01:20.000000000 -0400
-+++ neutron-lbaas-2015.1.0rc1/neutron_lbaas/tests/unit/common/tls_utils/test_cert_parser.py 2015-04-11 20:28:15.164898414 -0400
-@@ -251,6 +251,7 @@ class TestTLSParseUtils(base.BaseTestCas
- self.assertTrue(epkey.check())
-
- def test_dump_private_key(self):
-+ self.skipTest('Skipped by Ubuntu')
- self.assertRaises(exceptions.NeedsPassphrase,
- cert_parser.dump_private_key,
- ENCRYPTED_PKCS8_CRT_KEY)