← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1552086] Re: LBaaS v2 updating pool clears session_persistence

 

Reviewed:  https://review.openstack.org/287004
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=16c423fa175779c19ba93ce4a21597071dbb7194
Submitter: Jenkins
Branch:    master

commit 16c423fa175779c19ba93ce4a21597071dbb7194
Author: Stephen Balukoff <stephen@xxxxxxxxxxxx>
Date:   Tue Mar 1 22:14:57 2016 -0800

    Fix delete of session_persistence with pool update
    
    Our LBaaSv2 database code was set to delete a pool's session_persistence
    if the pool was updated and the update API request did not include
    mention of the session_persistence. Expected behavior would be to not
    change the session_persistence.
    
    In addition, while editing this code it became obvious that we didn't
    provide a good way to clear the session_persistence for a pool once it
    was set, especially via the CLI. This has also been corrected.
    
    Change-Id: I654b172927e1d96677a7da9e0846231b0ac48aa9
    Depends-On: Idcf12e463fbaa3a61a211f13986d8472f52036d2
    Closes-Bug: #1552086
    Partial-Bug: #1547157


** Changed in: neutron
       Status: In Progress => Fix Released

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

Title:
  LBaaS v2 updating pool clears session_persistence

Status in neutron:
  Fix Released

Bug description:
  It appears that whenever a lbaasv2 is updated, if the update does not
  contain an update to the pool's session_persistence, then the pool's
  session_persistence gets cleared.  Observe:

  Run:

  # neutron lbaas-loadbalancer-create --name lb1 private-subnet
  # neutron lbaas-listener-create --name listener1 --loadbalancer lb1 --protocol HTTP --protocol-port 80
  # neutron lbaas-pool-create --name pool1 --lb-algorithm ROUND_ROBIN --listener listener1 --protocol HTTP --session-persistence type=SOURCE_IP

  lbaas_sessionpersistences table looks like:

  mysql> select * from lbaas_sessionpersistences;
  +--------------------------------------+-----------+-------------+
  | pool_id                              | type      | cookie_name |
  +--------------------------------------+-----------+-------------+
  | faa5d800-60c1-49e6-aab7-c3d737098837 | SOURCE_IP | NULL        |
  +--------------------------------------+-----------+-------------+
  1 row in set (0.00 sec)

  Now update something other than the session_persistence on the pool:

  # neutron lbaas-pool-update --lb_algorithm=ROUND_ROBIN pool1

  lbaas_sessionpersistences table looks like:

  mysql> select * from lbaas_sessionpersistences;
  Empty set (0.00 sec)

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


References