Bug 1255369

Summary: Improve session settings for horizon
Product: [Community] RDO Reporter: Matthias Runge <mrunge>
Component: openstack-packstackAssignee: Javier Peña <jpena>
Status: CLOSED CURRENTRELEASE QA Contact: Shai Revivo <srevivo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JunoCC: aortega, chris.brown, derekh, emacchi, ichavero, jpena, mpavlase, mrunge, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-18 07:02:27 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:

Description Matthias Runge 2015-08-20 11:49:02 UTC
Description of problem:
/etc/openstack-dashboard/local_settings
misses
 
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

We're currently not setting up a memcache, but not setting to use it as store for sessions

Horizon uses signed cookies by default for session storage. Unfortunately, this has a size limitation of 4k.

Comment 3 Matthias Runge 2015-09-18 19:08:22 UTC
Better option is to set up a database for horizon session data, memcached and to use 
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"

Comment 4 Alan Pevec (Fedora) 2015-10-30 10:33:10 UTC
*** Bug 1270213 has been marked as a duplicate of this bug. ***

Comment 5 Emilien Macchi 2015-12-02 19:37:41 UTC
which installer are you taking about?
puppet-horizon already supports django_session_engine parameter in init.pp - I'm interested to know what change you want in OPM.

Comment 6 Matthias Runge 2015-12-02 20:35:57 UTC
The last time (about a week ago) I used packstack, and the setting from comment#3 was not added (or something similar)

Comment 7 Matthias Runge 2015-12-02 20:36:55 UTC
Oh, btw. it was rhos-8 that I installed for my local tests here; I don't have the environment to use osp-d.

Comment 9 Javier Peña 2016-05-19 16:51:03 UTC
I have proposed https://review.openstack.org/318775 with a fix. The patch uses memcache as backend and 'django.contrib.sessions.backends.cache' as SESSION_ENGINE, since setting up a database for caching would go beyond the Packstack use case.

Comment 10 Christopher Brown 2017-06-18 07:02:27 UTC
Fixed was merged so closing this.