<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><br><div>Follow http://openstack.redhat.com/forum/discussion/comment/2178 <br> and http://openstack.redhat.com/Load_Balance_OpenStack_API#HAProxy<br><br>Edit /etc/neutron/neutron.conf and add the following in the default section:<br><br>[DEFAULT]<br>service_plugins = neutron.services.loadbalancer.plugin.LoadBalancerPlugin<br><br>Already there<br><br>Then edit the /etc/openstack-dashboard/local_settings file and search for enable_lb and set it to true:<br><br>OPENSTACK_NEUTRON_NETWORK = { <br> 'enable_lb': True<br>}<br><br>Done<br><br># yum install haproxy - already installed<br># vi /etc/neutron/lbaas_agent.ini - already done no changes<br><br>device_driver=neutron.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver<br>interface_driver=neutron.agent.linux.interface.OVSInterfaceDriver <br>user_group=haproxy<br><br>Comment out the line in the service_providers section: <br><br>service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default<br><br>Nothing to remove<br><br>service neutron-lbaas-agent start - already running , restarted<br>chkconfig neutron-lbaas-agent on - skipped<br>service neutron-server restart - done<br>service httpd restart - done <br><br><br>HA enabled via keepalived , Virtual IP 192.168.1.132.<br><br>Follow <a href="http://openstack.redhat.com/Load_Balance_OpenStack_API#HAProxy" target="_blank">http://openstack.redhat.com/Load_Balance_OpenStack_API#HAProxy</a> <br>and <a href="http://openstack.redhat.com/forum/discussion/798/enabling-lbaas-in-havana-and-why-is-it-not-on-by-default#Item_4" target="_blank">http://openstack.redhat.com/forum/discussion/798/enabling-lbaas-in-havana-and-why-is-it-not-on-by-default#Item_4</a> replacing "quantum" by "neutron" and using virirtual IP for one server creating /etc/haproxy/haproxy.cfg. Haproxy fails to start reporting:<br><br><br>Starting haproxy: <br><br>[ALERT] 006/135903 (12988) : Starting frontend keystone-admin-vip: cannot bind socket<br><br>[ALERT] 006/135903 (12988) : Starting frontend keystone-public-vip: cannot bind socket<br><br>. . . . . . .<br><br>Really , for any port mentioned in haproxy.cfg :-<br><br># netstat -lnp | grep 35357 tcp 0 0 0.0.0.0:35357 0.0.0.0:* LISTEN 4189/python<br># netstat -lnp | grep 5000 tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 4189/python <br>. . . . . . <br><br>Haproxy may be started ahead of openstack services, but in this case openstack services fail to start. I am missing something here <br></div> </div></body>
</html>