[Openstack] Compute node not able to connect to AMQP server (trying to connect to localhost)

gong yong sheng gongysh at linux.vnet.ibm.com
Thu Nov 15 22:52:55 UTC 2012


I don't know there exists a such command. But these values will be 
printed during nova-computer starting.
I think nova-compute is using db to report its existence, and using MQ 
to reports its capabilities to nova-scheduler

On 11/16/2012 06:47 AM, Ahmed Al-Mehdi wrote:
> Thank you for your help. Actually, I just restarted the service ( 
> service nova-compute restart ), I am not seeing the error anymore.
>
> Do you know if there is a command to get a list of the current config 
> values in nova?
>
> 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?
>
> Thank you,
> Ahmed.
>
>
> From: gong yong sheng <gongysh at linux.vnet.ibm.com 
> <mailto:gongysh at linux.vnet.ibm.com>>
> Date: Thursday, November 15, 2012 3:39 PM
> To: Ahmed Al-Mehdi <ahmed at coraid.com <mailto:ahmed at coraid.com>>
> Cc: "openstack at lists.launchpad.net 
> <mailto:openstack at lists.launchpad.net>" <openstack at lists.launchpad.net 
> <mailto:openstack at lists.launchpad.net>>
> Subject: Re: [Openstack] Compute node not able to connect to AMQP 
> server (trying to connect to localhost)
>
>     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.
>     On 11/16/2012 06:17 AM, Ahmed Al-Mehdi wrote:
>>     Hello,
>>
>>     On the compute node (IP addr : 10.176.20.4) I am seeing the
>>     following error message in /var/log/nova/nova-compute.log:
>>
>>     2012-11-15 14:11:12 INFO nova.openstack.common.rpc.common [-]
>>     *Reconnecting to AMQP server on localhost:5672*
>>     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.
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common
>>     Traceback (most recent call last):
>>     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
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common    
>>     self._connect()
>>     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
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common
>>     self.connection.connect()
>>     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
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common    
>>     return self.connection
>>     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
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common
>>     self._connection = self._establish_connection()
>>     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
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common    
>>     conn = self.transport.establish_connection()
>>     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
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common
>>     connect_timeout=conninfo.connect_timeout)
>>     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__
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common
>>     super(Connection, self).__init__(*args, **kwargs)
>>     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__
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common    
>>     self.transport = create_transport(host, connect_timeout, ssl)
>>     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
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common    
>>     return TCPTransport(host, connect_timeout)
>>     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__
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common    
>>     raise socket.error, msg
>>     2012-11-15 14:11:12 TRACE nova.openstack.common.rpc.common error:
>>     [Errno 111] ECONNREFUSED
>>
>>
>>     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.
>>
>>     nova.conf file is below:
>>
>>     [DEFAULT]
>>     # LOGS/STATE
>>     verbose=True
>>     logdir=/var/log/nova
>>     state_path=/var/lib/nova
>>     lock_path=/var/lock/nova
>>     rootwrap_config=/etc/nova/rootwrap.conf
>>
>>     # AUTHENTICATION
>>     auth_strategy=keystone
>>     # [keystone_authtoken]
>>     auth_host = 127.0.0.1
>>     auth_port = 35357
>>     auth_protocol = http
>>     admin_tenant_name = service
>>     admin_user = nova
>>     admin_password = nova
>>     signing_dirname = /tmp/keystone-signing-nova
>>
>>     # SCHEDULER
>>     compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
>>
>>     # Cinder - VOLUMES
>>     #volume_driver=nova.volume.driver.ISCSIDriver
>>     #volume_group=nova-volumes
>>     #volume_name_template=volume-%08x
>>     #iscsi_helper=tgtadm
>>     volume_api_class=nova.volume.cinder.API
>>
>>     # DATABASE
>>     sql_connection=mysql://nova:novadbsecret@10.176.20.158/nova
>>
>>     # COMPUTE
>>     libvirt_type=kvm
>>     compute_driver=libvirt.LibvirtDriver
>>     instance_name_template=instance-%08x
>>     api_paste_config=/etc/nova/api-paste.ini
>>
>>     # COMPUTE/APIS: if you have separate configs for separate services
>>     # this flag is required for both nova-api and nova-compute
>>     allow_resize_to_same_host=True
>>
>>     # APIS
>>     enabled_apis=ec2,osapi_compute,metadata
>>     osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
>>     ec2_dmz_host=10.176.20.158
>>     s3_host=10.176.20.158
>>
>>     # RABBITMQ
>>     rabbit_host=10.176.20.158
>>
>>     # GLANCE
>>     image_service=nova.image.glance.GlanceImageService
>>     glance_api_servers=10.176.20.158:9292
>>
>>     # NETWORK
>>     network_manager=nova.network.manager.FlatDHCPManager
>>     force_dhcp_release=True
>>     dhcpbridge_flagfile=/etc/nova/nova.conf
>>     firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
>>     # Change my_ip to match each host
>>     my_ip=10.176.20.4
>>     public_interface=eth0
>>     flat_interface=eth1
>>     flat_network_bridge=br100
>>     fixed_range=192.168.100.0/24
>>
>>     # NOVNC CONSOLE
>>     novncproxy_base_url=http://10.176.20.158:6080/vnc_auto.html
>>     # Change vncserver_proxyclient_address and vncserver_listen to
>>     match each compute host
>>     vncserver_proxyclient_address=10.176.20.4
>>     vncserver_listen=10.176.20.4
>>
>>
>>     # Following config kept from initial conf file installed by nova
>>     dhcpbridge=/usr/bin/nova-dhcpbridge
>>     libvirt_use_virtio_for_bridges=True
>>     connection_type=libvirt
>>     root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
>>     ec2_private_dns_show_ip=True
>>     volumes_path=/var/lib/nova/volumes
>>
>>     Thank you,
>>     Ahmed.
>>
>>
>>     _______________________________________________
>>     Mailing list:https://launchpad.net/~openstack
>>     Post to     :openstack at lists.launchpad.net
>>     Unsubscribe :https://launchpad.net/~openstack
>>     More help   :https://help.launchpad.net/ListHelp
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121116/cea952bb/attachment.html>


More information about the Openstack mailing list