openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #04791
Problems with dashboard and keystone
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
Follow ups