Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I had this issue and found that the problem was because neutron was not able to communicate with rabbitmq. To see if this is your problem you can try the following snippet of code:

Script started, file is typescript [ -r /etc/default/neutron-server ] && . /etc/default/neutron-server [ -r "$NEUTRON_PLUGIN_CONFIG" ] && CONF_ARG="--config-file $NEUTRON_PLUGIN_CONFIG" exec start-stop-daemon --start --chuid neutron --exec /usr/bin/neutron-server -- \ --config-file /etc/neutron/neutron.conf \ --log-file /var/log/neutron/server.log $CONF_ARG end script

(you can find this at the end of a file found in /etc/init/neutron-server.conf)

When I ran this it showed me errors I had in my config files and after I fixed them it showed the following: 2014-05-03 17:19:33.123 17996 ERROR neutron.openstack.common.rpc.common [-] AMQP server on 192.168.0.143:5672 is unreachable: Socket closed. Trying again in 1 seconds. 2014-05-03 17:19:37.136 17996 ERROR neutron.openstack.common.rpc.common [-] AMQP server on 192.168.0.143:5672 is unreachable: Socket closed. Trying again in 3 seconds. 2014-05-03 17:19:43.149 17996 ERROR neutron.openstack.common.rpc.common [-] AMQP server on 192.168.0.143:5672 is unreachable: Socket closed. Trying again in 5 seconds.

I then ran netstat to see what port rabbitmq had opened. Rabbitmq had opened the port, but tied it to "localhost" not my ip address, which I would have thought. So to fix neutron not being able to find rabbitmq. I changed the following lines in my config files:

rabbit_host = localhost

Then I changed my /etc/hosts file to reflect the following:

"my Ip address" localhost ------instead of the 127.0.0.1 localhost that was default in my file.

After I did all of the nuetron and nova now actually started talking to rabbitmq and I stopped getting the [Errno 111] ECONNREFUSED error. Hope this helps.