[Openstack] Install/Enable Quantum lbass (load balancer) feature?
Eugene Nikanorov
enikanorov at mirantis.com
Fri Aug 9 06:08:51 UTC 2013
Do you have haproxy package installed on your host?
On Fri, Aug 9, 2013 at 9:41 AM, Jake G. <dj_dark_junglist at yahoo.com> wrote:
> 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.
> I found this blog to help me so far
> http://kimizhang.wordpress.com/2013/08/08/openstack-grizzly-quantum-advanced-features-2/
>
> When I run # ps -ef | grep haproxy I dont get much:
> root 27508 2718 0 14:16 pts/1 00:00:00 grep haproxy
>
> My logs show an issue with haproxy:
>
> RuntimeError:
> Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip',
> 'netns', 'exec', 'qlbaas-e10951cd-4cca-4ba4-acc0-0ccde6817029', 'haproxy',
> '-f', '/var
> /lib/quantum/lbaas/e10951cd-4cca-4ba4-acc0-0ccde6817029/conf', '-p',
> '/var/lib/quantum/lbaas/e10951cd-4cca-4ba4-acc0-0ccde6817029/pid']
> Exit code: 255
> Stdout: ''
> Stderr: 'exec of haproxy failed: No such file or directory\n'
> 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
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/quantum/plugins/services/agent_loadbalancer/agent/manager.py",
> line 189, in refresh_device
> self.driver.create(logical_config)
> File
> "/usr/lib/python2.6/site-packages/quantum/plugins/services/agent_loadbalancer/drivers/haproxy/namespace_driver.py",
> line 48, in create
> self._spawn(logical_config)
> File
> "/usr/lib/python2.6/site-packages/quantum/plugins/services/agent_loadbalancer/drivers/haproxy/namespace_driver.py",
> line 70, in _spawn
> ns.netns.execute(cmd)
> File "/usr/lib/python2.6/site-packages/quantum/agent/linux/ip_lib.py",
> line 414, in execute
> check_exit_code=check_exit_code)
> File "/usr/lib/python2.6/site-packages/quantum/agent/linux/utils.py",
> line 61, in execute
> raise RuntimeError(m)
>
> Any ideas?
>
> ------------------------------
> *From:* Eugene Nikanorov <enikanorov at mirantis.com>
> *To:* Jake G. <dj_dark_junglist at yahoo.com>
> *Cc:* "openstack at lists.openstack.org" <openstack at lists.openstack.org>
> *Sent:* Thursday, August 8, 2013 7:04 PM
> *Subject:* Re: [Openstack] Install/Enable Quantum lbass (load balancer)
> feature?
>
> Hi Jake,
>
> Regarding lbaas in grizzly working on RHEL/Centos - it may be problematic
> as host operation system must support network namespaces.
> If you do have support for network namespaces then you need to do the
> following steps to setup lbaas service in quantum:
>
> 1) specify lbaas plugin in quantum.conf:
> service_plugins= lbaas_plugin_classpath.
> check quantum/plugins/services/agent_loadbalancer/plugin.py for correct
> path as currently the name and path has changed.
>
> 2) to enable lbaas service in horizon you need to do the following:
> add the following piece of code
> to horizon/openstack_dashboard/local/local_settings.py :
>
> OPENSTACK_QUANTUM_NETWORK = {
> 'enable_lb': False
> }
>
> 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)
>
> 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.
>
> Thanks,
> Eugene.
>
>
> On Thu, Aug 8, 2013 at 1:14 PM, Jake G. <dj_dark_junglist at yahoo.com>wrote:
>
> Hi all!
> How can we install/enable the Quantum-lbaas (load balancer) feature for
> Openstack Grizzly? I dont see any docs for RHEL/CentOS specific installs.
> I used RDO to deploy Openstack on a single node.
>
> Thank you! Jake
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130809/273ff24a/attachment.html>
More information about the Openstack
mailing list