Restarting the web server causes users to get kicked out
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Akihiro Motoki |
Bug Description
Starting with Django 1.9 users are kicked out to the login screen after the web server is restarted. This is especially severe when running Horizon with a high number of processes.
However, if Horizon is running with Django 1.8.19 or older, Horizon can be restarted with little to no impact.
Reproduced in Devstack stable/queens using the following additional steps.
1) Configured Apache with 30 processes.
> WSGIDaemonProcess horizon user=stack group=stack processes=30 threads=1 home=/opt/
2) Configure Horizon to use Memcached.
SESSION_ENGINE = 'django.
CACHES = {
'default': {
'BACKEND': 'django.
'LOCATION': '127.0.0.1:11211',
},
}
3) Log in to Horizon.
4) Restarted Apache.
5) Hit F5 and you will be kicked out to the login screen. Keep hitting F5 or clicking on pages and you will randomly be kicked out back to the login screen.
It will keep kicking you out until all processes has been used at least once.
description: | updated |
Changed in horizon: | |
assignee: | nobody → Mathieu Gagné (mgagne) |
status: | Confirmed → In Progress |
Changed in horizon: | |
assignee: | Mathieu Gagné (mgagne) → Adrian Turjak (adriant-y) |
Changed in horizon: | |
importance: | Undecided → High |
Changed in horizon: | |
assignee: | Adrian Turjak (adriant-y) → Akihiro Motoki (amotoki) |
tags: | added: queens-backport-potential rocky-backport-potential |
Changed in horizon: | |
assignee: | Akihiro Motoki (amotoki) → Adrian Turjak (adriant-y) |
milestone: | none → stein-2 |
Changed in horizon: | |
assignee: | Adrian Turjak (adriant-y) → Akihiro Motoki (amotoki) |
tags: | removed: queens-backport-potential rocky-backport-potential |
I agree that it's not good UX here. I'm setting this issue as 'confirmed' for now until we'll figure out if we can fix it from the horizon side. It could be a Django issue too