<div dir="ltr">You are right Jay, that was the problem. I changed 0.0.0.0 to my IP and worked like a charm. Thanks!!!</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/24 Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 04/24/2013 03:52 PM, Juan José Pavlik Salles wrote:<br>
> Hi guys, i run into a problem a couple of minutes ago. I'm deploying<br>
> grizzly following<br>
> this <a href="http://docs.openstack.org/folsom/basic-install/content/basic-install_controller.html#basic-install_controller-common" target="_blank">http://docs.openstack.org/folsom/basic-install/content/basic-install_controller.html#basic-install_controller-common</a><br>

> . I just finished installing glance and i realized i can't run glance<br>
> image-list.<br>
><br>
> root@locro:/etc/glance# glance image-list<br>
> Request returned failure status.<br>
> Traceback (most recent call last):<br>
>   File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 383, in<br>
> handle_one_response<br>
>     result = self.application(self.environ, start_response)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in<br>
> __call__<br>
>     resp = self.call_func(req, *args, **self.kwargs)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in<br>
> call_func<br>
>     return self.func(req, *args, **kwargs)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line<br>
> 333, in __call__<br>
>     response = req.get_response(self.application)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296,<br>
> in send<br>
>     application, catch_exc_info=False)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260,<br>
> in call_application<br>
>     app_iter = application(self.environ, start_response)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in<br>
> __call__<br>
>     resp = self.call_func(req, *args, **self.kwargs)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in<br>
> call_func<br>
>     return self.func(req, *args, **kwargs)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line<br>
> 333, in __call__<br>
>     response = req.get_response(self.application)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296,<br>
> in send<br>
>     application, catch_exc_info=False)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260,<br>
> in call_application<br>
>     app_iter = application(self.environ, start_response)<br>
>   File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in<br>
> __call__<br>
>     return app(environ, start_response)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in<br>
> __call__<br>
>     return resp(environ, start_response)<br>
>   File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line<br>
> 131, in __call__<br>
>     response = self.app(environ, start_response)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in<br>
> __call__<br>
>     return resp(environ, start_response)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in<br>
> __call__<br>
>     resp = self.call_func(req, *args, **self.kwargs)<br>
>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in<br>
> call_func<br>
>     return self.func(req, *args, **kwargs)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line<br>
> 540, in __call__<br>
>     request, **action_args)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line<br>
> 557, in dispatch<br>
>     return method(*args, **kwargs)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line<br>
> 204, in detail<br>
>     images = registry.get_images_detail(req.context, **params)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/registry/__init__.py",<br>
> line 133, in get_images_detail<br>
>     return c.get_images_detailed(**kwargs)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/registry/client.py",<br>
> line 115, in get_images_detailed<br>
>     res = self.do_request("GET", "/images/detail", params=params)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/registry/client.py",<br>
> line 90, in do_request<br>
>     **kwargs)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line<br>
> 62, in wrapped<br>
>     return func(self, *args, **kwargs)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line<br>
> 376, in do_request<br>
>     headers=headers)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line<br>
> 79, in wrapped<br>
>     return func(self, method, url, body, headers)<br>
>   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line<br>
> 522, in _do_request<br>
>     raise exception.ClientConnectionError(e)<br>
> ClientConnectionError: [Errno 111] ECONNREFUSED<br>
>  (HTTP 500)<br>
><br>
> I configured registry and api to listen on 172.19.136.11 (my cloud<br>
> network), but when i checked the logs i found this in the api.log:<br>
><br>
> 2013-04-24 19:49:01.276 24258 DEBUG<br>
> glance.api.middleware.version_negotiation [-] Determining version of<br>
> request: GET //v1/images/detail Accept:  process_request<br>
> /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:46<br>
> 2013-04-24 19:49:01.276 24258 DEBUG<br>
> glance.api.middleware.version_negotiation [-] Using url versioning<br>
> process_request<br>
> /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:59<br>
> 2013-04-24 19:49:01.276 24258 DEBUG<br>
> glance.api.middleware.version_negotiation [-] Matched version: v1<br>
> process_request<br>
> /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:71<br>
> 2013-04-24 19:49:01.276 24258 DEBUG<br>
> glance.api.middleware.version_negotiation [-] new uri /v1/images/detail<br>
> process_request<br>
> /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:72<br>
> 2013-04-24 19:49:01.277 DEBUG glance.api.policy<br>
> [1032496f-d36b-4af9-9702-bb3facc8a480 None None] Loaded policy rules:<br>
> {u'default': '@', u'manage_image_cache': 'role:admin'} load_rules<br>
> /usr/lib/python2.7/dist-packages/glance/api/policy.py:72<br>
> 2013-04-24 19:49:01.277 DEBUG glance.common.client<br>
> [1032496f-d36b-4af9-9702-bb3facc8a480 None None] Constructed URL:<br>
</div></div>> http://*0.0.0.0*:9191/images/detail?sort_key=name&sort_dir=asc&limit=20<br>
<div class="im">> _construct_url /usr/lib/python2.7/dist-packages/glance/common/client.py:397<br>
> 2013-04-24 19:49:01.278 INFO glance.registry.client<br>
> [1032496f-d36b-4af9-9702-bb3facc8a480 None None] Registry client request<br>
> GET /images/detail raised ClientConnectionError<br>
><br>
> So... i tried changing the listen option from 172.19.136.11 to 0.0.0.0<br>
> and...<br>
><br>
> root@locro:/etc/glance# glance image-list<br>
><br>
> root@locro:/etc/glance#<br>
><br>
> Which is ok, because i don't have any image yet.<br>
><br>
> Maybe... this "Constructed URL" is harcoded somewhere? I'd like to liste<br>
> just on my cloud network interface, not in all of them. Is it a bug?<br>
<br>
</div>Hi!<br>
<br>
That log line above is where the Glance API server is using the glance<br>
client to speak to the Glance Registry server, which runs on a separate<br>
port from the API server (and possibly on a separate host entirely).<br>
<br>
Make sure that in your /etc/glance/glance-api.conf file, you have your<br>
registry_host and registry_port set appropriately. And in your<br>
/etc/glance/glance-registry.conf, make sure you have your bind_interface<br>
listening on the appropriate IP, which could indeed be 0.0.0.0.<br>
<br>
Best,<br>
-jay<br>
<br>
_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Pavlik Juan José
</div>