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 admin)端口。如果Horizon无法访问此端口,它将显示相同的错误。