分享

glance imagle-list 提示错误

111222333 发表于 2016-1-10 13:55:26 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 22264
本帖最后由 111222333 于 2016-1-10 13:57 编辑

刚开始能显示镜像,已部署的keystone,glance,nova,neutron都能运行,但添加ceilometer计量组建后出现问题,用glance image-list命令时提示如下错误:Error finding address for http://controller1:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20: HTTPConnectionPool(host='controller1', port=9292): Max retries exceeded with url: /v1/images/detail?sort_key=name&sort_dir=asc&limit=20 (Caused by <class 'socket.error'>: [Errno 111] Connection refused)
nova-api.log日志如下:(glance日志没错误)
2016-01-10 13:13:26.738 2631 ERROR nova.image.glance [req-4491d825-6326-4c72-aed5-ef4d9041a791 None] Error contacting glance server 'controller1:9292' for 'get', done trying.
2016-01-10 13:13:26.738 2631 TRACE nova.image.glance Traceback (most recent call last):
2016-01-10 13:13:26.738 2631 TRACE nova.image.glance   File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 231, in call
2016-01-10 13:13:26.738 2631 TRACE nova.image.glance     return getattr(client.images, method)(*args, **kwargs)
2016-01-10 13:13:26.738 2631 TRACE nova.image.glance   File "/usr/lib/python2.7/dist-packages/glanceclien t/v1/images.py", line 126, in get
2016-01-10 13:13:26.738 2631 TRACE nova.image.glance     % urlparse.quote(str(image_id)))
2016-01-10 13:13:26.738 2631 TRACE nova.image.glance   File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 251, in head
2016-01-10 13:13:26.738 2631 TRACE nova.image.glance     return self._request('HEAD', url, **kwargs)
2016-01-10 13:13:26.738 2631 TRACE nova.image.glance   File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 209, in _request
2016-01-10 13:13:26.738 2631 TRACE nova.image.glance     raise exc.CommunicationError(message=message)
2016-01-10 13:13:26.738 2631 TRACE nova.image.glance CommunicationError: Error finding address for http://controller1:9292/v1/images/b80eb986-6b3c-450e-8024-6e4702d24f57: HTTPConnectionPool(host='controller1', port=9292): Max retries exceeded with url: /v1/images/b80eb986-6b3c-450e-8024-6e4702d24f57  (Caused by <class 'socket.error'>: [Errno 111] ECONNREFUSED)
2016-01-10 13:13:26.738 2631 TRACE nova.image.glance
2016-01-10 13:13:26.740 2631 ERROR nova.api.openstack [req-4491d825-6326-4c72-aed5-ef4d9041a791 None] Caught error: Connection to glance host controller1:9292 failed: Error finding address for http://con troller1:9292/v1/images/b80eb986-6b3c-450e-8024-6e4702d24f57: HTTPConnectionPool(host='controller1', port=9292): Max retries exceeded with url: /v1/images/b80eb986-6b3c-450e-8024-6e4702d24f57 (Caused by <class 'socket.error'>: [Errno 111] ECONNREFUSED)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack Traceback (most recent call last):
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 124, in __call__
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     return req.get_response(self.application)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     application, catch_exc_info=False)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in call_application
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     app_iter = application(self.environ, start_respnse)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec. py", line 144, in __call__
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     return resp(environ, start_response)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py", line 661, in __call__
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     return self._app(env, start_response)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     return resp(environ, start_response)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec. py", line 144, in __call__
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     return resp(environ, start_response)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     response = self.app(environ, start_response)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec. py", line 144, in __call__
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     return resp(environ, start_response)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec. py", line 195, in call_func
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 910, in __call__
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     content_type, body, accept)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 975, in _process_stack
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/o penstack/wsgi.py", line 1059, in dispatch
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     return method(req=request, **action_args)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/o penstack/compute/images.py", line 133, in show
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     image = self._image_api.get(context, id)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     include_locations=include_locations)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 310, in show
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     _reraise_translated_image_exception(image_id)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 308, in show
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     image = self._client.call(context, version, 'get', image_id)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 249, in call
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack     host=host, port=port, reason=six.text_type(e))
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack GlanceConnectionFailed: Connection to glance host controller1:9292 failed: Error finding address for http://controller1:9292/v1/images/b80eb986-6b3c-450e-8024-6e4702d24f57: HTTPConnectionPool(host='controller1', port=9292): Max retries exceeded with url: /v1/images/b80eb986-6b3c-450e-8024-6e4702d24f57 (Caused by <class 'socket.error'>: [Errno 111] ECONNREFUSED)
2016-01-10 13:13:26.740 2631 TRACE nova.api.openstack
请问一下,这是怎么回事,谢谢!

已有(4)人评论

跳转到指定楼层
wscl1213 发表于 2016-1-10 17:19:50
用这个地址访问下,或则到路径下,看看是否有这个镜像
http://controller1:9292/v1/images/b80eb986-6b3c-450e-8024-6e4702d24f57
回复

使用道具 举报

111222333 发表于 2016-1-10 20:40:23
wscl1213 发表于 2016-1-10 17:19
用这个地址访问下,或则到路径下,看看是否有这个镜像
http://controller1:9292/v1/images/b80eb986-6b3c- ...

错误找到了,是因为glance-api中一个配置的问题,本来文档中是notification_driver=noop 但在ceilometer中改成了notification_driver=messagingv2,不知道是什么原因

回复

使用道具 举报

wscl1213 发表于 2016-1-10 20:43:32
111222333 发表于 2016-1-10 20:40
错误找到了,是因为glance-api中一个配置的问题,本来文档中是notification_driver=noop 但在ceilometer ...

可能手误了。这个楼主是怎么检测到的,心还挺细的
回复

使用道具 举报

111222333 发表于 2016-1-11 09:33:57
wscl1213 发表于 2016-1-10 20:43
可能手误了。这个楼主是怎么检测到的,心还挺细的

一个个配置找的,nova image-list 没问题,那基本上就在glance-api的配置中,不过有一点不明白,官方文档上给的,配置glance-api时是notification_driver=noop ,但在后面配置ceilometer的时候glance_api中却又改成notification_driver=messagingv2,这两者不是冲突了吗?请问一下这是为什么?

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条