Connection to Neutron failed: HTTPConnectionPool

asked 2015-10-01 00:21:59 -0500

DarkKnight gravatar image

I have installed Openstack on a 3 node setup(Controller & Neutron on VMs and Compute is a bare-metal). I was able to create instances. But then i tried a "systemctl restart nova-compute" on my Compute node. That would never bring up my nova-compute service, even though the libvirtd was running properly. Hence, i went ahead and started the nova-compute process manually(without any conf params. I am not aware if any of it is required). Now i am unable to launch instances. Now i see a connection to neutron failed message in the /var/log/nova/nova-compute.log.

> 2015-10-01 10:32:28.550 26821 ERROR nova.compute.manager [-] [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4] An error occurred while refreshing the network cache.
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4] Traceback (most recent call last):
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 5348, in _heal_instance_info_cache
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]     self._get_instance_nw_info(context, instance, use_slave=True)
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1234, in _get_instance_nw_info
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]     instance)
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 598, in get_instance_nw_info
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]     port_ids)
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 612, in _get_instance_nw_info
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]     port_ids)
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1356, in _build_network_info_model
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]     data = client.list_ports(**search_opts)
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/__init__.py", line 84, in wrapper
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]     ret = obj(*args, **kwargs)
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 98, in with_params
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]     ret = self.function(instance, *args, **kwargs)
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 312, in list_ports
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]     **_params)
2015-10-01 10:32:28.550 26821 TRACE nova.compute.manager [instance: f19610ae-ea77-45ea-aac2-faebeaf380d4]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/__init__.py", line 84, in wrapper
2015-10-01 10:32:28.550 26821 ...
(more)
edit retag flag offensive close merge delete

Comments

Has no-one faced a similar issue. I have tried restarting the nodes but to no avail. Kindly suggest!!

DarkKnight gravatar imageDarkKnight ( 2015-10-04 22:53:18 -0500 )edit