本帖最后由 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
请问一下,这是怎么回事,谢谢!
|
|