OpenStack Horizon 无法找到令牌
OpenStack horizon unable to find token
我正在开发 OpenStack horizon,并按照 http://docs.openstack.org/developer/horizon/quickstart.html 的快速入门开始。
但是当我将后端服务 url 添加到 local_settings.py 并启动服务器时。它只会抛出如下错误:
Unauthorized: Could not find token, 99a3682bc1e3a0ca55cb51436a2ff766. (HTTP 401)
Unable to retrieve project list.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openstack_auth/user.py", line 308, in authorized_tenants
is_federated=self.is_federated)
File "/usr/local/lib/python2.7/dist-packages/openstack_auth/utils.py", line 145, in wrapper
result = func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openstack_auth/utils.py", line 256, in get_project_list
projects = client.tenants.list()
File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/tenants.py", line 123, in list
tenant_list = self._list('/tenants%s' % query, 'tenants')
File "/usr/local/lib/python2.7/dist-packages/keystoneclient/base.py", line 113, in _list
resp, body = self.client.get(url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 170, in get
return self.request(url, 'GET', **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 206, in request
resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 95, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py", line 336, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py", line 397, in request
raise exceptions.from_response(resp, method, url)
Unauthorized: Could not find token, 99a3682bc1e3a0ca55cb51436a2ff766. (HTTP 401)
Unable to retrieve project list.
Traceback (most recent call last):
确保您的 Horizon 可以访问您的 Openstack 部署的 35357(keystone 管理)端口。如果 Horizon 无法访问此端口,它会显示相同的错误。
我正在开发 OpenStack horizon,并按照 http://docs.openstack.org/developer/horizon/quickstart.html 的快速入门开始。 但是当我将后端服务 url 添加到 local_settings.py 并启动服务器时。它只会抛出如下错误:
Unauthorized: Could not find token, 99a3682bc1e3a0ca55cb51436a2ff766. (HTTP 401) Unable to retrieve project list. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/openstack_auth/user.py", line 308, in authorized_tenants is_federated=self.is_federated) File "/usr/local/lib/python2.7/dist-packages/openstack_auth/utils.py", line 145, in wrapper result = func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/openstack_auth/utils.py", line 256, in get_project_list projects = client.tenants.list() File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/tenants.py", line 123, in list tenant_list = self._list('/tenants%s' % query, 'tenants') File "/usr/local/lib/python2.7/dist-packages/keystoneclient/base.py", line 113, in _list resp, body = self.client.get(url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 170, in get return self.request(url, 'GET', **kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 206, in request resp = super(LegacyJsonAdapter, self).request(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 95, in request return self.session.request(url, method, **kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py", line 336, in inner return func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py", line 397, in request raise exceptions.from_response(resp, method, url) Unauthorized: Could not find token, 99a3682bc1e3a0ca55cb51436a2ff766. (HTTP 401) Unable to retrieve project list. Traceback (most recent call last):
确保您的 Horizon 可以访问您的 Openstack 部署的 35357(keystone 管理)端口。如果 Horizon 无法访问此端口,它会显示相同的错误。