Ask Your Question
0

nova-network doesn't start after reinstall

asked 2014-09-03 08:42:28 -0500

michaellange gravatar image

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

Comments

I am having the same issue:

x-image-meta-disk_format: ami from (pid=10617) log_http_response /opt/stack/python-glanceclient/glanceclient/common/http.py:131 2014-09-18 08:09:38.622 DEBUG nova.openstack.common.processutils [req-0b49a2e0-9d8e-45a0-a50a-c339ac92fd27 admin admin] Running cmd (subproces

kristianjf gravatar imagekristianjf ( 2014-09-18 10:32:34 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-10-31 10:55:37 -0500

liubingchuan8 gravatar image

In the screen do: PATH=${PATH}:/sbin then restart the process (nova-network) This is good for me!

edit flag offensive delete link more
0

answered 2015-04-23 07:38:31 -0500

jdexter gravatar image

Check that the file defined in your trace is there. /usr/lib/python2.7/subprocess.py

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

As that is what the error is pointing at

edit flag offensive delete link more
0

answered 2015-04-23 03:19:24 -0500

eduard.bicerimatei gravatar image

In the screen do: PATH=${PATH}:/sbin then restart the process (nova-network).

edit flag offensive delete link more

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-09-03 08:42:28 -0500

Seen: 437 times

Last updated: Apr 23 '15