Still an issue under centos 6.5. Looking at this thread, it's not clear to me if a work-around was ever figured out. Is it possible to just disable openstack's use of namespaces?
==> /var/log/neutron/dhcp-agent.log <==
2014-05-28 16:18:54.351 2601 INFO neutron.agent.dhcp_agent [-] Synchronizing state
2014-05-28 16:18:54.516 2601 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for bd09371a-e8d1-46cf-89bb-3d64984696b5.
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent Traceback (most recent call last):
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/dhcp_agent.py", line 127, in call_driver
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent getattr(driver, action)(**action_kwargs)
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 166, in enable
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent reuse_existing=True)
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 835, in setup
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent namespace=network.namespace)
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/interface.py", line 195, in plug
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent namespace_obj = ip.ensure_namespace(namespace)
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 135, in ensure_namespace
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent if not self.netns.exists(name):
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 469, in exists
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent output = self._parent._execute('o', 'netns', ['list'])
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent root_helper=root_helper)
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py", line 76, in execute
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent raise RuntimeError(m)
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent RuntimeError:
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent Command: ['ip', '-o', 'netns', 'list']
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent Exit code: 255
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent Stdout: ''
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent Stderr: 'Object "netns" is unknown, try "ip help".\n'
2014-05-28 16:18:54.516 2601 TRACE neutron.agent.dhcp_agent
2014-05-28 16:18:54.517 2601 INFO neutron.agent.dhcp_agent [-] Synchronizing state complete
Still an issue under centos 6.5. Looking at this thread, it's not clear to me if a work-around was ever figured out. Is it possible to just disable openstack's use of namespaces?
==> /var/log/ neutron/ dhcp-agent. log <== agent.dhcp_ agent [-] Synchronizing state agent.dhcp_ agent [-] Unable to enable dhcp for bd09371a- e8d1-46cf- 89bb-3d64984696 b5. agent.dhcp_ agent Traceback (most recent call last): agent.dhcp_ agent File "/usr/lib/ python2. 6/site- packages/ neutron/ agent/dhcp_ agent.py" , line 127, in call_driver agent.dhcp_ agent getattr(driver, action) (**action_ kwargs) agent.dhcp_ agent File "/usr/lib/ python2. 6/site- packages/ neutron/ agent/linux/ dhcp.py" , line 166, in enable agent.dhcp_ agent reuse_existing= True) agent.dhcp_ agent File "/usr/lib/ python2. 6/site- packages/ neutron/ agent/linux/ dhcp.py" , line 835, in setup agent.dhcp_ agent namespace= network. namespace) agent.dhcp_ agent File "/usr/lib/ python2. 6/site- packages/ neutron/ agent/linux/ interface. py", line 195, in plug agent.dhcp_ agent namespace_obj = ip.ensure_ namespace( namespace) agent.dhcp_ agent File "/usr/lib/ python2. 6/site- packages/ neutron/ agent/linux/ ip_lib. py", line 135, in ensure_namespace agent.dhcp_ agent if not self.netns. exists( name): agent.dhcp_ agent File "/usr/lib/ python2. 6/site- packages/ neutron/ agent/linux/ ip_lib. py", line 469, in exists agent.dhcp_ agent output = self._parent. _execute( 'o', 'netns', ['list']) agent.dhcp_ agent File "/usr/lib/ python2. 6/site- packages/ neutron/ agent/linux/ ip_lib. py", line 81, in _execute agent.dhcp_ agent root_helper= root_helper) agent.dhcp_ agent File "/usr/lib/ python2. 6/site- packages/ neutron/ agent/linux/ utils.py" , line 76, in execute agent.dhcp_ agent raise RuntimeError(m) agent.dhcp_ agent RuntimeError: agent.dhcp_ agent Command: ['ip', '-o', 'netns', 'list'] agent.dhcp_ agent Exit code: 255 agent.dhcp_ agent Stdout: '' agent.dhcp_ agent Stderr: 'Object "netns" is unknown, try "ip help".\n' agent.dhcp_ agent agent.dhcp_ agent [-] Synchronizing state complete
2014-05-28 16:18:54.351 2601 INFO neutron.
2014-05-28 16:18:54.516 2601 ERROR neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.516 2601 TRACE neutron.
2014-05-28 16:18:54.517 2601 INFO neutron.