← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1469597] [NEW] LbbasV2- LOADBALNCER IS NOT PASSING ANY SESSIONS

 

Public bug reported:

pool creation with LBmethod least connection + session persistanence
causes loadbalncing traffic to fail

neutron lbaas-loadbalancer-create 67897b9a-e5dd-405a-80db-7e36ead62c27
neutron lbaas-listener-create --loadbalancer 2b737c74-9a11-41d5-a2fa-625c20152ef5 --protocol-port 80 --protocol HTTP 
neutron lbaas-pool-create --lb-algorithm LEAST_CONNECTIONS --listener 5dd91024-148e-4d80-842f-3122725d0164 --session-persistence type=HTTP_COOKIE --protocol HTTP

2015-06-29 07:40:17.577 18502 ERROR neutron_lbaas.agent.agent_manager [req-f9775182-7ca6-4bea-ae50-9496a434995a ] Create pool 2bf157e2-4c3b-48bc-947f-b62678a9a3b2 failed on device driver haproxy_ns
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager Traceback (most recent call last):
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/agent/agent_manager.py", line 328, in create_pool
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     driver.pool.create(pool)
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 419, in create
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     self.driver.loadbalancer.refresh(pool.listener.loadbalancer)
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 364, in refresh
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     if (not self.driver.deploy_instance(loadbalancer) and
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 445, in inner
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     return f(*args, **kwargs)
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 172, in deploy_instance
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     self.update(loadbalancer)
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 181, in update
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     self._spawn(loadbalancer, extra_args)
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 347, in _spawn
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     haproxy_base_dir)
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 89, in save_config
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     haproxy_base_dir)
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 221, in render_loadbalancer_obj
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     loadbalancer = _transform_loadbalancer(loadbalancer, haproxy_base_dir)
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 236, in _transform_loadbalancer
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     x, haproxy_base_dir) for x in loadbalancer.listeners]
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 261, in _transform_listener
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     ret_value['default_pool'] = _transform_pool(listener.default_pool)
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 299, in _transform_pool
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     pool.sessionpersistence)
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 310, in _transform_session_persistence
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     'type': persistence.type,
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager AttributeError: 'dict' object has no attribute 'type'
2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager 


If we create the pool without session persistence configuration the LB
works well

Kilo+ rhel7.1
openstack-neutron-common-2015.1.0-10.el7ost.noarch
python-neutron-lbaas-2015.1.0-5.el7ost.noarch
openstack-neutron-openvswitch-2015.1.0-10.el7ost.noarch
python-neutronclient-2.4.0-1.el7ost.noarch
openstack-neutron-lbaas-2015.1.0-5.el7ost.noarch
python-neutron-fwaas-2015.1.0-3.el7ost.noarch
openstack-neutron-fwaas-2015.1.0-3.el7ost.noarch
python-neutron-2015.1.0-10.el7ost.noarch
openstack-neutron-2015.1.0-10.el7ost.noarch
openstack-neutron-ml2-2015.1.0-10.el7ost.noarch

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1469597

Title:
  LbbasV2- LOADBALNCER IS NOT PASSING ANY SESSIONS

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  pool creation with LBmethod least connection + session persistanence
  causes loadbalncing traffic to fail

  neutron lbaas-loadbalancer-create 67897b9a-e5dd-405a-80db-7e36ead62c27
  neutron lbaas-listener-create --loadbalancer 2b737c74-9a11-41d5-a2fa-625c20152ef5 --protocol-port 80 --protocol HTTP 
  neutron lbaas-pool-create --lb-algorithm LEAST_CONNECTIONS --listener 5dd91024-148e-4d80-842f-3122725d0164 --session-persistence type=HTTP_COOKIE --protocol HTTP

  2015-06-29 07:40:17.577 18502 ERROR neutron_lbaas.agent.agent_manager [req-f9775182-7ca6-4bea-ae50-9496a434995a ] Create pool 2bf157e2-4c3b-48bc-947f-b62678a9a3b2 failed on device driver haproxy_ns
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager Traceback (most recent call last):
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/agent/agent_manager.py", line 328, in create_pool
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     driver.pool.create(pool)
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 419, in create
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     self.driver.loadbalancer.refresh(pool.listener.loadbalancer)
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 364, in refresh
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     if (not self.driver.deploy_instance(loadbalancer) and
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 445, in inner
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     return f(*args, **kwargs)
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 172, in deploy_instance
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     self.update(loadbalancer)
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 181, in update
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     self._spawn(loadbalancer, extra_args)
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 347, in _spawn
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     haproxy_base_dir)
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 89, in save_config
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     haproxy_base_dir)
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 221, in render_loadbalancer_obj
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     loadbalancer = _transform_loadbalancer(loadbalancer, haproxy_base_dir)
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 236, in _transform_loadbalancer
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     x, haproxy_base_dir) for x in loadbalancer.listeners]
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 261, in _transform_listener
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     ret_value['default_pool'] = _transform_pool(listener.default_pool)
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 299, in _transform_pool
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     pool.sessionpersistence)
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py", line 310, in _transform_session_persistence
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager     'type': persistence.type,
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager AttributeError: 'dict' object has no attribute 'type'
  2015-06-29 07:40:17.577 18502 TRACE neutron_lbaas.agent.agent_manager 


  If we create the pool without session persistence configuration the LB
  works well

  Kilo+ rhel7.1
  openstack-neutron-common-2015.1.0-10.el7ost.noarch
  python-neutron-lbaas-2015.1.0-5.el7ost.noarch
  openstack-neutron-openvswitch-2015.1.0-10.el7ost.noarch
  python-neutronclient-2.4.0-1.el7ost.noarch
  openstack-neutron-lbaas-2015.1.0-5.el7ost.noarch
  python-neutron-fwaas-2015.1.0-3.el7ost.noarch
  openstack-neutron-fwaas-2015.1.0-3.el7ost.noarch
  python-neutron-2015.1.0-10.el7ost.noarch
  openstack-neutron-2015.1.0-10.el7ost.noarch
  openstack-neutron-ml2-2015.1.0-10.el7ost.noarch

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1469597/+subscriptions


Follow ups

References