Ask Your Question
0

Glance Registry ECONNREFUSED

asked 2011-10-18 18:58:24 -0500

fred-yang gravatar image

/etc/glance/.conf unchanged, used as star configuration Glance-registry failed to connect though Glance-api can be connected through http - I did fred@snipy:~$ sudo glance-control all start /etc/glance Starting glance-api with /etc/glance Starting glance-registry with /etc/glance Starting glance-scrubber with /etc/glance fred@snipy:~$ glance --version glance 2011.3 fred@snipy:~$ sudo glance show all Failed to show image. Got error: Unable to connect to server. Got error: [Errno 111] ECONNREFUSED From browser, I can connect to 0.0.0.0:9292 but no connection to 0.0.0.0:9191 /var/log/api.log - 2011-10-18 08:52:32 DEBUG [glance-api] verbose True 2011-10-18 08:52:32 DEBUG [glance-api] ************************* 2011-10-18 08:52:32 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True 2011-10-18 08:52:32 DEBUG [eventlet.wsgi.server] (2386) wsgi starting up on http://0.0.0.0:9292/

/var/log/registry.log shows 2011-10-18 08:53:40 DEBUG [sqlalchemy.engine.base.Engine.0x...7f10] Row (6, u'name', u'VARCHAR(255)', 1, None, 0) 2011-10-18 08:53:40 DEBUG [sqlalchemy.engine.base.Engine.0x...7f10] Row (7, u'value', u'TEXT', 0, None, 0) 2011-10-18 08:53:40 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True 2011-10-18 08:53:40 DEBUG [eventlet.wsgi.server] (2397) wsgi starting up on http://0.0.0.0:9191/

The reason gets CLI is when I do euca-describe-images, api.log shows 2011-10-18 08:15:50,849 ERROR nova.api [5c0a4180-76a2-4c58-9520-6e6a8671ffe5 fred ras] Unexpected error raised: Unable to connect to server. Got error: [Errno 111] ECONNREFUSED (nova.api): TRACE: Traceback (most recent call last): (nova.api): TRACE: File "/home/fred/1013/nova/nova/api/ec2/__init__.py", line 348, in __call__ (nova.api): TRACE: result = api_request.invoke(context) (nova.api): TRACE: File "/home/fred/1013/nova/nova/api/ec2/apirequest.py", line 78, in invoke (nova.api): TRACE: result = method(context, args) (nova.api): TRACE: File "/home/fred/1013/nova/nova/api/ec2/cloud.py", line 1617, in describe_images (nova.api): TRACE: images = self.image_service.detail(context) (nova.api): TRACE: File "/home/fred/1013/nova/nova/image/s3.py", line 77, in detail (nova.api): TRACE: return self.service.detail(context) (nova.api): TRACE: File "/home/fred/1013/nova/nova/image/glance.py", line 152, in detail (nova.api): TRACE: for image_meta in image_metas: (nova.api): TRACE: File "/home/fred/1013/nova/nova/image/glance.py", line 181, in _fetch_images (nova.api): TRACE: images = fetch_func(kwargs) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/client.py", line 69, in get_images_detailed

(nova.api): TRACE: res = self.do_request("GET", "/images/detail", params=params) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/common/client.py", line 140, in do_request (nova.api): TRACE: method, action, body=body, headers=headers, params=params) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/common/client.py", line 238 ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2011-10-18 19:19:44 -0500

jaypipes gravatar image

Two questions: do you have authentication enabled? What does your application pipeline look like in glance-api.conf and glance-registry.conf?

If you do:

curl -v http://0.0.0.0:9191/v1/images

what is the output?

-jay

edit flag offensive delete link more
0

answered 2011-10-18 22:18:52 -0500

fred-yang gravatar image

Glance is running fine after reboot now -

fred@snipy:~/1018/nova$ curl -v http://0.0.0.0:9191/v1/images * About to connect() to 0.0.0.0 port 9191 (#0) * Trying 0.0.0.0... connected * Connected to 0.0.0.0 (0.0.0.0) port 9191 (#0)

GET /v1/images HTTP/1.1 User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18 Host: 0.0.0.0:9191 Accept: /

< HTTP/1.1 404 Not Found < Content-Length: 154 < Content-Type: text/html; charset=UTF-8 < Date: Tue, 18 Oct 2011 22:15:54 GMT < <html>

Somehow it is now EC2_URL="http://192.168.0.17:8773/services/Cloud" doesn't work ..

fred@snipy:~/1018/nova$ curl -v http://0.0.0.0:8773/services/Cloud * About to connect() to 0.0.0.0 port 8773 (#0) * Trying 0.0.0.0... Connection refused * couldn't connect to host * Closing connection #0 curl: (7) couldn't connect to host

edit flag offensive delete link more
0

answered 2011-10-18 23:47:09 -0500

fred-yang gravatar image

Glance issue resolved ThX

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-10-18 18:58:24 -0500

Seen: 132 times

Last updated: Oct 18 '11