<div dir="ltr">Hi guys, i run into a problem a couple of minutes ago. I'm deploying grizzly following this <a href="http://docs.openstack.org/folsom/basic-install/content/basic-install_controller.html#basic-install_controller-common">http://docs.openstack.org/folsom/basic-install/content/basic-install_controller.html#basic-install_controller-common</a> . I just finished installing glance and i realized i can't run glance image-list.<div>
<br></div><div><div>root@locro:/etc/glance# glance image-list</div><div>Request returned failure status.</div><div>Traceback (most recent call last):</div><div> File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 383, in handle_one_response</div>
<div> result = self.application(self.environ, start_response)</div><div> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__</div><div> resp = self.call_func(req, *args, **self.kwargs)</div>
<div> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func</div><div> return self.func(req, *args, **kwargs)</div><div> File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 333, in __call__</div>
<div> response = req.get_response(self.application)</div><div> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send</div><div> application, catch_exc_info=False)</div><div> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application</div>
<div> app_iter = application(self.environ, start_response)</div><div> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__</div><div> resp = self.call_func(req, *args, **self.kwargs)</div>
<div> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func</div><div> return self.func(req, *args, **kwargs)</div><div> File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 333, in __call__</div>
<div> response = req.get_response(self.application)</div><div> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send</div><div> application, catch_exc_info=False)</div><div> File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application</div>
<div> app_iter = application(self.environ, start_response)</div><div> File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in __call__</div><div> return app(environ, start_response)</div><div>
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__</div><div> return resp(environ, start_response)</div><div> File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__</div>
<div> response = self.app(environ, start_response)</div><div> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__</div><div> return resp(environ, start_response)</div><div> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__</div>
<div> resp = self.call_func(req, *args, **self.kwargs)</div><div> File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func</div><div> return self.func(req, *args, **kwargs)</div><div> File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 540, in __call__</div>
<div> request, **action_args)</div><div> File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 557, in dispatch</div><div> return method(*args, **kwargs)</div><div> File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 204, in detail</div>
<div> images = registry.get_images_detail(req.context, **params)</div><div> File "/usr/lib/python2.7/dist-packages/glance/registry/__init__.py", line 133, in get_images_detail</div><div> return c.get_images_detailed(**kwargs)</div>
<div> File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 115, in get_images_detailed</div><div> res = self.do_request("GET", "/images/detail", params=params)</div><div>
File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 90, in do_request</div><div> **kwargs)</div><div> File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 62, in wrapped</div>
<div> return func(self, *args, **kwargs)</div><div> File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 376, in do_request</div><div> headers=headers)</div><div> File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 79, in wrapped</div>
<div> return func(self, method, url, body, headers)</div><div> File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 522, in _do_request</div><div> raise exception.ClientConnectionError(e)</div>
<div>ClientConnectionError: [Errno 111] ECONNREFUSED</div><div> (HTTP 500)</div><div><br></div><div style>I configured registry and api to listen on 172.19.136.11 (my cloud network), but when i checked the logs i found this in the api.log:</div>
<div style><br></div><div style><div>2013-04-24 19:49:01.276 24258 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET //v1/images/detail Accept: process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:46</div>
<div>2013-04-24 19:49:01.276 24258 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:59</div><div>2013-04-24 19:49:01.276 24258 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v1 process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:71</div>
<div>2013-04-24 19:49:01.276 24258 DEBUG glance.api.middleware.version_negotiation [-] new uri /v1/images/detail process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:72</div><div>2013-04-24 19:49:01.277 DEBUG glance.api.policy [1032496f-d36b-4af9-9702-bb3facc8a480 None None] Loaded policy rules: {u'default': '@', u'manage_image_cache': 'role:admin'} load_rules /usr/lib/python2.7/dist-packages/glance/api/policy.py:72</div>
<div>2013-04-24 19:49:01.277 DEBUG glance.common.client [1032496f-d36b-4af9-9702-bb3facc8a480 None None] Constructed URL: http://<b>0.0.0.0</b>:9191/images/detail?sort_key=name&sort_dir=asc&limit=20 _construct_url /usr/lib/python2.7/dist-packages/glance/common/client.py:397</div>
<div>2013-04-24 19:49:01.278 INFO glance.registry.client [1032496f-d36b-4af9-9702-bb3facc8a480 None None] Registry client request GET /images/detail raised ClientConnectionError</div><div><br></div><div style>So... i tried changing the listen option from 172.19.136.11 to 0.0.0.0 and...</div>
<div style><br></div><div style><div>root@locro:/etc/glance# glance image-list</div><div><br></div><div>root@locro:/etc/glance# </div><div><br></div><div style>Which is ok, because i don't have any image yet.</div><div style>
<br></div><div style>Maybe... this "Constructed URL" is harcoded somewhere? I'd like to liste just on my cloud network interface, not in all of them. Is it a bug?</div><div style><br></div></div></div><div><br>
</div>-- <br>Pavlik Juan José
</div></div>