← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1469604] Re: LbbasV2-Session persitence HTTP_COOKIE-no cookie sent to client

 

[Expired for neutron because there has been no activity for 60 days.]

** Changed in: neutron
       Status: Incomplete => Expired

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

Title:
  LbbasV2-Session persitence HTTP_COOKIE-no cookie sent to client

Status in neutron:
  Expired

Bug description:
  we configured lbaasv2. LB , listener are created . Thenext step is the
  pool and members

  neutron lbaas-pool-create --lb-algorithm ROUND_ROBIN --listener
  5dd91024-148e-4d80-842f-3122725d0164 --protocol HTTP

  neutron lbaas-member-create 6b7b5daa-f773-46ca-8045-bb1f8ae8fcec
  --protocol-port 80 --subnet 67897b9a-e5dd-405a-80db-7e36ead62c27
  --address 192.168.1.3

  neutron lbaas-member-create 6b7b5daa-f773-46ca-8045-bb1f8ae8fcec
  --protocol-port 80 --subnet 67897b9a-e5dd-405a-80db-7e36ead62c27
  --address 192.168.1.4

  LB works properly.
  After updating the pool to use session persistence with HTTP_COOKIE we captured traffic on LB interface and saw that no cookie send towards the clients.

  neutron lbaas-pool-update 6b7b5daa-f773-46ca-8045-bb1f8ae8fcec
  --session-persistence type=dict type=HTTP_COOKIE

  _______no session persistence_______
  .}._.Z~(HTTP/1.1 200 OK
  Date: Mon, 29 Jun 2015 09:47:09 GMT
  Server: Apache/2.2.15 (Red Hat)
  Last-Modified: Mon, 29 Jun 2015 09:45:01 GMT
  ETag: "23196-b-519a4f18f88f8"
  Accept-Ranges: bytes
  Content-Length: 11
  Content-Type: text/html; charset=UTF-8

  _______With session persitence configured________
  ~...\.cHTTP/1.1 200 OK
  Date: Mon, 29 Jun 2015 09:48:48 GMT
  Server: Apache/2.2.15 (Red Hat)
  Last-Modified: Mon, 29 Jun 2015 09:45:01 GMT
  ETag: "23196-b-519a4f18f88f8"
  Accept-Ranges: bytes
  Content-Length: 11
  Content-Type: text/html; charset=UTF-8

  NO ADDITIONAL HEADER ADDED

  LOGS:
  2015-06-29 08:48:02.842 18502 ERROR neutron_lbaas.agent.agent_manager [req-1a780c1f-9226-4515-a50d-dc8c0d63cb80 ] Create pool 6b7b5daa-f773-46ca-8045-bb1f8ae8fcec failed on device driver haproxy_ns
  2015-06-29 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager Traceback (most recent call last):
  2015-06-29 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/agent/agent_manager.py", line 339, in update_pool
  2015-06-29 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     driver.pool.update(old_pool, pool)
  2015-06-29 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager   File "/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 416, in update
  2015-06-29 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     self.driver.loadbalancer.refresh(new_pool.listener.loadbalancer)
  2015-06-29 08:48:02.842 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 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     if (not self.driver.deploy_instance(loadbalancer) and
  2015-06-29 08:48:02.842 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 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     return f(*args, **kwargs)
  2015-06-29 08:48:02.842 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 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     self.update(loadbalancer)
  2015-06-29 08:48:02.842 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 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     self._spawn(loadbalancer, extra_args)
  2015-06-29 08:48:02.842 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 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     haproxy_base_dir)
  2015-06-29 08:48:02.842 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 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     haproxy_base_dir)
  2015-06-29 08:48:02.842 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 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     loadbalancer = _transform_loadbalancer(loadbalancer, haproxy_base_dir)
  2015-06-29 08:48:02.842 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 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     x, haproxy_base_dir) for x in loadbalancer.listeners]
  2015-06-29 08:48:02.842 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 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     ret_value['default_pool'] = _transform_pool(listener.default_pool)
  2015-06-29 08:48:02.842 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 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     pool.sessionpersistence)
  2015-06-29 08:48:02.842 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 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager     'type': persistence.type,
  2015-06-29 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager AttributeError: 'dict' object has no attribute 'type'
  2015-06-29 08:48:02.842 18502 TRACE neutron_lbaas.agent.agent_manager

  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/1469604/+subscriptions


References