Ask Your Question
0

ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 30 seconds.

asked 2015-05-14 05:22:40 -0500

Suji gravatar image

Hi all,

I'm doing KIlo openstack installation, all the neutron,nova services are running fine in controller node and rabbitmq service is also running fine.

When I installed the compute node, the nova-compute service is running but it is not connecting to the controller node with the error AMQP server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED.

in the nova.conf , i nowhere mentioned the word localhost still it is looking for localhost.

Please help me on this issue.

Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
4

answered 2015-05-14 07:07:16 -0500

updated 2015-05-14 07:49:54 -0500

Try to move rabbitMQ setting from Rabbitmq section to default section in nova.conf on compute node.

I am just adding my working sample from compute (RDO Kilo) - at the bottom on nova.conf

[oslo_messaging_rabbit]
rabbit_host=192.169.142.127
rabbit_port=5672
rabbit_hosts=192.169.142.127:5672
rabbit_use_ssl=False
rabbit_userid=guest
rabbit_password=guest
rabbit_virtual_host=/
rabbit_ha_queues=False
edit flag offensive delete link more

Comments

hi , I've tried this but it is not working. I got the same error even after moving the rabbitmq section from [oslo_messaging_rabbit] to default section in nova.conf.

Is that mandatory to move the rabbitmq section to default section even in nova.conf of controller node

Suji gravatar imageSuji ( 2015-05-14 07:38:17 -0500 )edit

NO. On RDO Kilo [oslo_messaging_rabbit] works

dbaxps-Second-Incarnation gravatar imagedbaxps-Second-Incarnation ( 2015-05-14 07:42:06 -0500 )edit
1

I'm installing openstack in ubuntu 14.04.2 and I tried by giving rabbit section in both default and [oslo_messaging_rabbit].

[oslo_messaging_rabbit] rabbit_host = 10.24.41.121 rabbit_userid = openstack rabbit_password = RABBIT_PASS

this is what there in nova.conf file in compute node

Suji gravatar imageSuji ( 2015-05-14 07:47:00 -0500 )edit

I added sample to answer, it's done by packstack during three node deployment (Controller,Network,Compute)

dbaxps-Second-Incarnation gravatar imagedbaxps-Second-Incarnation ( 2015-05-14 07:53:12 -0500 )edit

oh thanks, is that required to add all the details like rabbit_host, rabbit_port etc as u mentioned in the sample. bcoz i gave only rabbit_host, rabbit_userid and rabbit_password.

Suji gravatar imageSuji ( 2015-05-14 07:59:31 -0500 )edit

Check if the password in the config file is the same rabbitmq is using, Also you can try connecting with telnet to rabbitmq port from compute node. If you connect with telnet, probably the error is in your config files

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-05-14 16:11:57 -0500 )edit

i checked the password, both are same. when tried connecting controller through telnet, It doesn't connected.

root@compute1:~# telnet controller 5672 Trying 10.24.41.121... Connected to controller. Escape character is '^]'. Connection closed by foreign host.

Suji gravatar imageSuji ( 2015-05-15 06:58:53 -0500 )edit

Also ,i'm not able to understand why t compute node is trying to connect localhost, and it is not taking the controller ip. I nowhere mentioned localhost in any of the config file in compute node.

Suji gravatar imageSuji ( 2015-05-15 07:16:48 -0500 )edit

I am also facing this issue on cinder node. Did you find any solution for it?

Gourav Singla gravatar imageGourav Singla ( 2016-01-19 04:14:38 -0500 )edit

I just moved my rabbit configuration to [Default] section and it worked. I don't know why it is so..

Gourav Singla gravatar imageGourav Singla ( 2016-01-19 04:35:13 -0500 )edit

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: 2015-05-14 05:22:40 -0500

Seen: 14,699 times

Last updated: May 14 '15