Monday, 23 June 2014

Steps to configure Neutron LBaaS Agent for OpenStack Icehouse




[Steps summarised from http://docs.openstack.org/admin-guide-cloud/content/install_neutron-lbaas-agent.html]



Prerequisites

Run steps from link http://itinsteps.blogspot.in/2014/06/steps-to-install-openstack-icehouse.html to setup OpenStack.
All Configuration details can be found there.




Install the Neutron LBaaS Agent and HAProxy

# yum -y install haproxy neutron-lbaas-agent



For LBaaS to be configured properly, various configuration files must have the following changes.


# vi /usr/share/neutron/neutron-dist.conf:

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



# vi /etc/neutron/neutron.conf

service_plugins = neutron.services.loadbalancer.plugin.LoadBalancerPlugin


# vi /etc/neutron/lbaas_agent.ini

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

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver

user_group = nobody


# vi /etc/openstack-dashboard/local_settings 

OPENSTACK_NEUTRON_NETWORK = {'enable_lb': True,




Comment service_provider from the file /usr/share/neutron/neutron-dist.conf to avoid the following error in server.log:
TRACE neutron.service Invalid: Driver neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver is not unique across providers



If the above configuration files were changed manually, restart the neutron-server service and neutron-lbaas-agent service.
Also, restart the httpd service.

# service httpd restart
# service neutron-server restart
# service neutron-lbaas-agent start
# chkconfig --level 345 neutron-lbaas-agent on