"message": "Connection to neutron failed: Maximum attempts reached", when trying to launch an instance
I have a separate node for ntworking (neutron) on centos. Whenever I am launching an instance i see the follwoing error:
Connection to neutron failed: Maximum attempts reached
.
netstat -lnpt|grep 9696
tcp 0 0 0.0.0.0:9696 0.0.0.0:* LISTEN 30314/python
[root@network neutron]# ps -ef | grep 30314
root 30308 1090 0 13:46 pts/0 00:00:00 grep 30314
neutron 30314 1 0 Jul30 ? 00:06:30 /usr/bin/python /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --log-file /var/log/neutron/server.log
Nova's error details:
nova show centosVm2
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | compute |
| OS-EXT-SRV-ATTR:hypervisor_hostname | compute |
| OS-EXT-SRV-ATTR:instance_name | instance-00000002 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | error |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2014-07-25T01:27:25Z |
| fault | {"message": "Connection to neutron failed: Maximum attempts reached", "code": 500, "details": " File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 258, in decorated_function |
| | return function(self, context, *args, **kwargs) |
| | File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1630, in run_instance |
| | do_run_instance() |
| | File \"/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py\", line 246, in inner |
| | return f(*args, **kwargs) |
| | File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1629, in do_run_instance |
| | legacy_bdm_in_spec) |
| | File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 968, in _run_instance |
| | notify(\"error\", msg=unicode(e)) # notify that build failed |
| | File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 952, in _run_instance |
| | instance, image_meta, legacy_bdm_in_spec) |
| | File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1091, in _build_instance |
| | filter_properties, bdms, legacy_bdm_in_spec) |
| | File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1135, in _reschedule_or_error |
| | self._log_original_error(exc_info, instance_uuid) |
| | File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1130, in _reschedule_or_error |
| | bdms, requested_networks) |
| | File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 1656, in _shutdown_instance |
| | network_info = self._get_instance_nw_info(context, instance) |
| | File \"/usr/lib/python2.6/site-packages/nova/compute/manager.py\", line 882, in _get_instance_nw_info |
| | instance) |
| | File \"/usr/lib/python2.6/site-packages/nova/network/api.py\", line 50, in wrapper |
| | res = f(self, context, *args, **kwargs) |
| | File \"/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py\", line 460, in get_instance_nw_info |
| | result = self._get_instance_nw_info(context, instance, networks) |
| | File \"/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py\", line 467, in _get_instance_nw_info |
| | nw_info = self._build_network_info_model(context, instance, networks) |
| | File \"/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py\", line 993, in _build_network_info_model |
| | data = client.list_ports(**search_opts) |
| | File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 111, in with_params |
| | ret = self.function(instance, *args, **kwargs) |
| | File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 306, in list_ports |
| | **_params) |
| | File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1250, in list |
| | for r in self._pagination(collection, path, **params): |
| | File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py ...