Ask Your Question
1

Nova boot error - Connecting to a wrong glance host

asked 2013-07-05 11:34:07 -0500

shobin gravatar image

I've got a multi-node setup. From the compute hosts all services seems to be up.

root@compute-node1:~# nova-manage service list Binary Host Zone Status State Updated_At nova-compute compute-node1 nova enabled :-) 2013-07-05 16:24:57 nova-conductor compute-node1 internal enabled :-) 2013-07-05 16:24:56 nova-cert api internal enabled :-) 2013-07-05 16:25:02 nova-consoleauth api internal enabled :-) 2013-07-05 16:25:03 nova-conductor api internal enabled :-) 2013-07-05 16:25:03 nova-scheduler api internal enabled :-) 2013-07-05 16:25:03

I can search for an image on Glance.

root@compute-node1:~# glance index ID Name Disk Format Container Format Size


998f0326-9071-4a0c-b876-3aa012f90bd6 Ubuntu-Pricise qcow2 bare 250609664

But when trying to launch an instance it gives error.

2013-07-05 17:20:12.862 AUDIT nova.compute.manager [req-4a7fc10e-7115-4e1e-855e-8bd712694686 520342d738734e2cbc52607293bed6ac 395a6cd6a7b04b51b3cbaf2bdfb64230] [instance: 0781b5f4-025e-4c04-8bed-d03b8ed232c8] Starting instance... 2013-07-05 17:20:12.923 ERROR nova.image.glance [req-4a7fc10e-7115-4e1e-855e-8bd712694686 520342d738734e2cbc52607293bed6ac 395a6cd6a7b04b51b3cbaf2bdfb64230] Error contacting glance server '172.17.22.212:9292' for 'get', done trying. 2013-07-05 17:20:12.923 7036 TRACE nova.image.glance Traceback (most recent call last): 2013-07-05 17:20:12.923 7036 TRACE nova.image.glance File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 182, in call 2013-07-05 17:20:12.923 7036 TRACE nova.image.glance return getattr(client.images, method)(args, *kwargs) 2013-07-05 17:20:12.923 7036 TRACE nova.image.glance File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 104, in get 2013-07-05 17:20:12.923 7036 TRACE nova.image.glance % urllib.quote(image_id)) 2013-07-05 17:20:12.923 7036 TRACE nova.image.glance File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 260, in raw_request 2013-07-05 17:20:12.923 7036 TRACE nova.image.glance return self._http_request(url, method, *kwargs) 2013-07-05 17:20:12.923 7036 TRACE nova.image.glance File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 207, in _http_request 2013-07-05 17:20:12.923 7036 TRACE nova.image.glance raise exc.CommunicationError(message=message) 2013-07-05 17:20:12.923 7036 TRACE nova.image.glance CommunicationError: Error communicating with http://172.17.22.212:9292 [Errno 111] ECONNREFUSED 2013-07-05 17:20:12.923 7036 TRACE nova.image.glance 2013-07-05 17:20:13.077 ERROR nova.openstack.common.rpc.amqp [req-4a7fc10e-7115-4e1e-855e-8bd712694686 520342d738734e2cbc52607293bed6ac 395a6cd6a7b04b51b3cbaf2bdfb64230] Exception during message handling 2013-07-05 17:20:13.077 7036 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last): 2013-07-05 17:20:13.077 7036 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data 2013-07-05 17:20:13.077 7036 TRACE nova.openstack.common.rpc.amqp rval = self.proxy.dispatch(ctxt, version, method, *args) 2013-07-05 17:20:13.077 7036 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch 2013-07-05 17:20:13.077 7036 TRACE nova.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, *kwargs) 2013-07-05 17:20:13.077 7036 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2 ...

(more)
edit retag flag offensive close merge delete

Comments

It appears to me more of networking setup issue rather than OpenStack components. Were you able to fix it?

koolhead17 gravatar imagekoolhead17 ( 2013-09-27 04:43:14 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
2

answered 2013-10-30 06:52:10 -0500

dheeru gravatar image

updated 2015-11-06 08:08:44 -0500

Hi Hope you are able to solve this issue. I see that compute is trying to connect to glance IP http://172.17.22.212:9292. But your glance is at 10.10.100.51.

You need to update the /etc/nova.conf with glance_host and image_service=nova.image.glance.GlanceImageService glance_api_servers=192.168.72.145:9292

See the following link for more information. http://virtual2privatecloud.com/2013/...

-Dheerendra

edit flag offensive delete link more
0

answered 2015-11-06 08:10:23 -0500

updated 2015-11-06 09:07:58 -0500

Where does this glance_api_servers value come from ? It looks unrelated to the addresses the OP uses...

I resurrect that question because I'm having the same problem. It's on a kilo / 3 nodes (in VMs) testing cloud.

Looks related to : https://ask.openstack.org/en/question...

Edit, answering myself:

[glance]
host=ctrl
port=9292

Uncommented those lines in /etc/nova/nova.conf on both controller & compute nodes, this apparently solved it...

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

Stats

Asked: 2013-07-05 11:34:07 -0500

Seen: 2,046 times

Last updated: Nov 06 '15