Tag Archives: openstack lbaas

How to configure Openstack LBaaS manually after Staypuft (Icehouse or RHELOSP5+)

I know I could just set the variableĀ CONFIG_LBAAS_INSTALL to a YES and run packstack to avoid all the manual configuration, but this is not so hard to do and it become very usefull when:

– You want to add the LBaaS service to an existing deployment

– You use Foreman + Staypuft to deploy the multi-node openstack infrastructure

– You just want to understand how it works and all the involved resources

Let’s do it:

NEUTRON SERVER (Controller):

vi /etc/neutron/neutron.conf

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

service_plugin: neutron.services.loadbalancer.plugin.LoadBalancerPlugin

service neutron-server restart


HORIZON (Controller)


‘enable_lb': True,

systemctl restart httpd



yum install haproxy

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 = nogroup

groupadd nogroup # very important !!!!


Notes regarding floating IPs:

If you have problems adding a floating IP to a LBaaS VIP from HorizonĀ  (some RHELOSP 5 versions) please follow the next steps:

-Configure a VIP using the same local LAN as the Real Servers being balanced

-Generate a new floating IP

-Assign the previously created floating IP to the Local IP used during the VIP configuration (you can also do this using the “add floating ip” option from any instance)