<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Thank you for your help. Actually, I just restarted the service ( service nova-compute restart ), I am not seeing the error anymore.</div><div><br></div><div>Do you know if there is a command to get a list of the current config values in nova?</div><div><br></div><div>Does "nova-compute" running on the compute node "register" itself with the control node (using the rabbitmq-server)?  If so, is that how the control node knows of all the compute node that it can talk to?</div><div><br></div><div>Thank you,</div><div>Ahmed.</div><div><br></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> gong yong sheng <<a href="mailto:gongysh@linux.vnet.ibm.com">gongysh@linux.vnet.ibm.com</a>><br><span style="font-weight:bold">Date: </span> Thursday, November 15, 2012 3:39 PM<br><span style="font-weight:bold">To: </span> Ahmed Al-Mehdi <<a href="mailto:ahmed@coraid.com">ahmed@coraid.com</a>><br><span style="font-weight:bold">Cc: </span> "<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>" <<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>><br><span style="font-weight:bold">Subject: </span> Re: [Openstack] Compute node not able to connect to AMQP server (trying to connect to localhost)<br></div><div><br></div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div bgcolor="#FFFFFF" text="#000000"><div class="moz-cite-prefix">Trye to start your nova-compute with --config-file {your nova.conf}. and look at the log at the beginning to see what options values are used truly.<br>
On 11/16/2012 06:17 AM, Ahmed Al-Mehdi wrote:<br></div><blockquote cite="mid:CCCAA9F1.4852%25ahmed@coraid.com" type="cite"><div>Hello,</div><div><br></div><div>On the compute node (IP addr : 10.176.20.4) I am seeing the following error message in /var/log/nova/nova-compute.log:</div><div><br></div><div><div>2012-11-15 14:11:12 INFO nova.openstack.common.rpc.common [-] <b>Reconnecting to AMQP server on localhost:5672</b></div><div>2012-11-15 14:11:12 ERROR nova.openstack.common.rpc.common [-] AMQP server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 30 seconds.</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common Traceback (most recent call last):</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/impl_kombu.py", line 469, in reconnect</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common     self._connect()</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/impl_kombu.py", line 446, in _connect</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common     self.connection.connect()</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common   File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 154, in connect</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common     return self.connection</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common   File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 560, in connection</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common     self._connection = self._establish_connection()</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common   File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 521, in _establish_connection</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common     conn = self.transport.establish_connection()</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common   File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 255, in establish_connection</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common     connect_timeout=conninfo.connect_timeout)</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common   File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 52, in __init__</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common     super(Connection, self).__init__(*args, **kwargs)</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common   File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/connection.py", line 129, in __init__</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common     self.transport = create_transport(host, connect_timeout, ssl)</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common   File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/transport.py", line 281, in create_transport</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common     return TCPTransport(host, connect_timeout)</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common   File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/transport.py", line 85, in __init__</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common     raise socket.error, msg</div><div>2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common error: [Errno 111] ECONNREFUSED</div></div><div><br></div><div><br></div><div>The rabbitmq server is running on the controller node (10.176.20.158), which is reachable from the compute node.  Can someone please help me understand why the compute node is trying to connect to AMQP server on localhost.</div><div><br></div><div>nova.conf file is below:</div><div><br></div><div><div>[DEFAULT]</div><div># LOGS/STATE</div><div>verbose=True</div><div>logdir=/var/log/nova</div><div>state_path=/var/lib/nova</div><div>lock_path=/var/lock/nova</div><div>rootwrap_config=/etc/nova/rootwrap.conf</div><div><br></div><div># AUTHENTICATION</div><div>auth_strategy=keystone</div><div># [keystone_authtoken]</div><div>auth_host = 127.0.0.1</div><div>auth_port = 35357</div><div>auth_protocol = http</div><div>admin_tenant_name = service</div><div>admin_user = nova</div><div>admin_password = nova</div><div>signing_dirname = /tmp/keystone-signing-nova</div><div><br></div><div># SCHEDULER</div><div>compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler</div><div><br></div><div># Cinder - VOLUMES</div><div>#volume_driver=nova.volume.driver.ISCSIDriver</div><div>#volume_group=nova-volumes</div><div>#volume_name_template=volume-%08x</div><div>#iscsi_helper=tgtadm</div><div>volume_api_class=nova.volume.cinder.API</div><div><br></div><div># DATABASE</div><div><a class="moz-txt-link-abbreviated" href="mailto:sql_connection=mysql://nova:novadbsecret@10.176.20.158/nova">sql_connection=mysql://nova:novadbsecret@10.176.20.158/nova</a></div><div><br></div><div># COMPUTE</div><div>libvirt_type=kvm</div><div>compute_driver=libvirt.LibvirtDriver</div><div>instance_name_template=instance-%08x</div><div>api_paste_config=/etc/nova/api-paste.ini</div><div><br></div><div># COMPUTE/APIS: if you have separate configs for separate services</div><div># this flag is required for both nova-api and nova-compute</div><div>allow_resize_to_same_host=True</div><div><br></div><div># APIS</div><div>enabled_apis=ec2,osapi_compute,metadata </div><div>osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions</div><div>ec2_dmz_host=10.176.20.158</div><div>s3_host=10.176.20.158</div><div><br></div><div># RABBITMQ</div><div>rabbit_host=10.176.20.158</div><div><br></div><div># GLANCE</div><div>image_service=nova.image.glance.GlanceImageService</div><div>glance_api_servers=10.176.20.158:9292</div><div><br></div></div><div><div># NETWORK</div><div>network_manager=nova.network.manager.FlatDHCPManager</div><div>force_dhcp_release=True</div><div>dhcpbridge_flagfile=/etc/nova/nova.conf</div><div>firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver</div><div># Change my_ip to match each host</div><div>my_ip=10.176.20.4</div><div>public_interface=eth0</div><div>flat_interface=eth1</div><div>flat_network_bridge=br100</div><div>fixed_range=192.168.100.0/24</div><div><br></div><div># NOVNC CONSOLE</div><div>novncproxy_base_url=<a class="moz-txt-link-freetext" href="http://10.176.20.158:6080/vnc_auto.html">http://10.176.20.158:6080/vnc_auto.html</a></div><div># Change vncserver_proxyclient_address and vncserver_listen to match each compute host</div><div>vncserver_proxyclient_address=10.176.20.4</div><div>vncserver_listen=10.176.20.4</div><div><br></div><div><br></div><div># Following config kept from initial conf file installed by nova</div><div>dhcpbridge=/usr/bin/nova-dhcpbridge</div><div>libvirt_use_virtio_for_bridges=True</div><div>connection_type=libvirt</div><div>root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf</div><div>ec2_private_dns_show_ip=True</div><div>volumes_path=/var/lib/nova/volumes</div></div><div><br></div><div>Thank you,</div><div>Ahmed.</div><br><fieldset class="mimeAttachmentHeader"></fieldset> <br><pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
Post to     : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
More help   : <a class="moz-txt-link-freetext" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a></pre></blockquote><br></div></div></blockquote></span></body></html>