2015-02-24 16:52:08 |
Victor Ryzhenkin |
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',
] |
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',
] |
|