Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova-network doesn't start after reinstall

Hi there,

I'm installing OpenStack via Devstack. So far my configuration has worked well, but I had to reinstall because I messed up when trying to enable Neutron. Now, after reinstalling with Devstack and my previously working configuration nova-network won't start. The error messages are:

  2014-09-03 15:32:40.981 DEBUG nova.openstack.common.lockutils [req-c2c2f31e-4415-4f80-b999-90954d6734d0 None None] Semaphore / lock released "initialize_gateway_device" from (pid=23010) inner /opt/stack/nova/nova/openstack/common/lockutils.py:252
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 346, in fire_timers
    timer()
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 56, in __call__
    cb(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
    result = function(*args, **kwargs)
  File "/opt/stack/nova/nova/openstack/common/service.py", line 490, in run_service
    service.start()
  File "/opt/stack/nova/nova/service.py", line 163, in start
    self.manager.init_host()
  File "/opt/stack/nova/nova/network/manager.py", line 1683, in init_host
    super(FlatDHCPManager, self).init_host()
  File "/opt/stack/nova/nova/network/manager.py", line 354, in init_host
    self._setup_network_on_host(ctxt, network)
  File "/opt/stack/nova/nova/network/manager.py", line 1693, in _setup_network_on_host
    self.l3driver.initialize_gateway(network)
  File "/opt/stack/nova/nova/network/l3.py", line 105, in initialize_gateway
    linux_net.initialize_gateway_device(dev, network_ref)
  File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner
    return f(*args, **kwargs)
  File "/opt/stack/nova/nova/network/linux_net.py", line 826, in initialize_gateway_device
    _enable_ipv4_forwarding()
  File "/opt/stack/nova/nova/network/linux_net.py", line 816, in _enable_ipv4_forwarding
    stdout, stderr = _execute('sysctl', '-n', sysctl_key)
  File "/opt/stack/nova/nova/network/linux_net.py", line 1208, in _execute
    return utils.execute(*cmd, **kwargs)
  File "/opt/stack/nova/nova/utils.py", line 164, in execute
    return processutils.execute(*cmd, **kwargs)
  File "/opt/stack/nova/nova/openstack/common/processutils.py", line 171, in execute
    shell=shell)
  File "/usr/lib/python2.7/dist-packages/eventlet/green/subprocess.py", line 44, in __init__
    subprocess_orig.Popen.__init__(self, args, 0, *argss, **kwds)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
2014-09-03 15:32:40.982 ERROR nova.openstack.common.threadgroup [-] [Errno 2] No such file or directory
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 125, in wait
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     x.wait()
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 47, in wait
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/service.py", line 490, in run_service
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     service.start()
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/service.py", line 163, in start
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     self.manager.init_host()
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/network/manager.py", line 1683, in init_host
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     super(FlatDHCPManager, self).init_host()
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/network/manager.py", line 354, in init_host
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     self._setup_network_on_host(ctxt, network)
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/network/manager.py", line 1693, in _setup_network_on_host
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     self.l3driver.initialize_gateway(network)
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/network/l3.py", line 105, in initialize_gateway
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     linux_net.initialize_gateway_device(dev, network_ref)
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     return f(*args, **kwargs)
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/network/linux_net.py", line 826, in initialize_gateway_device
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     _enable_ipv4_forwarding()
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/network/linux_net.py", line 816, in _enable_ipv4_forwarding
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     stdout, stderr = _execute('sysctl', '-n', sysctl_key)
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/network/linux_net.py", line 1208, in _execute
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     return utils.execute(*cmd, **kwargs)
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/utils.py", line 164, in execute
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     return processutils.execute(*cmd, **kwargs)
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/opt/stack/nova/nova/openstack/common/processutils.py", line 171, in execute
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     shell=shell)
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/green/subprocess.py", line 44, in __init__
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     subprocess_orig.Popen.__init__(self, args, 0, *argss, **kwds)
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     errread, errwrite)
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup     raise child_exception
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup OSError: [Errno 2] No such file or directory
2014-09-03 15:32:40.982 TRACE nova.openstack.common.threadgroup

I spent hours googling but I couldn't find any hints on where the problem could come from.

I would be grateful for anything that could be helpful.