Missuor
发表于 2015-8-11 14:14:36
本帖最后由 Missuor 于 2015-8-11 14:30 编辑
非常详尽的教程,谢谢.
我按照指导一步步的操作,前面的都成功了,但是在到
------------------------------------------------------------------------------------------- # 步骤2.7下面的.
操作同上,也是内容的替换。
替换/etc/glance/glance-api.conf文件
sql_connection = mysql://glanceUser:glancePass@10.10.10.51/glance
复制代码
-------------------------------------------------------------------------------------------
这个地方的时候,我在/etc/glance/glance-api.conf文件中没有找到sql_connection 的配置项,不知道这个是应该追加在文件最后还在怎么处理一下.
木木彡
发表于 2016-6-8 20:59:44
Request returned failure status.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 383, in handle_one_response
result = self.application(self.environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
return self.func(req, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 362, in __call__
response = req.get_response(self.application)
File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
application, catch_exc_info=False)
File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
app_iter = application(self.environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
return self.func(req, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 362, in __call__
response = req.get_response(self.application)
File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
application, catch_exc_info=False)
File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
app_iter = application(self.environ, start_response)
File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in __call__
return app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
return resp(environ, start_response)
File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
response = self.app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
return resp(environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
return self.func(req, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 572, in __call__
request, **action_args)
File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 589, in dispatch
return method(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/common/utils.py", line 413, in wrapped
return func(self, req, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 687, in create
image_meta = self._reserve(req, image_meta)
File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 367, in _reserve
image_meta = registry.add_image_metadata(req.context, image_meta)
File "/usr/lib/python2.7/dist-packages/glance/registry/__init__.py", line 166, in add_image_metadata
return c.add_image(image_meta)
File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 142, in add_image
res = self.do_request("POST", "/images", body=body, headers=headers)
File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 90, in do_request
**kwargs)
File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 66, in wrapped
return func(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 377, in do_request
headers=headers)
File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 80, in wrapped
return func(self, method, url, body, headers)
File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 518, in _do_request
raise exception.NotAuthenticated(res.read())
NotAuthenticated: 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
(HTTP 500)
求解!为什么我也在glan那里出错了...难过
easthome001
发表于 2016-6-8 21:09:52
木木彡 发表于 2016-6-8 20:59
Request returned failure status.
Traceback (most recent call last):
File "/usr/lib/python2.7/dis ...
应该是token的问题。
检测下keystone相关服务是否正常。
重新source一下。
上面如果都不是那就是配置的问题了
木木彡
发表于 2016-6-8 21:36:24
easthome001 发表于 2016-6-8 21:09
应该是token的问题。
检测下keystone相关服务是否正常。
重新source一下。
底子太薄能请求你帮我排查?谢谢 我的QQ460625551
木木彡
发表于 2016-6-8 22:11:58
wangnanredhat 发表于 2015-3-29 22:48
**** 作者被禁止或删除 内容自动屏蔽 ****
我也在那里报错!你怎么解决的?
easthome001
发表于 2016-6-9 08:18:39
木木彡 发表于 2016-6-8 21:36
底子太薄能请求你帮我排查?谢谢 我的QQ460625551
这个视频不错,推荐
about云零基础入门视频优惠
asd5851135
发表于 2016-7-5 14:30:22
很不错,学习了,谢谢楼主
cldidizzr
发表于 2016-9-6 16:40:19
求问大神们,我centos7能不能按照教程这么来??
123woaini
发表于 2017-2-17 23:06:03
向sstutu问好!
亲,有个问题一直没解决,抽空帮忙看下呗:
我的nat的IP是198.168.196.128 网关是192.168.196.2
我的仅主机ip是198.196.92.128 网关是192.168.92.2
我想问你下我的控制节点是使用ip的,我的网络和计算节点是可以使用什么,是从129到254吗?还是说有什么限制因素在里面。
panqinghua
发表于 2017-3-1 10:32:44
谢谢楼主分享