Ask Your Question
0

computeNode don‘work,IOError: Socket closed

asked 2012-08-08 04:59:11 -0500

breakwindwp gravatar image

Hi,everyone: I add a compute node(install ntp&nova-compute only,copy config from controller),use nova-manage service list is ok. But,when I create a instance in compute node. It show instance error. I find error from /var/log/nova/nova/nova-scheduler.log,as follow: 2012-08-08 10:57:07 ERROR nova.rpc.common [-] Failed to consume message from queue: Socket closed 2012-08-08 10:57:07 TRACE nova.rpc.common Traceback (most recent call last): 2012-08-08 10:57:07 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 490, in ensure 2012-08-08 10:57:07 TRACE nova.rpc.common return method(args, kwargs) 2012-08-08 10:57:07 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 567, in _consume 2012-08-08 10:57:07 TRACE nova.rpc.common return self.connection.drain_events(timeout=timeout) 2012-08-08 10:57:07 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 175, in drain_events 2012-08-08 10:57:07 TRACE nova.rpc.common return self.transport.drain_events(self.connection, *kwargs) 2012-08-08 10:57:07 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 238, in drain_events 2012-08-08 10:57:07 TRACE nova.rpc.common return connection.drain_events(kwargs) 2012-08-08 10:57:07 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 57, in drain_events 2012-08-08 10:57:07 TRACE nova.rpc.common return self.wait_multi(self.channels.values(), timeout=timeout) 2012-08-08 10:57:07 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 63, in wait_multi 2012-08-08 10:57:07 TRACE nova.rpc.common chanmap.keys(), allowed_methods, timeout=timeout) 2012-08-08 10:57:07 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 120, in _wait_multiple 2012-08-08 10:57:07 TRACE nova.rpc.common channel, method_sig, args, content = read_timeout(timeout) 2012-08-08 10:57:07 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 88, in read_timeout 2012-08-08 10:57:07 TRACE nova.rpc.common return self.method_reader.read_method() 2012-08-08 10:57:07 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/method_framing.py", line 221, in read_method 2012-08-08 10:57:07 TRACE nova.rpc.common raise m 2012-08-08 10:57:07 TRACE nova.rpc.common IOError: Socket closed 2012-08-08 10:57:07 TRACE nova.rpc.common 2012-08-08 10:57:07 INFO nova.rpc.common [-] Reconnecting to AMQP server on 172.18.32.7:5672 2012-08-08 10:57:07 ERROR nova.rpc.common [-] AMQP server on 172.18.32.7:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 1 seconds. 2012-08-08 10:57:07 TRACE nova.rpc.common Traceback (most recent call last): 2012-08-08 10:57:07 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 446, in reconnect 2012-08-08 10:57:07 TRACE nova.rpc.common self._connect() 2012-08-08 10 ... (more)

edit retag flag offensive close merge delete

4 answers

Sort by » oldest newest most voted
0

answered 2012-08-08 05:41:50 -0500

breakwindwp gravatar image

error instance get stuck in networking

so /var/log/nova/nova-network.log 2012-08-08 11:16:43 ERROR nova.rpc.common [-] Failed to consume message from queue: Socket closed 2012-08-08 11:16:43 TRACE nova.rpc.common Traceback (most recent call last): 2012-08-08 11:16:43 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 490, in ensure 2012-08-08 11:16:43 TRACE nova.rpc.common return method(args, kwargs) 2012-08-08 11:16:43 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 567, in _consume 2012-08-08 11:16:43 TRACE nova.rpc.common return self.connection.drain_events(timeout=timeout) 2012-08-08 11:16:43 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 175, in drain_events 2012-08-08 11:16:43 TRACE nova.rpc.common return self.transport.drain_events(self.connection, *kwargs) 2012-08-08 11:16:43 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 238, in drain_events 2012-08-08 11:16:43 TRACE nova.rpc.common return connection.drain_events(kwargs) 2012-08-08 11:16:43 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 57, in drain_events 2012-08-08 11:16:43 TRACE nova.rpc.common return self.wait_multi(self.channels.values(), timeout=timeout) 2012-08-08 11:16:43 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 63, in wait_multi 2012-08-08 11:16:43 TRACE nova.rpc.common chanmap.keys(), allowed_methods, timeout=timeout) 2012-08-08 11:16:43 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 120, in _wait_multiple 2012-08-08 11:16:43 TRACE nova.rpc.common channel, method_sig, args, content = read_timeout(timeout) 2012-08-08 11:16:43 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 88, in read_timeout 2012-08-08 11:16:43 TRACE nova.rpc.common return self.method_reader.read_method() 2012-08-08 11:16:43 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/method_framing.py", line 221, in read_method 2012-08-08 11:16:43 TRACE nova.rpc.common raise m 2012-08-08 11:16:43 TRACE nova.rpc.common IOError: Socket closed 2012-08-08 11:16:43 TRACE nova.rpc.common 2012-08-08 11:16:43 INFO nova.rpc.common [-] Reconnecting to AMQP server on 172.18.32.7:5672 2012-08-08 11:16:43 ERROR nova.rpc.common [-] AMQP server on 172.18.32.7:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 1 seconds. 2012-08-08 11:16:43 TRACE nova.rpc.common Traceback (most recent call last): 2012-08-08 11:16:43 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 446, in reconnect 2012-08-08 11:16:43 TRACE nova.rpc.common self._connect() 2012-08-08 11:16:43 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 423, in _connect 2012-08-08 11:16:43 TRACE nova.rpc.common self.connection.connect() 2012-08-08 11:16 ... (more)

edit flag offensive delete link more
0

answered 2012-08-09 06:23:41 -0500

breakwindwp gravatar image

Thanks John Garbutt, that solved my question.

edit flag offensive delete link more
0

answered 2012-08-08 10:29:56 -0500

johngarbutt gravatar image

It looks like your nova services can't connect to your RabbitMQ server:

2012-08-08 10:57:07 ERROR nova.rpc.common [-] AMQP server on 172.18.32.7:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 1 seconds. And sometimes this error: Connected to AMQP server on 172.18.32.7:5672 2012-08-08 11:17:25 INFO nova.rpc.common [req-4a044830-2d44-4d24-9322-4e8211545c3c None None] Connected to AMQP server on 172.18.32.7:5672 2012-08-08 11:20:37 ERROR nova.rpc.common [-] Failed to consume message from queue: Socket closed

What host is your RabbitMQ server on? Is the RabbitMQ service running? Does it have firewall rules blocking the AMPQ traffic?

Do you have the correct nova.conf settings for these: rabbit_host="localhost" rabbit_password="guest" rabbit_port=5672

Once you are happy you have the settings right, you are best restarting all your services. They will attempt to create the queues when they first start.

I hope that helps.

edit flag offensive delete link more
0

answered 2012-08-08 10:31:09 -0500

johngarbutt gravatar image

I forgot to mention, these settings might need checking: rabbit_use_ssl=false rabbit_userid="guest" rabbit_virtual_host="/"

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: 2012-08-08 04:59:11 -0500

Seen: 255 times

Last updated: Aug 09 '12