← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1764622] [NEW] Restarting the web server causes users to get kicked out

 

Public bug reported:

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/stack/horizon display-name=%{GROUP}

2) Configure Horizon to use Memcached.
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        '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.

** Affects: horizon
     Importance: Undecided
         Status: New

** Description changed:

- Starting with Django 1.9 and newer 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.
+ 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/stack/horizon display-name=%{GROUP}
  
  2) Configure Horizon to use Memcached.
  SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
  CACHES = {
-     'default': {
-         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
-         'LOCATION': '127.0.0.1:11211',
-     },
+     'default': {
+         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
+         '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.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1764622

Title:
  Restarting the web server causes users to get kicked out

Status in OpenStack Dashboard (Horizon):
  New

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/stack/horizon display-name=%{GROUP}

  2) Configure Horizon to use Memcached.
  SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
  CACHES = {
      'default': {
          'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
          '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.

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


Follow ups