[Nova] Connection to neutron failed.

asked 2015-09-22 05:21:34 -0500

ruben gravatar image

Hey,

When i try to create an instance in the Openstack Horizon dashboard it gives me the following error:

 No valid host was found.

When i try to delete the instance that was failed to create it gives this error:

Connection to neutron failed: ('Connection aborted.', error(111, 'ECONNREFUSED'))

Details:

File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 314, in decorated_function return function(self, context, *args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2525, in terminate_instance do_terminate_instance(instance, bdms) File "/usr/lib/python2.7/site-packages/nova/openstack/common/lockutils.py", line 272, in inner return f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2523, in do_terminate_instance self._set_instance_error_state(context, instance) File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2513, in do_terminate_instance self._delete_instance(context, instance, bdms, quotas) File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 131, in inner rv = f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2482, in _delete_instance quotas.rollback() File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2459, in _delete_instance self._shutdown_instance(context, instance, bdms) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2392, in _shutdown_instance self._try_deallocate_network(context, instance, requested_networks) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2322, in _try_deallocate_network self._set_instance_error_state(context, instance) File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2317, in _try_deallocate_network self._deallocate_network(context, instance, requested_networks) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1921, in _deallocate_network context, instance, requested_networks=requested_networks) File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 531, in deallocate_for_instance data = neutron.list_ports(**search_opts) File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 98, in with_params ret = self.function(instance, *args, **kwargs) File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 312, in list_ports **_params) File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1334, in list for r in self._pagination(collection, path, **params): File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1347, in _pagination res = self.get(path, params=params) File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1320, in get headers=headers, params=params) File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1297, in retry_request headers=headers, params=params) File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1240, in do_request content_type=self.content_type()) File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 180, in ...
(more)
edit retag flag offensive close merge delete

Comments

Use preformatted text for log files, otherwise they are unreadable.

Looks like there is a communication problem, perhaps message queue or firewall? Check if the MQ is running on the controller and the compute/network nodes can access it. Check logs on compute/network nodes for relevant errors.

Bernd Bausch gravatar imageBernd Bausch ( 2015-09-24 05:52:57 -0500 )edit

Rabbitmqctl status gives the following output

   Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled)

The nova-compute.log gives the following error when trying to make a instance

   An error occurred while refreshing the network cache.

Thanks, Ruben

ruben gravatar imageruben ( 2015-09-24 06:22:30 -0500 )edit

You confirmed that rabbitmq is running, but is it accessible?

Bernd Bausch gravatar imageBernd Bausch ( 2015-09-24 23:47:19 -0500 )edit