码迷,mamicode.com
首页 > 其他好文 > 详细

openstack kilo开启lbaas功能

时间:2015-11-01 19:33:24      阅读:881      评论:0      收藏:0      [点我收藏+]

标签:openstack kilo   centos7   lbaas   

centos7系统openstack kilo开启lbaas功能


1、安装haproxy和neutron-lbaas(在openstack资源里)

Setup the RDO repositories:

#sudo yum install -y https://rdoproject.org/repos/rdo-release.rpm

#yum -y install openstack-neutron-lbaas haproxy


2、编辑配置文件

Enable the HAProxy plug-in by using the service_provider option in the /etc/neutron/neutron.conf file:


【service_provider = LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default】


The service_plugin should be set in /etc/neutron/neutron.conf:


【service_plugins = router,lbaas】


The interface_driver and device_driver should be set in /etc/neutron/lbaas_agent.ini. Since the load balancer will be haproxy, set the device_driver accordingly:

【device_driver = neutron.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver】


根据自己的实际环境开始对应的驱动

The interface_driver will depend on the core L2 plugin being used.

For OpenVSwitch:

【interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver】

For linuxbridge:

【interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver】


重启 neutron-server service 和 neutron-lbaas-agent service进程

# service neutron-server restart

# service neutron-lbaas-agent restart


3、在dashboard上开启lbaas页面.

/etc/openstack-dashboard/local_settings中把‘enable_lb‘的状态改为【True】

【OPENSTACK_NEUTRON_NETWORK = {

    ‘enable_lb‘: True,

    ...

}】

重启httpd进程:

# service httpd restart

之后就可以在dashboard上查看LBAAS页面的配置

技术分享

本文出自 “拙言” 博客,请务必保留此出处http://fhjx1234.blog.51cto.com/1022919/1708553

openstack kilo开启lbaas功能

标签:openstack kilo   centos7   lbaas   

原文地址:http://fhjx1234.blog.51cto.com/1022919/1708553

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!