Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova-compute rabbitmq fail to connect

I have a controller node and a compute node. On the compute node i installed nova-compute and ntp. The controller node ip is 17.25.27.11 and the compute node ip is 172.25.27.9.
This is my compute node nova.conf file:

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
mysql_connection=mysql://nova:novaPass@172.25.27.11/nova
libvirt_type=kvm
compute_driver=libvirt.LibvirtDriver

# NETWORK
network_manager=nova.network.manager.FlatDHCPManager
flat_network_bridge=br100
flat_interface=eth0
flat_injected=False
fixed_range=172.25.100.0/24

# AUTHENTICATION
auth_strategy=keystone
[keystone_authtoken]
auth_host = 172.25.27.11
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = nova
signing_dirname = /tmp/keystone/signing-nova

# RABBITMQ
rabbit_host=172.25.27.11
rabbit_password=guest

# NOVNC CONSOLE
novncproxy_base_url=http://172.25.27.11:6080/vnc_auto.html
vncserver_proxyclient_address=172.25.27.9
vncserver_listen=172.25.27.9

# GLANCE
image_service=nova.image.glance.GlanceImageService
flance_api_servers=172.25.27.11:9292

# VOLUMES
volume_driver=nova.colume.driver.ISCSIDriver
volume_group=nova-volumes
volume_name_template=volume-%s

# SCHEDULER
compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler

# APIS
osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
ec2_dmz_host=172.25.27.11
s3_host=172.25.27.11

The cmds:

  • nova image-list
  • glance index
  • nova flavor-list
  • ecc

works properly! But when i try to do sudo nova-manage service list on the compute node i got only the service nova-network with XXX.
So i looked in the nova-compute.log file and i have found that nova-compute always try to connect to locahost 5672 instead of 172.25.27.11 5672
I tried to telnet to 172.25.27.11 5672 and i'm able to connect to controller host from the compute host by after few seconds i got "connection close by foreign host" but if i try (on the compute node) to do telnet localhost 5672 i get this error message:

INFO nova.openstack.common.rpc.common [req-50086069-cdbc-41e1-a8bc-928aeedcf14c None None] Reconnecting to AMQP server on localhost:5672
2013-05-15 11:08:02.812 ERROR nova.openstack.common.rpc.common [req-50086069-cdbc-41e1-a8bc-928aeedcf14c None None] AMQP server on localhost:5672 is unreachable

So my problem is: how can i make nova-compute to connect to 172.25.27.11 instead of localhost for the rabbitmq service?

Thanks