0
这是Folsom的再次发布,我正在阅读本书。我已经开始尝试验证浏览安装,但我无法通过任何命令。在一目了然,api.conf,我有:Glance无法验证管理员用户
[keystone_authtoken]
auth_host = localhost
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = glance
[paste_deploy]
config_file = /etc/glance/glance-api-paste.ini
flavor=keystone
在
一目了然,registry.conf文件
我有非常相似:
[keystone_authtoken]
auth_host = localhost
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = glance
[paste_deploy]
config_file = /etc/glance/glance-registry-paste.ini
flavor=keystone
一个背景问题:是一目了然咋办要根据上面conf文件中的用户名/密码进行认证,还是要求keystone进行认证?我确实在keystone数据库中有一个“glance”用户,它有相同的密码,但我不知道它是否被使用。
失败我得到是这样的:
[email protected]:~# glance --debug --os_user=glance --os_password=glance index
Traceback (most recent call last):
File "/usr/bin/glance", line 1048, in <module>
result = command(options, args)
File "/usr/bin/glance", line 63, in wrapper
ret = func(*args, **kwargs)
File "/usr/bin/glance", line 559, in images_index
print_header=True)
File "/usr/bin/glance", line 501, in _images_index
images = client.get_images(**parameters)
File "/usr/lib/python2.7/dist-packages/glance/client.py", line 60, in get_images
res = self.do_request("GET", "/images", params=params)
File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 61, in wrapped
return func(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 420, in do_request
headers=headers)
File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 75, in wrapped
return func(self, method, url, body, headers)
File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 539, in _do_request
raise exception.NotAuthenticated(res.read())
glance.common.exception.NotAuthenticated: You are not authenticated.
Details: 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.
Authentication required
[email protected]:~#
我试图查看配置文件,但我坚持。任何帮助赞赏
谢谢,只要我到办公室,我会试试这个。 – AlanObject 2013-03-06 16:37:13
你的建议有帮助,但这不是我的问题的答案。我现在正在工作,但我不确定我以前的问题是什么。我会标记你的答案,所以你得到信用。 – AlanObject 2013-03-07 19:25:59
将此标记为正确对未来的读者没有多大帮助,因为它没有解决问题中的问题。 – 2013-07-24 00:01:53