RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1255369 - Improve session settings for horizon
Summary: Improve session settings for horizon
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: openstack-packstack
Version: Juno
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Javier Peña
QA Contact: Shai Revivo
URL:
Whiteboard:
: 1270213 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-20 11:49 UTC by Matthias Runge
Modified: 2017-06-18 07:02 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-06-18 07:02:27 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 318775 0 None None None 2016-05-19 16:51:02 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.