devstack安装
添加下面的行到local.conf
enable_service q-lbaas
手动安装
安装agent
apt-get install neutron-lbaas-agent haproxy
neutron server
apt-get install neutron-lbaas-agent
编辑neutron-server节点上的/etc/neutron/neutron.conf
service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,neutron.services.loadbalancer.plugin.LoadBalancerPlugin[service_providers]service_provider = LOADBALANCER:Haproxy:neutron_lbaas.servicesloadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
编辑LBaaS节点上的/etc/neutron/lbaas_agent.ini
[DEFAULT]interface_driver = neutron.agent.linux.interface.OVSInterfaceDriverdevice_driver = neutron.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
重启neutron server ,lbaas
service neutron-server restartservice neutron-lbaas-agent restart
local.conf
[[local|localrc]] ADMIN_PASSWORD=root DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD SERVICE_TOKEN=super-secret-admin-token DEST=/opt/stack SERVICE_DIR=$DEST/status DATA_DIR=$DEST/data LOGFILE=$DEST/logs/stack.sh.log LOGDIR=$DEST/logs # The default fixed range (10.0.0.0/24) conflicted with an address # range I was using locally. #FIXED_RANGE=127.254.1.0/24 #NETWORK_GATEWAY=127.254.1.1 # Services disable_service n-net enable_service q-svc enable_service q-agt enable_service q-dhcp enable_service q-l3 enable_service q-meta enable_service horizonenable_service q-lbaas
参考链接