Add App wizard cycles endlessly

Bug #1421427 reported by Timur Sufiev
268
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Critical
Aleksandr Didenko
5.0.x
Invalid
Undecided
Unassigned
5.1.x
Invalid
Undecided
Unassigned
6.0.x
Invalid
Undecided
Unassigned
6.1.x
Fix Released
Critical
Aleksandr Didenko

Bug Description

This is due to horizon using 'signed_cookies' backend for SESSION_ENGINE, and the browser inherent limit of 4K for per-domain cookies storage is no longer enough for Murano. Should switch in MOS configs to Memcache backend for cookies storage (since it's HA-compliant).

Tags: murano
Timur Sufiev (tsufiev-x)
tags: added: murano
Revision history for this message
Serg Melikyan (smelikyan) wrote :

Timur, do we need to move to the memcached? MySQL wouldn't be sufficient?

Revision history for this message
Serg Melikyan (smelikyan) wrote :

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

CACHES = {
    'default': {
        'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION' : "192.168.0.2:11211"
    },
    #'local': {
    # 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache'
    #}
}

И вот ссылка еще: https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/horizon/templates/local_settings.py.erb#L119

Looks like we are already using Memcache as a backend for sessions in MOS

Changed in mos:
status: New → Confirmed
status: Confirmed → Invalid
Revision history for this message
Ekaterina Chernova (efedorova) wrote :

So this bug not reproduced in MOS

Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

Fuel Team objected to using MySQL for that purpose, saying there are some problems in making it HA-compliant (as opposed to Memcached).

Revision history for this message
Serg Melikyan (smelikyan) wrote :

Memcached is already used by OpenStack Dashboard

Revision history for this message
Timur Sufiev (tsufiev-x) wrote :
Revision history for this message
Serg Melikyan (smelikyan) wrote :
Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

What's equally important for us regarding this bug is where this variable https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/horizon/templates/local_settings.py.erb#L133 is defined?

Revision history for this message
Serg Melikyan (smelikyan) wrote :
Revision history for this message
Victor Ryzhenkin (vryzhenkin) wrote :

Reproduced by Evgeny Sickachev on ISO:
{"build_id": "2015-02-15_22-54-44", "ostf_sha": "f9c37d0876141e1550eb4e703a8e500cd463282f", "build_number": "126", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-02-15_22-54-44", "ostf_sha": "f9c37d0876141e1550eb4e703a8e500cd463282f", "build_number": "126", "api": "1.0", "nailgun_sha": "1e3a40dd8a17abe1d38f42da1e0dc1a6d4572666", "production": "docker", "python-fuelclient_sha": "61431ed16fc00039a269424bdbaa410277eff609", "astute_sha": "1f87a9b9a47de7498b4061d15a8c7fb9435709d5", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "2054229e275d08898b5d079a6625ffcc79ae23b8", "fuellib_sha": "7f8d4382abfcd4338964182ebfea1d539f963e66"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "1e3a40dd8a17abe1d38f42da1e0dc1a6d4572666", "production": "docker", "python-fuelclient_sha": "61431ed16fc00039a269424bdbaa410277eff609", "astute_sha": "1f87a9b9a47de7498b4061d15a8c7fb9435709d5", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "2054229e275d08898b5d079a6625ffcc79ae23b8", "fuellib_sha": "7f8d4382abfcd4338964182ebfea1d539f963e66"}

Changed in mos:
status: Invalid → Confirmed
Revision history for this message
Ekaterina Chernova (efedorova) wrote :

The root cause of that problem is that 'django_session_engine' is not set during installation
 https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/horizon/templates/local_settings.py.erb#L132

while is defined here https://github.com/stackforge/fuel-library/blob/1e7b825756cf77acab285e42fbf79f4299437067/deployment/puppet/horizon/spec/classes/horizon_init_spec.rb#L82

Note, that on the 6.0 version of MOS everything works fine

Can we set check that this variable is always set up?

Changed in mos:
assignee: MOS Murano (mos-murano) → Fuel Dev (fuel-dev)
information type: Public → Public Security
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Assigned to fuel-library team, because we need to change puppet manifests to fix the issue.

Changed in mos:
assignee: Fuel Dev (fuel-dev) → Fuel Library Team (fuel-library)
Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Ekaterina Chernova (efedorova) wrote :
tags: added: on-verification
tags: removed: on-verification
Revision history for this message
Aleksandr Didenko (adidenko) wrote :

This bug does not affect older versions of Fuel since they use old Horizon puppet module with hardcoded SESSION_ENGINE. I've marked bug as invalid for those versions.

To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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