Ask Your Question
0

Error accessing Dashboard server from browser client

asked 2011-07-28 22:04:54 -0600

arango-mauricio gravatar image

Hi,

I installed Openstack Dashboard per the instructions in http://wiki.openstack.org/OpenStackDashboard (http://wiki.openstack.org/OpenStackDa...)

  • I successfully start the openstack-dashboard server:

(.dashboard-venv)mauricio@openstack-ubuntu:~/src/openstack-dashboard/openstack-dashboard$ tools/with_venv.sh dashboard/manage.py runserver 0.0.0.0:8000 INFO:root:Running in debug mode without debug_toolbar. INFO:root:Running in debug mode without debug_toolbar. INFO:root:Running in debug mode without debug_toolbar. INFO:root:Running in debug mode without debug_toolbar. Validating models...

0 errors found Django version 1.3, using settings 'dashboard.settings' Development server is running at http://0.0.0.0:8000/ Quit the server with CONTROL-C.

  • Successfully start the Keystone instance:

mauricio@openstack-ubuntu:~/src/keystone$ ./bin/keystone -v -d Starting the Legacy Authentication component Using config file: /home/mauricio/src/keystone/etc/keystone.conf Service API listening on 0.0.0.0:5000 Admin API listening on 0.0.0.0:5001 eventlet.wsgi.server: DEBUG (4617) wsgi starting up on http://0.0.0.0:5000/ eventlet.wsgi.server: DEBUG (4617) wsgi starting up on http://0.0.0.0:5001/

  • When I point my browser to http://localhost:8000/ I get the following error dump on the browser window:

ViewDoesNotExist at /

Could not import dashboard.views. Error was: No module named xattr

Request Method: GET Request URL: http://localhost:8000/ Django Version: 1.3 Exception Type: ViewDoesNotExist Exception Value:

Could not import dashboard.views. Error was: No module named xattr

Exception Location: /home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py in _get_callback, line 167 Python Executable: /home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/bin/python Python Version: 2.7.1 Python Path:

['/home/mauricio/src/openstack-dashboard/openstack-dashboard/dashboard', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstack', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx', '/home/mauricio/src/openstack-dashboard/django-openstack', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/mox-0.5.3-py2.7.egg', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/lib/python2.7', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/lib/python2.7/plat-linux2', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/lib/python2.7/lib-tk', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/lib/python2.7/lib-old', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages', '/home/mauricio/src/openstack-dashboard/openstack-dashboard', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/dashboard', '/home/mauricio/src/openstack-dashboard/openstack-dashboard/dashboard']

Server time: Thu, 28 Jul 2011 06:49:54 -0400 Traceback Switch to copy-and-paste view

/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/django/core/handlers/base.py in get_response

                                request.path_info)

    ...
▶ Local vars
/home/mauricio/src/openstack-dashboard/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py in resolve

                        sub_match = pattern.resolve ...
(more)
edit retag flag offensive close merge delete

8 answers

Sort by » oldest newest most voted
0

answered 2011-07-31 01:24:20 -0600

I should note that the ubuntu system was a clean install of the OS.

edit flag offensive delete link more
0

answered 2011-07-31 15:40:46 -0600

arango-mauricio gravatar image

This solved the problem. Thank you very much,

Mauricio

edit flag offensive delete link more
0

answered 2011-07-31 15:41:04 -0600

arango-mauricio gravatar image

Thanks Mark Gius, that solved my question.

edit flag offensive delete link more
0

answered 2011-07-29 00:54:00 -0600

The Glance project recently updated their code to have a new dependency on the xattr module. Can you try re-rerunning

$ python tools/install_venv.py

Then re-running the dashboard to see if that picks up the missing dependency? That process worked for me but it is entirely possible I have xattr installed somewhere on my system masking this issue for me.

edit flag offensive delete link more
0

answered 2011-07-29 01:43:03 -0600

arango-mauricio gravatar image

Thanks Mark,

Tried re-running
$ python tools/install_venv.py

but the problem continues......

Mauricio

edit flag offensive delete link more
0

answered 2011-07-29 06:25:52 -0600

Alright, that probably means I've got xattr installed through some other means. I'll take a look at this tomorrow, it probably means one of the dependencies files are out of date.

You can get around this in the meantime by installing xattr yourself through pip or easy_install.

$ pip install xattr $ easy_install xattr

Depending on your setup you may need to run those with root privs.

edit flag offensive delete link more
0

answered 2011-07-29 12:38:55 -0600

arango-mauricio gravatar image

Thank you very much for your help, Mark.

Unfortunately this didn't work. Tried restarting my machine and repeating the Dashboard reinstall, bu still get the same error.

Mauricio

edit flag offensive delete link more
0

answered 2011-07-31 01:23:36 -0600

How odd that the local install of xattr didn't work...

I added xattr to the list of dependencies for the dashboard, and was able to get the dashboard splash page to load successfully. That change has been pushed to 4P/openstack-dashboard/master

My system was Ubuntu 11.04 desktop, with the following packages installed through apt:

git bzr python-dev vim-nox python-virtualenv

I then checked out openstack-dashboard and ran

$ python tools/install_venv.py

Followed by creating local_settings.py and then running the dashboard. Splash page loaded successfully. I don't have anything else from openstack running right now so I haven't seen if any other glance functionality is broken.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-07-28 22:04:54 -0600

Seen: 223 times

Last updated: Jul 31 '11