horizon config: /home link on upper left openstack logo yields stack trace.

Bug #1039180 reported by Matt Joyce
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Matt Joyce

Bug Description

In devstack if you log in and click on the openstack logo in the top left it takes you to /home .

In all of my recent git pulls it yields a stack trace fresh from ./stack.sh

Revision history for this message
Matt Joyce (matt-nycresistor) wrote :

Environment:

Request Method: GET
Request URL: http://192.168.122.236/home/

Django Version: 1.4
Python Version: 2.7.3
Installed Applications:
('openstack_dashboard',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'compressor',
 'horizon',
 'horizon.dashboards.nova',
 'horizon.dashboards.syspanel',
 'horizon.dashboards.settings',
 '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')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/views/base.py" in user_home
  29. return shortcuts.redirect(horizon.get_user_home(request.user))
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/base.py" in get_user_home
  705. return getattr(import_module(mod), func)(user)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module
  35. __import__(name)

Exception Type: ImportError at /home/
Exception Value: No module named views

copy and paste view of stack trace.

Revision history for this message
Matt Joyce (matt-nycresistor) wrote :

Appears this COULD be devstack related...

In openstack_dashboard/local/local_settings.py

This is the config line:

HORIZON_CONFIG = {
    'dashboards': ('nova', 'syspanel', 'settings',),
    'default_dashboard': 'nova',
    'user_home': 'openstack_dashboard.views.user_home',
}

openstack_dashboard doesn't have a views path / methods etc.

Pointing back to a horizon view seems wrong here.

Thoughts?

Revision history for this message
Matt Joyce (matt-nycresistor) wrote :

Unsetting user_home in dashboard local settings seems to undo whatever nastiness is done by trying to configure it. I will chalk this one up to devstack having misconfigured horizon. I'll push the bug their way.

affects: horizon → devstack
summary: - /home link on upper left openstack logo yields stack trace.
+ horizon config: /home link on upper left openstack logo yields stack
+ trace.
Revision history for this message
Matt Joyce (matt-nycresistor) wrote :
Changed in devstack:
assignee: nobody → Matt Joyce (matt-nycresistor)
status: New → In Progress
Changed in devstack:
status: In Progress → 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.