OpenStack地平线无法找到令牌



我正在开发OpenStack horizon,并遵循http://docs.openstack.org/developer/horizon/quickstart.html的快速入门。但当我添加我的后端服务url到local_settings.py,并启动服务器。它会抛出如下错误:

未授权:无法找到令牌,99a3682bc1e3a0ca55cb51436a2ff766。401 (HTTP)无法检索项目列表。回溯(最近一次调用):文件"/usr/local/lib/python2.7/dist-packages/openstack_auth/user.py",第308行,在authorized_tenants .py中is_federated = self.is_federated)文件"/usr/local/lib/python2.7/dist-packages/openstack_auth/utils.py",第145行,在wrapper中结果= func(*args, **kwargs)文件"/usr/local/lib/python2.7/dist-packages/openstack_auth/utils.py",第256行,在get_project_list中Projects = client.tenants.list()文件"/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/tenants.py",第123行,在列表中Tenant_list = self。_list('/租户%s' ' %查询,'租户')文件"/usr/local/lib/python2.7/dist-packages/keystoneclient/base.py",第113行,在_list中Resp, body = self.client。get (url, * * kwargs)文件"/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py",第170行回归自我。请求(url, 'GET', ** *)文件"/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py",第206行,请求resp = super(LegacyJsonAdapter, self)。请求(* args, * * kwargs)文件"/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py",第95行self.session返回。请求(url,方法,**)文件"/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py",第336行返回函数(*args, **kwargs)文件"/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py",第397行,在请求中引发异常。from_response(resp, method, url)未授权:无法找到令牌,99a3682bc1e3a0ca55cb51436a2ff766。401 (HTTP)无法检索项目列表。回溯(最近一次调用):

确保Horizon可以访问Openstack部署的35357 (keystone admin)端口。如果Horizon不能访问这个端口,它将显示相同的错误。

相关内容

  • 没有找到相关文章

最新更新