Ask Your Question
0

"message": "Connection to neutron failed: Maximum attempts reached", when trying to launch an instance

asked 2014-07-24 20:40:24 -0500

nakul gravatar image

updated 2014-07-31 19:02:23 -0500

smaffulli gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-12-11 07:42:02 -0500

Nataliia gravatar image

Hi, I've faced with the same problem.

rnd@controller:~$ ps -ef|grep 574 neutron 574 1 0 08:36 ? 00:00:02 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --log-file /var/log/neutron/server.log --config-file /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini rnd 1603 8571 0 08:40 pts/0 00:00:00 grep --color=auto 574

nova show baa7e220-54e0-4b40-84ae-7cd1a106f574 {u'message': u'Connection to neutron failed: Maximum attempts reached', u'code': 500, u'details': u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 258, in decorated_function | | | return function(self, context, args, *kwargs) | | | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1630, in run_instance | | | do_run_instance() .....

How did u manage it? Thanks

edit flag offensive delete link more

Comments

Problem was resolved by reconfiguring neutron on the compute node

Nataliia gravatar imageNataliia ( 2014-12-15 09:39:52 -0500 )edit

updating nova.conf: using firewall_driver=nova.virt.firewall.NoopFirewallDriver security_group_api=neutron removed updating ovs_neutron_plugin.ini: firewall_driver = neutron.agent.firewall.NoopFirew instead of firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

Nataliia gravatar imageNataliia ( 2014-12-15 09:40:47 -0500 )edit

What did you configure on Compute Node?

jjose gravatar imagejjose ( 2016-06-03 12:42:21 -0500 )edit
0

answered 2014-07-25 00:27:53 -0500

Anand TS gravatar image

Hello,

Neutron server is running?. Try to restart all neutron related services. Check whether your messaging queue server is also running fine. Is there anything interesting on neutron logs?

edit flag offensive delete link more

Comments

Neutron server is running. There is nothing in logs. I restarted all neutron related services still the same issue.

nakul gravatar imagenakul ( 2014-07-25 12:21:56 -0500 )edit

Please , reproduce on Neutron Server

[root@icehouse1 ~(keystone_admin)]# netstat -lnpt|grep 9696
tcp        0      0 0.0.0.0:9696            0.0.0.0:*               LISTEN      1567/python         
[root@icehouse1 ~(keystone_admin)]# ps -ef | grep 1567
neutron   1567     1  0 12:59 ?        00:01:31 /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
root     11450  7469  0 22:21 pts/0    00:00:00 grep --color=auto 1567
dbaxps gravatar imagedbaxps ( 2014-07-31 13:22:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-07-24 20:40:24 -0500

Seen: 1,165 times

Last updated: Jul 31 '14