Horizon broken for multi region setup

Bug #1780974 reported by Mathieu Goessens
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Won't Fix
Undecided
Unassigned
devstack
Expired
Undecided
Unassigned

Bug Description

Hi,

Devstack supports multi-region setup according to https://docs.openstack.org/devstack/latest/configuration.html#multi-region-setup.

However, when using this setup, with a stable/queens (did not test master branch), user may be unable to log into horizon. The following message is displayed in /var/log/apache2/horizon_error.log :

--- snip ---
2018-07-10 13:06:52.280635 ERROR openstack_auth.backend Using signed cookies as SESSION_ENGINE with OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT is enabled. This disables the ability to perform identity operations due to cookie size constraints.
--- snip ---

User can manually change the session engine and the cache backend by editing /opt/stack/horizon/openstack_dashboard/settings.py, adding the following lines at the end (SESSION_ENGINE may be already being defined earlier) and restarting apache

--- snip ---
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
        'LOCATION': '/var/tmp/django_cache',
    }
}
--- snip ---

It may be nice that devstack automatically perform this kind of configuration (maybe with a better cache backend) when the REGION_NAME, KEYSTONE_REGION_NAME, or MULTI_REGION are changed, or at least to document it in https://docs.openstack.org/devstack/latest/configuration.html#multi-region-setup (as it may be hard to detect when a region is added).

Cheers,

Revision history for this message
Mathieu Goessens (gebura) wrote :

For the sake of the completeness: no message is displayed in the horizon dashboard, the user is only redirected again and again to the login form, making it hard to understand what the problem could be.

Revision history for this message
Michael J Burling (mburling) wrote :

Aside from the inconvenience posed by changing this setting manually, I haven't looked too closely at the differences between the session engines, and I'm not sure if selecting `django.contrib.sessions.backends.cache` is a mistake for other reasons. Can anyone confirm that this is an acceptable workaround in the interim? Thanks!

Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

It looks like a configuration issue which should be fixed in devstack

Changed in horizon:
status: New → Won't Fix
Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

Is this still happening? I think we would consider marking this as unsupported unless anyone submits a fix.

Changed in devstack:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for devstack because there has been no activity for 60 days.]

Changed in devstack:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.