<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" bgcolor="#ffffff">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Shashi,<br>
<br>
<br>
<br>
1. check for the below..<br>
<br>
root@openstack:/# cat /etc/rabbitmq/rabbitmq.conf<br>
[<br>
{rabbit, [<br>
{tcp_listeners, [{"0.0.0.0",5672}]}<br>
]}<br>
]<br>
<br>
2. restart rabbitmq service & check below<br>
<br>
root@openstack:/# service rabbitmq-server status<br>
Status of node rabbit@openstack ...<br>
[{pid,26880},<br>
{running_applications,[{rabbit,"RabbitMQ","2.5.0"},<br>
{os_mon,"CPO CXC 138 46","2.2.5"},<br>
{sasl,"SASL CXC 138 11","2.1.9.3"},<br>
{mnesia,"MNESIA CXC 138 12","4.4.17"},<br>
{stdlib,"ERTS CXC 138 10","1.17.3"},<br>
{kernel,"ERTS CXC 138 10","2.14.3"}]},<br>
{os,{unix,linux}},<br>
{erlang_version,"Erlang R14B02 (erts-5.8.3) [source] [64-bit] [smp:8:8] [rq:8] [async-threads:30] [kernel-poll:true]\n"},<br>
{memory,[{total,24810216},<br>
{processes,9821528},<br>
{processes_used,9807032},<br>
{system,14988688},<br>
{atom,1108281},<br>
{atom_used,1096662},<br>
{binary,128184},<br>
{code,10829429},<br>
{ets,693600}]}]<br>
...done.<br>
<br>
<br>
3. root@openstack:/# lsof +M -i4<br>
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME<br>
rpcbind 951 root 6u IPv4 2018 0t0 UDP *:sunrpc[portmapper]<br>
rpcbind 951 root 7u IPv4 2021 0t0 UDP *:695<br>
rpcbind 951 root 8u IPv4 2022 0t0 TCP *:sunrpc[portmapper] (LISTEN)<br>
tgtd 1149 root 4u IPv4 478 0t0 TCP *:3260 (LISTEN)<br>
tgtd 1162 root 4u IPv4 478 0t0 TCP *:3260 (LISTEN)<br>
rpc.statd 1209 statd 5r IPv4 11631 0t0 UDP *:961<br>
rpc.statd 1209 statd 8u IPv4 11636 0t0 UDP *:49976[status]<br>
rpc.statd 1209 statd 9u IPv4 11639 0t0 TCP *:59630[status] (LISTEN)<br>
libvirtd 1322 root 12u IPv4 6765 0t0 TCP *:16514 (LISTEN)<br>
python 1467 ajaxterm 5u IPv4 568 0t0 TCP localhost:8022 (LISTEN)<br>
apt-cache 1498 apt-cacher-ng 5u IPv4 13673 0t0 TCP *:3142 (LISTEN)<br>
epmd 1647 rabbitmq 3u IPv4 9534 0t0 TCP *:epmd (LISTEN)<br>
epmd 1647 rabbitmq 5u IPv4 2677682264 0t0 TCP localhost:epmd->localhost:43894 (ESTABLISHED)<br>
apache2 2993 root 3u IPv4 2666216358 0t0 TCP *:www (LISTEN)<br>
apache2 3005 www-data 3u IPv4 2666216358 0t0 TCP *:www (LISTEN)<br>
apache2 3006 www-data 3u IPv4 2666216358 0t0 TCP *:www (LISTEN)<br>
glance-ap 18946 glance 4u IPv4 247572803 0t0 TCP *:9292 (LISTEN)<br>
mysqld 19999 mysql 10u IPv4 248299715 0t0 TCP *:mysql (LISTEN)<br>
glance-re 22691 glance 5u IPv4 247573527 0t0 TCP *:9191 (LISTEN)<br>
beam.smp 26880 rabbitmq 8u IPv4 2653102073 0t0 TCP *:60924 (LISTEN)<br>
beam.smp 26880 rabbitmq 9u IPv4 2653102075 0t0 TCP localhost:43894->localhost:epmd (ESTABLISHED)<br>
<br>
<br>
<br>
4. root@openstack:/# netstat -anp | grep 5672<br>
tcp6 0 0 :::5672 :::* LISTEN 26880/beam.smp<br>
<br>
<br>
<p><br>
</p>
<br>
This should solve the issue.<br>
<br>
<br>
<br>
<br>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;">Meena Raja<br>
Consultant<br>
__________________________________________<br>
<span class="heading"><b>WIPRO TECHNOLOGIES<br>
</b></span>No 53/1 Ganapa Towers ,Near Madivala Police Station , Hosur Main Road ,Bangalore-560068<br>
Hand Phone : +91-9880549725 | Desk : +91-80-39912554 |Fax No: +91-80-25502160<br>
Email : raja.meena@wipro.com | Website : www.wipro.com<br>
</div>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF796876"><font color="#000000" face="Tahoma" size="2"><b>From:</b> openstack-bounces+raja.meena=wipro.com@lists.launchpad.net [openstack-bounces+raja.meena=wipro.com@lists.launchpad.net] on behalf of Bilel Msekni [skible@hotmail.fr]<br>
<b>Sent:</b> Tuesday, May 15, 2012 3:08 PM<br>
<b>To:</b> openstack@lists.launchpad.net<br>
<b>Subject:</b> Re: [Openstack] AMQP server on localhost:5672 is unreachable: IOError Socket closed.<br>
</font><br>
</div>
<div></div>
<div>Le 15/05/2012 11:14, Shashi Kanth Boddula a écrit :
<blockquote type="cite">
<div>Essex on Ubuntu 12.04.</div>
<div><br>
</div>
<div>I am seeing these messages in noa-api.log file, and the nova is not functional in dashboard. I believe the problem is with rabbitmq, but i don't know how to solve this situation.</div>
<div><br>
</div>
<div><br>
</div>
<div>2012-05-15 14:20:11 ERROR nova.rpc.common [req-1d70ea22-fb6e-4be8-84f5-54cfd78698ac 0c1bd987f8b84088983e17645067c225 488ef90f59fd4bf68fc78f7086556af2] AMQP server on localhost:5672 is unreachable: Socket closed. Trying again in 30 seconds.</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common Traceback (most recent call last):</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 446, in reconnect</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common self._connect()</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 423, in _connect</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common self.connection.connect()</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 154, in connect</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common return self.connection</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 560, in connection</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common self._connection = self._establish_connection()</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 521, in _establish_connection</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common conn = self.transport.establish_connection()</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 255, in establish_connection</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common connect_timeout=conninfo.connect_timeout)</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 52, in __init__</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common super(Connection, self).__init__(*args, **kwargs)</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/connection.py", line 144, in __init__</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common (10, 30), # tune</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/abstract_channel.py", line 95, in wait</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common self.channel_id, allowed_methods)</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/connection.py", line 202, in _wait_method</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common self.method_reader.read_method()</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/method_framing.py", line 221, in read_method</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common raise m</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common IOError: Socket closed</div>
<div>2012-05-15 14:20:11 TRACE nova.rpc.common</div>
<div> </div>
<div><br>
</div>
<div>
<div># service rabbitmq-server status</div>
<div>Status of node rabbit@openstack ...</div>
<div>[{pid,2137},</div>
<div> {running_applications,[{rabbit,"RabbitMQ","2.7.1"},</div>
<div> {os_mon,"CPO CXC 138 46","2.2.7"},</div>
<div> {sasl,"SASL CXC 138 11","2.1.10"},</div>
<div> {mnesia,"MNESIA CXC 138 12","4.5"},</div>
<div> {stdlib,"ERTS CXC 138 10","1.17.5"},</div>
<div> {kernel,"ERTS CXC 138 10","2.14.5"}]},</div>
<div> {os,{unix,linux}},</div>
<div> {erlang_version,"Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:24:24] [rq:24] [async-threads:30] [kernel-poll:true]\n"},</div>
<div> {memory,[{total,26413240},</div>
<div> {processes,10154960},</div>
<div> {processes_used,10134760},</div>
<div> {system,16258280},</div>
<div> {atom,1124441},</div>
<div> {atom_used,1120341},</div>
<div> {binary,69304},</div>
<div> {code,11134417},</div>
<div> {ets,742384}]},</div>
<div> {vm_memory_high_watermark,0.39999999997628105},</div>
<div> {vm_memory_limit,13491309772}]</div>
<div>...done.</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
-- <br>
Thanks & Regards,<br>
Shashi Kanth<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader" target="_blank"></fieldset> <br>
<pre>_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
Post to : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
More help : <a class="moz-txt-link-freetext" href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a>
</pre>
</blockquote>
Nova connects to RabbitMQ through the defaults values ( localhost:5672) and credentials (guest)<br>
Check for the address of your rabbitMQ in the config file (/etc/rabbitmq/rabbitMQ.config)<br>
<br>
and do this <br>
nano /etc/rabbitmq/rabbitmq.config<br>
[{rabbit, [{tcp_listeners, [{"127.0.0.1",5672}] }] } ]. #Paste this line<br>
#Exit and SAVE<br>
service start rabbitmq-server<br>
<br>
This certainly will make your rabbitMQ talk to Nova. otherwise there is something wrong with your nova<br>
</div>
</div>
</div>
<P><strong><span style='font-size:10.0pt;font-family:
"Palatino Linotype","serif";color:green'> Please do not print this email unless it is absolutely necessary. </span></strong><span style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>
<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>
<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>
<p>
www.wipro.com
</p>
</body>
</html>