Dashboard error "ImproperlyConfigured"

Asked by Rubens Pinheiro

Hello,
I've got this error when I try run the dashboard:

Exception Type: ImproperlyConfigured
Exception Value: Module "django_openstack.context_processors" does not define a "object_store" callable request processor

Here is the traceback:
Environment:

Request Method: GET
Request URL: http://0.0.0.0:8000/auth/login/?next=/dash/

Django Version: 1.3
Python Version: 2.7.2
Installed Applications:
['dashboard',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django_openstack',
 'django_openstack.templatetags',
 'mailer']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django_openstack.middleware.keystone.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'dashboard.middleware.DashboardLogUnhandledExceptionsMiddleware')

Traceback:
File "/opt/horizon/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  111. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/horizon/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/django_openstack/auth/views.py" in login
  130. }, context_instance=template.RequestContext(request))
File "/opt/horizon/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/django/template/context.py" in __init__
  176. for processor in get_standard_processors() + processors:
File "/opt/horizon/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/django/template/context.py" in get_standard_processors
  158. raise ImproperlyConfigured('Module "%s" does not define a "%s" callable request processor' % (module, attr))

Exception Type: ImproperlyConfigured at /auth/login/
Exception Value: Module "django_openstack.context_processors" does not define a "object_store" callable request processor

regards,

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Solved by:
Devin Carlen
Solved:
Last query:
Last reply:
Revision history for this message
Gabriel Hurley (gabriel-hurley) said :
#1

That context processor was added/renamed in this commit to master: https://github.com/4P/horizon/commit/c597348d6db8366a3b4d3d181e80ae5eddc415dd

It sounds like somehow you got the updated settings.py from the reference openstack_dashboard half of the codebase without getting the updated django_openstack module half of the codebase...

Can you look in openstack-dashboard/django-openstack/django_openstack/context_processors.py and see if your code there includes the updates "object_store" processor?

This also may be a PYTHONPATH problem.

Debugging any further would require knowing how you installed openstack, dashboard, etc.

All the best,

    - Gabriel

Revision history for this message
Rubens Pinheiro (rubens-pinheiro) said :
#2

Thanks Gabriel.
I've solved the problem. It was a version incompatibilities.

Best regards
Em 25-10-2011 15:20, Gabriel Hurley escreveu:
> Your question #176186 on OpenStack Dashboard (Horizon) changed:
> https://answers.launchpad.net/horizon/+question/176186
>
> Gabriel Hurley posted a new comment:
> That context processor was added/renamed in this commit to master:
> https://github.com/4P/horizon/commit/c597348d6db8366a3b4d3d181e80ae5eddc415dd
>
> It sounds like somehow you got the updated settings.py from the
> reference openstack_dashboard half of the codebase without getting the
> updated django_openstack module half of the codebase...
>
> Can you look in openstack-dashboard/django-
> openstack/django_openstack/context_processors.py and see if your code
> there includes the updates "object_store" processor?
>
> This also may be a PYTHONPATH problem.
>
> Debugging any further would require knowing how you installed openstack,
> dashboard, etc.
>
> All the best,
>
> - Gabriel
>

Revision history for this message
Best Devin Carlen (devcamcar) said :
#3

Looks like Gabriel solved this one for you.

Revision history for this message
Rubens Pinheiro (rubens-pinheiro) said :
#4

Thanks Devin Carlen, that solved my question.

Revision history for this message
Rubens Pinheiro (rubens-pinheiro) said :
#5

Ops! Sorry gabriel! I`ve put devin like the solver of this question.
How do I pass the 'solved by' to your name?

Thanks!