Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"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

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\", line 1263, in _pagination | | | res = self.get(path, params=params) | | | File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1236, in get | | | headers=headers, params=params) | | | File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1228, in retry_request | | | raise exceptions.ConnectionFailed(reason=_(\"Maximum attempts reached\")) | | | ", "created": "2014-07-25T01:27:31Z"} | | flavor | m1.medium (3) | | hostId | 264603fd9557f84be3df07446c3e873147ca0bde8cff5180be50b96d | | id | b9cf29e9-090e-406f-9a2f-90d9e8c1aabf | | image | centosVmImage (31a28d04-6bc5-4e58-9bfb-fc4d5c88209a) | | key_name | mykey | | metadata | {} | | name | centosVm2 | | os-extended-volumes:volumes_attached | [] | | security_groups | default | | status | ERROR | | tenant_id | 93886f7ef78e40bb87f88b628deb24df | | updated | 2014-07-25T01:27:31Z | | user_id | 5ce7c7ee90954e7e9798e6702cb4cf09 | +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

I am able to run all neutron commands from the compute node.

"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

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) *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) 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) **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) 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) *args, **kwargs) | | | File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 306, in list_ports | | | *_params) **_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): **params): | | | File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1263, in _pagination | | | res = self.get(path, params=params) | | | File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1236, in get | | | headers=headers, params=params) | | | File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1228, in retry_request | | | raise exceptions.ConnectionFailed(reason=_(\"Maximum attempts reached\")) | | | ", "created": "2014-07-25T01:27:31Z"} | | flavor | m1.medium (3) | | hostId | 264603fd9557f84be3df07446c3e873147ca0bde8cff5180be50b96d | | id | b9cf29e9-090e-406f-9a2f-90d9e8c1aabf | | image | centosVmImage (31a28d04-6bc5-4e58-9bfb-fc4d5c88209a) | | key_name | mykey | | metadata | {} | | name | centosVm2 | | os-extended-volumes:volumes_attached | [] | | security_groups | default | | status | ERROR | | tenant_id | 93886f7ef78e40bb87f88b628deb24df | | updated | 2014-07-25T01:27:31Z | | user_id | 5ce7c7ee90954e7e9798e6702cb4cf09 | +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

I am able to run all neutron commands from the compute node.

click to hide/show revision 3
No.3 Revision

"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

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\", line 1263, in _pagination                                                                            |
|                                      |     res = self.get(path, params=params)                                                                            |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1236, in get                                                                            |
|                                      |     headers=headers, params=params)                                                                            |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1228, in retry_request                                                                            |
|                                      |     raise exceptions.ConnectionFailed(reason=_(\"Maximum attempts reached\"))                                                                            |
|                                      | ", "created": "2014-07-25T01:27:31Z"}                                                                            |
| flavor                               | m1.medium (3)                                                                            |
| hostId                               | 264603fd9557f84be3df07446c3e873147ca0bde8cff5180be50b96d                                                                            |
| id                                   | b9cf29e9-090e-406f-9a2f-90d9e8c1aabf                                                                            |
| image                                | centosVmImage (31a28d04-6bc5-4e58-9bfb-fc4d5c88209a)                                                                            |
| key_name                             | mykey                                                                            |
| metadata                             | {}                                                                            |
| name                                 | centosVm2                                                                            |
| os-extended-volumes:volumes_attached | []                                                                            |
| security_groups                      | default                                                                            |
| status                               | ERROR                                                                            |
| tenant_id                            | 93886f7ef78e40bb87f88b628deb24df                                                                            |
| updated                              | 2014-07-25T01:27:31Z                                                                            |
| user_id                              | 5ce7c7ee90954e7e9798e6702cb4cf09                                                                            |
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

I am able to run all neutron commands from the compute node.

"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 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\", line 1263, in _pagination                                                                            |
|                                      |     res = self.get(path, params=params)                                                                            |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1236, in get                                                                            |
|                                      |     headers=headers, params=params)                                                                            |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1228, in retry_request                                                                            |
|                                      |     raise exceptions.ConnectionFailed(reason=_(\"Maximum attempts reached\"))                                                                            |
|                                      | ", "created": "2014-07-25T01:27:31Z"}                                                                            |
| flavor                               | m1.medium (3)                                                                            |
| hostId                               | 264603fd9557f84be3df07446c3e873147ca0bde8cff5180be50b96d                                                                            |
| id                                   | b9cf29e9-090e-406f-9a2f-90d9e8c1aabf                                                                            |
| image                                | centosVmImage (31a28d04-6bc5-4e58-9bfb-fc4d5c88209a)                                                                            |
| key_name                             | mykey                                                                            |
| metadata                             | {}                                                                            |
| name                                 | centosVm2                                                                            |
| os-extended-volumes:volumes_attached | []                                                                            |
| security_groups                      | default                                                                            |
| status                               | ERROR                                                                            |
| tenant_id                            | 93886f7ef78e40bb87f88b628deb24df                                                                            |
| updated                              | 2014-07-25T01:27:31Z                                                                            |
| user_id                              | 5ce7c7ee90954e7e9798e6702cb4cf09                                                                            |
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

I am able to run all neutron commands from the compute node.

"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 
 9696
tcp  0  0 0.0.0.0:9696  0.0.0.0:*  LISTEN  30314/python
  [root@network neutron]# ps -ef | grep 30314 
  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\", line 1263, in _pagination                                                                            |
|                                      |     res = self.get(path, params=params)                                                                            |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1236, in get                                                                            |
|                                      |     headers=headers, params=params)                                                                            |
|                                      |   File \"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1228, in retry_request                                                                            |
|                                      |     raise exceptions.ConnectionFailed(reason=_(\"Maximum attempts reached\"))                                                                            |
|                                      | ", "created": "2014-07-25T01:27:31Z"}                                                                            |
| flavor                               | m1.medium (3)                                                                            |
| hostId                               | 264603fd9557f84be3df07446c3e873147ca0bde8cff5180be50b96d                                                                            |
| id                                   | b9cf29e9-090e-406f-9a2f-90d9e8c1aabf                                                                            |
| image                                | centosVmImage (31a28d04-6bc5-4e58-9bfb-fc4d5c88209a)                                                                            |
| key_name                             | mykey                                                                            |
| metadata                             | {}                                                                            |
| name                                 | centosVm2                                                                            |
| os-extended-volumes:volumes_attached | []                                                                            |
| security_groups                      | default                                                                            |
| status                               | ERROR                                                                            |
| tenant_id                            | 93886f7ef78e40bb87f88b628deb24df                                                                            |
| updated                              | 2014-07-25T01:27:31Z                                                                            |
| user_id                              | 5ce7c7ee90954e7e9798e6702cb4cf09                                                                            |
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

I am able to run all neutron commands from the compute node.