<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div><span>Good call!</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Looks like i did but the service wont start. Do you have a sample haproxy.cfg file that will work with Openstack?</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Thank you</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div> <div style="font-family:
tahoma, 'new york', times, serif; font-size: 10pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Eugene Nikanorov <enikanorov@mirantis.com><br> <b><span style="font-weight: bold;">To:</span></b> Jake G. <dj_dark_junglist@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "openstack@lists.openstack.org" <openstack@lists.openstack.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, August 9, 2013 3:08 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Openstack] Install/Enable Quantum lbass (load balancer) feature?<br> </font> </div> <div class="y_msg_container"><br>
<div id="yiv6267284332"><div dir="ltr">Do you have haproxy package installed on your host?</div><div class="yiv6267284332gmail_extra"><br><br><div class="yiv6267284332gmail_quote">On Fri, Aug 9, 2013 at 9:41 AM, Jake G. <span dir="ltr"><<a rel="nofollow" ymailto="mailto:dj_dark_junglist@yahoo.com" target="_blank" href="mailto:dj_dark_junglist@yahoo.com">dj_dark_junglist@yahoo.com</a>></span> wrote:<br>
<blockquote class="yiv6267284332gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size: 10pt; font-family: tahoma, 'new york', times, serif;"><div style="font-family:tahoma,;font-size:10pt;">
<span>I have enabled LBaas on my openstack, but after adding a pool, vip, members, and monitor successfully I am still unable to get load balancing working. </span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;">
I found this blog to help me so far http://kimizhang.wordpress.com/2013/08/08/openstack-grizzly-quantum-advanced-features-2/</div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;"><br></div><div style="background-color:transparent;"><font>When I run <span style="color:rgb(121,74,114);"># ps -ef | grep haproxy</span> I dont get much: </font></div>
<div style="background-color:transparent;color:rgb(121,74,114);font-size:13px;font-family:tahoma,;font-style:normal;"><font>root 27508 2718 0 14:16 pts/1 00:00:00 grep haproxy</font></div><div style="background-color:transparent;">
<font><span></span></font></div><div style="background-color:transparent;"><font><br></font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;">
<font>My logs show an issue with haproxy:</font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;"><br></div><div style="background-color:transparent;">
<font style="color:rgb(121,74,114);">RuntimeError: </font></div><div style="background-color:transparent;"><font style="color:rgb(121,74,114);">Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip', 'netns', 'exec', 'qlbaas-e10951cd-4cca-4ba4-acc0-0ccde6817029', 'haproxy', '-f', '/var</font></div>
<div style="background-color:transparent;"><font style="color:rgb(121,74,114);">/lib/quantum/lbaas/e10951cd-4cca-4ba4-acc0-0ccde6817029/conf', '-p', '/var/lib/quantum/lbaas/e10951cd-4cca-4ba4-acc0-0ccde6817029/pid']</font></div>
<div style="background-color:transparent;"><font style="color:rgb(121,74,114);">Exit code: 255</font></div><div style="background-color:transparent;"><font style="color:rgb(121,74,114);">Stdout: ''</font></div><div style="background-color:transparent;">
<font style="color:rgb(121,74,114);">Stderr: '<span style="font-weight:bold;">exec of haproxy failed: No such file or directory</span>\n'</font></div><div style="background-color:transparent;"><font style="color:rgb(121,74,114);">2013-08-09 14:16:17 ERROR [quantum.plugins.services.agent_loadbalancer.agent.manager] Unable to refresh device for pool: e10951cd-4cca-4ba4-acc0-0ccde6817029</font></div>
<div style="background-color:transparent;"><font style="color:rgb(121,74,114);">Traceback (most recent call last):</font></div><div style="background-color:transparent;"><font style="color:rgb(121,74,114);"> File "/usr/lib/python2.6/site-packages/quantum/plugins/services/agent_loadbalancer/agent/manager.py", line 189, in refresh_device</font></div>
<div style="background-color:transparent;"><font style="color:rgb(121,74,114);"> self.driver.create(logical_config)</font></div><div style="background-color:transparent;"><font style="color:rgb(121,74,114);"> File "/usr/lib/python2.6/site-packages/quantum/plugins/services/agent_loadbalancer/drivers/haproxy/namespace_driver.py", line 48, in create</font></div>
<div style="background-color:transparent;"><font style="color:rgb(121,74,114);"> self._spawn(logical_config)</font></div><div style="background-color:transparent;"><font style="color:rgb(121,74,114);"> File "/usr/lib/python2.6/site-packages/quantum/plugins/services/agent_loadbalancer/drivers/haproxy/namespace_driver.py", line 70, in _spawn</font></div>
<div style="background-color:transparent;"><font style="color:rgb(121,74,114);"> ns.netns.execute(cmd)</font></div><div style="background-color:transparent;"><font style="color:rgb(121,74,114);"> File "/usr/lib/python2.6/site-packages/quantum/agent/linux/ip_lib.py", line 414, in execute</font></div>
<div style="background-color:transparent;"><font style="color:rgb(121,74,114);"> check_exit_code=check_exit_code)</font></div><div style="background-color:transparent;"><font style="color:rgb(121,74,114);"> File "/usr/lib/python2.6/site-packages/quantum/agent/linux/utils.py", line 61, in execute</font></div>
<div style="background-color:transparent;"><font style="color:rgb(121,74,114);"> raise RuntimeError(m)</font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;">
<br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;">Any ideas?</div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;">
<br></div><div class="yiv6267284332hm yiv6267284332HOEnZb"> </div><div style="font-family:tahoma,;font-size:10pt;"><div class="yiv6267284332hm yiv6267284332HOEnZb"> </div><div style="font-size:12pt;">
<div class="yiv6267284332hm yiv6267284332HOEnZb"> <div dir="ltr"> <hr size="1"> <font face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Eugene Nikanorov <<a rel="nofollow" ymailto="mailto:enikanorov@mirantis.com" target="_blank" href="mailto:enikanorov@mirantis.com">enikanorov@mirantis.com</a>><br>
<b><span style="font-weight:bold;">To:</span></b> Jake G. <<a rel="nofollow" ymailto="mailto:dj_dark_junglist@yahoo.com" target="_blank" href="mailto:dj_dark_junglist@yahoo.com">dj_dark_junglist@yahoo.com</a>> <br><b><span style="font-weight:bold;">Cc:</span></b> "<a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>" <<a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>> <br>
<b><span style="font-weight:bold;">Sent:</span></b> Thursday, August 8, 2013 7:04 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Openstack] Install/Enable Quantum lbass (load balancer) feature?<br> </font> </div>
</div><div><div class="yiv6267284332h5"> <div><br>
<div><div dir="ltr">Hi Jake,<div><br></div><div>Regarding lbaas in grizzly working on RHEL/Centos - it may be problematic as host operation system must support network namespaces. </div><div>If you do have support for network namespaces then you need to do the following steps to setup lbaas service in quantum:<br>
</div><div><br></div><div>1) specify lbaas plugin in quantum.conf:</div><div>service_plugins= lbaas_plugin_classpath.</div><div>check quantum/plugins/services/agent_loadbalancer/plugin.py for correct path as currently the name and path has changed.</div>
<div><br></div><div>2) to enable lbaas service in horizon you need to do the following:</div><div>add the following piece of code to horizon/openstack_dashboard/local/local_settings.py :</div><div><br></div><div><div>OPENSTACK_QUANTUM_NETWORK = {</div>
<div> 'enable_lb': False</div><div>}</div></div><div><br></div><div>3) start quantum-lbaas-agent on the host providing quantum.conf and lbaas-agent.ini. lbaas-agent.ini should reflect core plugin configuration (should have proper interface driver)</div>
<div><br></div><div>Note that if host os has no namespace support, all of above will work (e.g. REST API will be functional), but you would not be able to deploy loadbalancer as lbaas agent can only work with namespaces.</div>
<div><br></div><div>Thanks,</div><div>Eugene.</div>
</div><div><br><br><div>On Thu, Aug 8, 2013 at 1:14 PM, Jake G. <span dir="ltr"><<a rel="nofollow" ymailto="mailto:dj_dark_junglist@yahoo.com" target="_blank" href="mailto:dj_dark_junglist@yahoo.com">dj_dark_junglist@yahoo.com</a>></span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:10pt;font-family:tahoma,;"><div><font face="tahoma, new york, times, serif">Hi all!</font></div>
<div><span>How can we install/enable the Quantum-lbaas (load balancer) feature for Openstack Grizzly? I dont see any docs for RHEL/CentOS specific installs. </span></div>
<div><span>I used RDO to deploy Openstack on a single node.</span><br>
</div><div><font face="tahoma, new york, times, serif"><br></font></div><div><font face="tahoma, new york, times, serif">Thank you! Jake</font></div></div></div><br>_______________________________________________<br>
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack<br>
Post to : <a rel="nofollow" ymailto="mailto:openstack@lists.openstack.org" target="_blank" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a rel="nofollow" target="_blank" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div></div><br><br></div> </div></div></div> </div> </div></div></blockquote></div><br></div></div><br><br></div> </div> </div> </div></body></html>