Horizon KeyError: 'extensions' when logging in

asked 2014-04-25 20:55:39 -0500

anonymous user

Anonymous

The following error is received when trying to login to Horizon for the first time. Seeing as I'm a newbie with OpenStack and not familiar with Python/Django at all...I need some help. Any is appreciated.

NOTE: This is installed on an Ubuntu 12.04.4 server along with all other OpenStack components running on the same machine (keystone, neutron, nova, glance).

Environment:


Request Method: GET
Request URL: http://ip_address/horizon/admin/

Django Version: 1.6.1
Python Version: 2.7.3
Installed Applications:
['openstack_dashboard.dashboards.project',
 'openstack_dashboard.dashboards.admin',
 'openstack_dashboard.dashboards.settings',
 'openstack_dashboard',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'compressor',
 'horizon',
 'openstack_auth']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'horizon.middleware.HorizonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  114.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  86.                 return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  54.             return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/decorators.py" in dec
  86.                 return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  69.             return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
  87.         return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in get
  154.         handled = self.construct_tables()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in construct_tables
  145.             handled = self.handle_table(table)
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in handle_table
  118.         data = self._get_data_dict()
File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py" in _get_data_dict
  181.             self._data = {self.table_class._meta.name: self.get_data()}
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/overview/views.py" in get_data
  60.         data = super(GlobalOverview, self).get_data()
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/views.py" in get_data
  43.         self.usage.summarize(*self.usage.get_date_range())
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py" in summarize
  200.         if not api.nova.extension_supported('SimpleTenantUsage', self.request):
File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py" in wrapped
  90.             value = cache[key] = func(*args, **kwargs)
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py" in extension_supported
  752.     extensions = list_extensions(request)
File "/usr/lib/python2.7/dist-packages/horizon/utils/memoized.py" in wrapped
  90.             value = cache[key] = func(*args, **kwargs)
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py" in list_extensions
  743.     return nova_list_extensions ...
(more)
edit retag flag offensive close merge delete

Comments

Could you run the following command (while authenticated) and update the question with its output? Thanks.

$ nova list-extensions
jpichon gravatar imagejpichon ( 2014-04-28 08:24:48 -0500 )edit

I have something similar

$ nova --debug list-extensions Output : http://paste.openstack.org/show/121538/

electrocucaracha gravatar imageelectrocucaracha ( 2014-10-16 16:04:38 -0500 )edit

I would expect Nova to reply correctly to this call no matter the version... It may be worthwhile trying to update your client, and/or file a bug against the nova client (including server and client version) at https://bugs.launchpad.net/python-nov... , I couldn't find any matching report.

jpichon gravatar imagejpichon ( 2014-10-20 07:20:50 -0500 )edit