[Openstack] Problems with dashboard and keystone

李沐洋 limuyang08 at gmail.com
Fri Oct 14 02:39:43 UTC 2011


Hi all!

I installed OpenStack using the script from devstack.

It seemed all right until I logged in Dashboard.

It showed

Unable to get usage info: 401 Unauthorized This server could not verify that
> you are authorized to access the document you requested. Either you supplied
> the wrong credentials (e.g., bad password), or your browser does not
> understand how to supply the credentials required.
>

at the very first page after logged in

And when I tried to launch an instance, an even critical error occurred...

this is the traceback:

Environment:
>
>
> Request Method: GET
> Request URL: http://localhost/dash/2/images/5/launch
>
> Django Version: 1.3
> Python Version: 2.7.1
> 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 "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
> in get_response
>   111.                         response = callback(request, *callback_args,
> **callback_kwargs)
> File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py"
> in _wrapped_view
>   23.                 return view_func(request, *args, **kwargs)
> File
> "/opt/stack/dash/django-openstack/django_openstack/dash/views/images.py" in
> launch
>   189.     quotas = api.tenant_quota_get(request, request.user.tenant_id)
> File "/opt/stack/dash/django-openstack/django_openstack/api.py" in
> tenant_quota_get
>   647.     return novaclient(request).quotas.get(tenant)
> File "/opt/stack/python-novaclient/novaclient/v1_1/quotas.py" in get
>   34.         return self._get("/os-quota-sets/%s" % (tenant_id),
> "quota_set")
> File "/opt/stack/python-novaclient/novaclient/base.py" in _get
>   79.         resp, body = self.api.client.get(url)
> File "/opt/stack/python-novaclient/novaclient/client.py" in get
>   131.         return self._cs_request(url, 'GET', **kwargs)
> File "/opt/stack/python-novaclient/novaclient/client.py" in _cs_request
>   127.                 raise ex
>
> Exception Type: Unauthorized at /dash/2/images/5/launch
> Exception Value: n/a (HTTP 401)
>

Thanks for your help in advance!


-- 
Sincerely
Muyang Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20111014/4a88a12e/attachment.html>


More information about the Openstack mailing list