<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div style="font-family: tahoma, 'new york', times, serif; 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-family: tahoma, 'new york', times, serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">I found this blog to help me so far <a href="http://kimizhang.wordpress.com/2013/08/08/openstack-grizzly-quantum-advanced-features-2/" style="font-size: 10pt;">http://kimizhang.wordpress.com/2013/08/08/openstack-grizzly-quantum-advanced-features-2/</a></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div
style="background-color: transparent;"><font size="2">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, 'new york', times, serif; font-style: normal;"><font size="2">root 27508 2718 0 14:16 pts/1 00:00:00 grep haproxy</font></div><div style="background-color: transparent;"><font size="2"><span></span></font></div><div style="background-color: transparent;"><font size="2"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; font-style: normal;"><font size="2">My logs show an issue with haproxy:</font></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="background-color:
transparent;"><font size="2" style="color: rgb(121, 74, 114);">RuntimeError: </font></div><div style="background-color: transparent;"><font size="2" 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 size="2" 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 size="2" style="color: rgb(121, 74, 114);">Exit code: 255</font></div><div style="background-color: transparent;"><font size="2" style="color: rgb(121, 74, 114);">Stdout: ''</font></div><div style="background-color: transparent;"><font size="2" 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 size="2" 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 size="2" style="color: rgb(121, 74, 114);">Traceback (most recent call last):</font></div><div style="background-color: transparent;"><font size="2" 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 size="2" style="color: rgb(121, 74, 114);"> self.driver.create(logical_config)</font></div><div style="background-color: transparent;"><font size="2" 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 size="2" style="color: rgb(121, 74, 114);"> self._spawn(logical_config)</font></div><div style="background-color: transparent;"><font size="2" 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 size="2" style="color: rgb(121, 74, 114);"> ns.netns.execute(cmd)</font></div><div style="background-color: transparent;"><font size="2" 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 size="2" style="color: rgb(121, 74, 114);"> check_exit_code=check_exit_code)</font></div><div style="background-color: transparent;"><font size="2" 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 size="2" style="color: rgb(121, 74, 114);"> raise RuntimeError(m)</font></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Any ideas?</div><div style="font-family: tahoma, 'new york', times, serif; font-size: 13px; color: rgb(0, 0, 0); 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> 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 class="y_msg_container"><br>
<div id="yiv2097131310"><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 class="yiv2097131310gmail_extra"><br><br><div class="yiv2097131310gmail_quote">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 class="yiv2097131310gmail_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><font face="tahoma, new york, times, serif">Hi all!</font></div>
<div><span style="font-family:tahoma,;font-size:13px;">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 style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;"><span style="font-family:tahoma,;font-size:13px;">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></body></html>