Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to connect to AMQP server

I used devstack in the all-in-one config. This is working well. I gave this box, which I'll call the "controller" box, the IP

Now, I am trying to add a single extra compute node to the setup. So I created a new box with IP I used a local.conf that has this


enable_service neutron nova n-cpu qpid

./ on the new compute node works fine. But when I go to the n-cpu screen, I see that n-cpu is having trouble connecting to the AMQP server running on the controller node. I see messages like this:

2014-07-03 17:19:35.684 ERROR oslo.messaging._drivers.impl_qpid [req-9af44cb5-4dab-4a79-92bc-bd50f9f11006 None None] Unable to connect to AMQP server on {'username': '', 'host': '', 'password': ''}: client: 0-10, server: 9-1. Sleeping 5 seconds

What is going wrong? How can I fix this?

It looks like rabbitmq is running and that I can reach it from both controller and the new compute node, since I can telnet into the controller at the rabbit port (see

from the controller:

[vagrant@vagrant-fedora20 devstack]$ telnet localhost 5672
Trying ::1...
Connected to localhost.
Escape character is '^]'.
AMQP    Connection closed by foreign host.

and from the compute node:

[vagrant@vagrant-fedora20 devstack]$ telnet 5672
Connected to
Escape character is '^]'.
AMQP    Connection closed by foreign host.

So that seems to rule out firewall problems.

It seems suspicious that in the connection to the amqp server the username and password are empty strings. Could this be the problem? Where do I specify the amqp username and password to use for the n-cpu process?