<div dir="ltr">Jake, haproxy.cfg is created by lbaas agent when you deploy an instance.<div>Are you sure your host os has namespace support?</div><div><br></div><div>Eugene.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Aug 9, 2013 at 12:30 PM, Jake G. <span dir="ltr"><<a href="mailto:dj_dark_junglist@yahoo.com" target="_blank">dj_dark_junglist@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_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><span>Good call!</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,'new york',times,serif">
<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="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,'new york',times,serif">
<span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,'new york',times,serif"><span>Thank you</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,'new york',times,serif">
<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 face="Arial"><div class="im">
<b><span style="font-weight:bold">From:</span></b> Eugene Nikanorov <<a href="mailto:enikanorov@mirantis.com" target="_blank">enikanorov@mirantis.com</a>><br> <b><span style="font-weight:bold">To:</span></b> Jake G. <<a href="mailto:dj_dark_junglist@yahoo.com" target="_blank">dj_dark_junglist@yahoo.com</a>> <br>
<b><span style="font-weight:bold">Cc:</span></b> "<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>" <<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>> <br>
</div><b><span style="font-weight:bold">Sent:</span></b> Friday, August 9, 2013 3:08 PM<div><div class="h5"><br> <b><span style="font-weight:bold">Subject:</span></b> Re: [Openstack] Install/Enable Quantum lbass (load balancer) feature?<br>
</div></div></font> </div><div><div class="h5"> <div><br>
<div><div dir="ltr">Do you have haproxy package installed on your host?</div><div><br><br><div>On Fri, Aug 9, 2013 at 9:41 AM, Jake G. <span dir="ltr"><<a rel="nofollow" href="mailto:dj_dark_junglist@yahoo.com" target="_blank">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,'new york',times,serif"><div>
<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>
I found this blog to help me so far <a href="http://kimizhang.wordpress.com/2013/08/08/openstack-grizzly-quantum-advanced-features-2/" target="_blank">http://kimizhang.wordpress.com/2013/08/08/openstack-grizzly-quantum-advanced-features-2/</a></div>
<div><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><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>
<font>My logs show an issue with haproxy:</font></div><div><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>
<br></div><div>Any ideas?</div><div>
<br></div><div> </div><div><div> </div><div style="font-size:12pt">
<div> <div dir="ltr"> <hr size="1"> <font face="Arial"> <b><span style="font-weight:bold">From:</span></b> Eugene Nikanorov <<a rel="nofollow" href="mailto:enikanorov@mirantis.com" target="_blank">enikanorov@mirantis.com</a>><br>
<b><span style="font-weight:bold">To:</span></b> Jake G. <<a rel="nofollow" href="mailto:dj_dark_junglist@yahoo.com" target="_blank">dj_dark_junglist@yahoo.com</a>> <br><b><span style="font-weight:bold">Cc:</span></b> "<a rel="nofollow" href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>" <<a rel="nofollow" href="mailto:openstack@lists.openstack.org" target="_blank">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> <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" href="mailto:dj_dark_junglist@yahoo.com" target="_blank">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><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: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a rel="nofollow" href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a rel="nofollow" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">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> </div> </div></div></blockquote></div><br></div>