Invalid memcache configuration causes dashboard error

Bug #1425169 reported by Victor Ryzhenkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Ryan Moe
6.0.x
Invalid
Undecided
Ryan Moe

Bug Description

ISO: {"build_id": "2015-02-23_22-54-44", "ostf_sha": "1a0b2c6618fac098473c2ed5a9af11d3a886a3bb", "build_number": "140", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-02-23_22-54-44", "ostf_sha": "1a0b2c6618fac098473c2ed5a9af11d3a886a3bb", "build_number": "140", "api": "1.0", "nailgun_sha": "3616ae9df4ac3e088157bb94f73743a521f76f1a", "production": "docker", "python-fuelclient_sha": "5657dbf06fddb74adb61e9668eb579a1c57d8af8", "astute_sha": "d81ff53c2f467151ecde120d3a4d284e3b5b3dfc", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "b975019fabdb429c1869047df18dd792d2163ecc", "fuellib_sha": "8b79d47ef41bff293210d2a7b1bb02843f70948d"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "3616ae9df4ac3e088157bb94f73743a521f76f1a", "production": "docker", "python-fuelclient_sha": "5657dbf06fddb74adb61e9668eb579a1c57d8af8", "astute_sha": "d81ff53c2f467151ecde120d3a4d284e3b5b3dfc", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "b975019fabdb429c1869047df18dd792d2163ecc", "fuellib_sha": "8b79d47ef41bff293210d2a7b1bb02843f70948d"}

STEPS:
1. Deploy OS-Neutron GRE in Ubuntu 12.04, All Ceph, Murano.
2. Login to Horizon Dashboard

Actual result:
Something went wrong window.

LOGS:

<139>Feb 24 16:00:49 node-1 dashboard-django.request: ERROR Internal Server Error: /horizon/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 88, in get_response
    response = middleware_method(request)
  File "/usr/lib/python2.7/dist-packages/horizon/middleware.py", line 93, in process_request
    if not hasattr(request, "user") or not request.user.is_authenticated():
  File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 213, in inner
    self._setup()
  File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 298, in _setup
    self._wrapped = self._setupfunc()
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/middleware.py", line 18, in <lambda>
    request.user = SimpleLazyObject(lambda: get_user(request))
  File "/usr/lib/python2.7/dist-packages/openstack_auth/utils.py", line 47, in middleware_get_user
    request._cached_user = get_user(request)
  File "/usr/lib/python2.7/dist-packages/openstack_auth/utils.py", line 53, in get_user
    user_id = request.session[auth.SESSION_KEY]
  File "/usr/lib/python2.7/dist-packages/django/contrib/sessions/backends/base.py", line 47, in __getitem__
    return self._session[key]
  File "/usr/lib/python2.7/dist-packages/django/contrib/sessions/backends/base.py", line 173, in _get_session
    self._session_cache = self.load()
  File "/usr/lib/python2.7/dist-packages/django/contrib/sessions/backends/cache.py", line 30, in load
    self.create()
  File "/usr/lib/python2.7/dist-packages/django/contrib/sessions/backends/cache.py", line 48, in create
    "Unable to create a new session key. "

SOLUTION:
The key of this bug located in /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py

In CACHES dict we have LOCATION key, that looks:
'LOCATION': '192.168.0.3192.168.0.4192.168.0.5:11211'

We need to change this string to:
'LOCATION': ['192.168.0.3:11211',
             '192.168.0.4:11211',
             '192.168.0.5:11211',
            ]

Changed in fuel:
status: New → Incomplete
status: Incomplete → Confirmed
Changed in fuel:
assignee: nobody → Fuel Library Team (fuel-library)
importance: Undecided → Critical
milestone: none → 6.1
description: updated
Ryan Moe (rmoe)
Changed in fuel:
status: Confirmed → Triaged
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Oleksiy Molchanov (omolchanov)
Ryan Moe (rmoe)
Changed in fuel:
assignee: Oleksiy Molchanov (omolchanov) → Ryan Moe (rmoe)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/158944

Changed in fuel:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/158944
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=510e82f3fd21e45fe757058bf5e658669765f02e
Submitter: Jenkins
Branch: master

commit 510e82f3fd21e45fe757058bf5e658669765f02e
Author: Ryan Moe <email address hidden>
Date: Tue Feb 24 17:28:41 2015 -0800

    Add support for multiple cache backends to Horizon local_settings template

    The template we used to override the upstream one only supported one
    memcached server. The relevant section from the upstream template
    has been moved over.

    Change-Id: Id170ac3ce1c222d0e8fbe9a3536b93bf4fc4e518
    Closes-bug: #1425169

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Victor Ryzhenkin (vryzhenkin) wrote :

Verified on MOS 6.1 ISO #153

Changed in fuel:
status: Fix Committed → Fix Released
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.