Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1278851

Summary: [RFE] Disable sticky session for a particular route
Product: OpenShift Container Platform Reporter: Ryan Howe <rhowe>
Component: RFEAssignee: Ben Bennett <bbennett>
Status: CLOSED CURRENTRELEASE QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.0CC: akokshar, aos-bugs, bbennett, erich, jokerman, mmccomas, pdwyer, pep, rhowe, sjr, sreber, tdawson, vwalek
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-18 13:04:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1267746    

Description Ryan Howe 2015-11-06 14:43:44 UTC
Description of problem:
Ability to disable sticky sessions in the route 

Currently this is done in the router underlying configuration. 
https://docs.openshift.com/enterprise/3.0/architecture/core_concepts/routes.html#haproxy-template-router

Additional info:
Upstream RFE: 
https://github.com/openshift/origin/issues/3998

Comment 2 Dan McPherson 2016-04-14 19:56:12 UTC
*** Bug 1316805 has been marked as a duplicate of this bug. ***

Comment 3 Ben Bennett 2016-07-18 19:27:36 UTC
*** Bug 1341053 has been marked as a duplicate of this bug. ***

Comment 4 Alexander Koksharov 2016-09-21 08:20:32 UTC
Update from the Customer:

The control balance option at the route level could be an interested thing.
It should be dealt with the pod affinity cookie :
a) eg. if balance option is roundrobin or leastconn, there's no need of pod affinity cookie (I hope no creation)
b) eg. if balance option is session affinity, it could be dealt with a pod affinity cookie
I hope these 2 concepts balance option and management of pod affinity cookie will be processed together.

Let us know when these features will be available in OSE v3.? version.

Comment 5 Ben Bennett 2016-10-03 13:12:35 UTC
The balance option just governs the first connection.  Subsequent ones use the affinity cookie.

We are unlikely to add this until after we support both OpenShift routes and the Kubernetes ingress object, which we are working on over the next couple of releases.

Comment 12 Ben Bennett 2017-02-09 18:48:32 UTC
There is a PR that provides the RFE you are seeking: https://github.com/openshift/origin/pull/11984

Set the annotation haproxy.router.openshift.io/disable_cookies to true on the route that you define and it will cause the router to disable session stickyness. 

This will be in 3.5.

Comment 13 Troy Dawson 2017-02-09 19:20:45 UTC
Moving this out of closed and attaching this to the 3.5 errata.