Error 401 at localhost/admin/

asked 2014-03-14 22:32:01 -0500

Null Pointer gravatar image

updated 2014-03-14 22:35:54 -0500

I just did a fresh installation of ubuntu 12.04 and installed openstack on it by using devstack.

'stack.sh' was completed successfully but now whenever I enter 'localhost' in my web browser I get this error

Unauthorized at /admin/

Unauthorized (HTTP 401)

Request Method:     GET
Request URL:    http://localhost/admin/
Django Version:     1.5.5
Exception Type:     Unauthorized
Exception Value:    

Unauthorized (HTTP 401)

Exception Location:     /opt/stack/python-novaclient/novaclient/client.py in _cs_request, line 275
Python Executable:  /usr/bin/python

I tried https://ask.openstack.org/en/question/3571/nova-client-error-unauthorized-http-401/ (this) solution but it didn't help! Also I copied the local.conf from samples folder to devstack directory and added these lines to it:

[[local|localrc]]
DATABASE_PASSWORD=
RABBIT_PASSWORD=
SERVICE_TOKEN=
SERVICE_PASSWORD=
ADMIN_PASSWORD=

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
# Optional, to enable tempest configuration as part of devstack
enable_service tempest

Please help me! Thanks a lot!

edit retag flag offensive close merge delete