Openstack ocata配置lbaas
控制节点:
yum -y install openstack-neutron-lbaas*
#修改/etc/neutron/neutron.conf配置文件
vim /etc/neutron/neutron.conf
[DEFAULT]
service_plugins=router,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
#修改/etc/neutron/neutron_lbaas.conf配置文件
vi /etc/neutron/neutron_lbaas.conf
[service_providers]
service_provider=LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
#更新数据库
neutron-db-manage --subproject neutron-lbaas upgrade head
#重启neutron-server
systemctl restart neutron-server
#修改/etc/neutron/lbaas_agent.ini,增加一行
vim /etc/neutron/lbaas_agent.ini
[DEFAULT]
interface_driver=neutron.agent.linux.interface.BridgeInterfaceDriver
#启动neutron-lbaasv2-agent
systemctl start neutron-lbaasv2-agent.service
#检查
#启用dashborad网络部分的lbaas:
vi /etc/openstack-dashboard/local_settings
将
'enable_lb': False,
修改为
'enable_lb': True,
systemctl restart httpd memcached
这就安装完成了。
评论已关闭