openstack:安装 glance,执行glance index,Failed to show index. Got error
来源:互联网 发布:ubuntu键盘键值出错 编辑:程序博客网 时间:2024/05/17 20:47
今天在安装openstack glance 的时候,遇到了下面两个问题,定位了半天,回头再看一下,都是自己不注意埋下的坑。
1、Failed to show index. Got error:
The request returned 500 Internal Server Error
The response body:
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/eventlet/wsgi.py”, line 336, in handle_one_response
result = self.application(self.environ, start_response)
File “/usr/lib/python2.7/dist-packages/webob/dec.py”, line 147, in call
resp = self.call_func(req, *args, **self.kwargs)
File “/usr/lib/python2.7/dist-packages/webob/dec.py”, line 210, in call_func
return self.func(req, *args, **kwargs)
File “/usr/lib/python2.7/dist-packages/glance/common/wsgi.py”, line 284, in call
response = req.get_response(self.application)
File “/usr/lib/python2.7/dist-packages/webob/request.py”, line 1086, in get_response
application, catch_exc_info=False)
File “/usr/lib/python2.7/dist-packages/webob/request.py”, line 1055, in call_application
app_iter = application(self.environ, start_response)
File “/usr/lib/python2.7/dist-packages/webob/dec.py”, line 147, in call
resp = self.call_func(req, *args, **self.kwargs)
File “/usr/lib/python2.7/dist-packages/webob/dec.py”, line 210, in call_func
return self.func(req, *args, **kwargs)
File “/usr/lib/python2.7/dist-packages/glance/common/wsgi.py”, line 281, in call
response = self.process_request(req)
File “/usr/lib/python2.7/dist-packages/glance/common/context.py”, line 112, in process_request
raise exception.NotAuthenticated()
NotAuthenticated: You are not authenticated.
这个问题其实从错误信息上也能看到,是没有认证通过导致的,一开始总以为是认证用户名、密码没有设置对,经过再三确认的确是没问题,查了下安装手册,发现自己没有指定认证策略。
在/etc/glance/glance-registry.conf和/etc/glance/glance-api.conf配置文件末尾加入下面两行就行。
[paste_deploy]
flavor = keystone
2、Failed to show index. Got error:
Connect error/bad request to Auth service at URL http://localhost:5000/v2.0/tokens.
解决完第一个问题后,又出现第二个问题,在网上找了下资料都说没有export OS_AUTH_URL,但是查看环境变量自己都配置了。找了半天后,突然发现自己环境变量中的OS_AUTH_URL=” http://localhost:5000/v2.0/” ” http:/”多了个空格,删掉试一下,glance index执行成功了,果真是这个引起的问题,好大一个坑。
export OS_TENANT_NAME=adminexport OS_USERNAME=adminexport OS_PASSWORD=adminexport OS_AUTH_URL="http://localhost:5000/v2.0/"
- openstack:安装 glance,执行glance index,Failed to show index. Got error
- 配置OpenStack的glance出现错误Failed to show index. Got error: You are not authenticated.
- openStack glance index
- glance index 失败解决方法
- OpenStack之安装glance
- openstack glance
- OpenStack——glance安装
- openstack【Kilo】入门 【glance篇】十一:glance安装验证
- CentOS6.2下源码安装openStack glance
- CentOS6.2下源码安装openStack glance
- openstack 安装glance出错,服务无法启动
- openstack 安装glance出错,服务无法启动
- openstack部署(3)-安装glance组件
- OpenStack安装部署之keystone&&Glance
- openstack安装glance-api服务启动失败
- OpenStack多节点安装(三):Glance
- openstack mitaka glance 官方安装步骤
- OpenStack Glance 配置
- jquery中选择器需要注意的地方之一
- JQuery--50个必备的实用jQuery代码段.
- POJ_2387_Til the Cows Come Home(USACO 2004 November)_最短路径
- iOS 使用Keychain中的kSecClassGenericPassword存储数据
- persist应用
- openstack:安装 glance,执行glance index,Failed to show index. Got error
- Android工程师级别
- Android应用基础知识
- linux 修改文件权限命令:chmod,更改某个文件或目录的所有者:chown
- 梳理spring篇-ioc机制
- JavaAPI之ConcurrentHashMap
- MySQL 5.6 my.cnf 及其可配置项
- 算法系列(九)平衡二叉查找树AVL树
- 记录Ubuntu & Windows下安装PyV8