← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1231915] Re: session_persistence attr of VIP is not returned when no session persistence is used

 

** Changed in: neutron
       Status: Fix Committed => 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/1231915

Title:
  session_persistence attr of VIP is not returned when no session
  persistence is used

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  During the investigation of bug 1231704,
  I noticed it is valid that there is no session persistence attribute
  and it means no session persistence mechanism is used in load balancing.

  It seems an intentional behavior according to the code:
  https://github.com/openstack/neutron/blob/master/neutron/db/loadbalancer/loadbalancer_db.py#L241

  IMHO, it is confusing that it is determined whether
  session_persisntece is returned or not by session persistence mode. I
  would suggest that returning "session_persistence: null" (or {}) when
  no session_persistence is used.

  
  In addition, if we send {'session_persistence': null} in lb-vip-update, session_persistence is cleared.
  It looks reasonable to me that "session_persistence = null" means no session_persistence is used.

  
  From the point of view of API, I believe all defined attributes in an extension should be returned in a response.

  I would like to ask opinions from the community.

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