Public bug reported:

In ip_lib in IpNetnsComand losted root_helper. 
Without it L3 agent can't create interfaces inside network namespace:

2014-04-23 16:15:44.760 28240 DEBUG neutron.agent.linux.utils 
[req-d0f812f6-d987-45f5-9cff-11f1fa52fed6 None] Running command: ['ip', '-o', 
'netns', 'list'] create_process /
usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:48
2014-04-23 16:15:44.781 28240 DEBUG neutron.agent.linux.utils 
[req-d0f812f6-d987-45f5-9cff-11f1fa52fed6 None]
Command: ['ip', '-o', 'netns', 'list']
Exit code: 0
Stdout: ''
Stderr: '' execute 
/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:74
2014-04-23 16:15:44.782 28240 DEBUG neutron.agent.linux.utils 
[req-d0f812f6-d987-45f5-9cff-11f1fa52fed6 None] Running command: ['sudo', 
'neutron-rootwrap', '/etc/neutron/roo
twrap.conf', 'ip', 'netns', 'add', 
'qrouter-b582586e-70e3-4a38-8b19-039f30ce87a9'] create_process 
/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:48
2014-04-23 16:15:44.864 28240 DEBUG neutron.agent.linux.utils 
[req-d0f812f6-d987-45f5-9cff-11f1fa52fed6 None]
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 
'netns', 'add', 'qrouter-b582586e-70e3-4a38-8b19-039f30ce87a9']
Exit code: 255
Stdout: ''
Stderr: 'Could not create 
/var/run/netns/qrouter-b582586e-70e3-4a38-8b19-039f30ce87a9: File exists\n' 
execute /usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:7
4
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/eventlet/greenpool.py", line 80, in 
_spawn_n_impl
    func(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 438, 
in process_router
    p['ip_cidr'], p['mac_address'])
  File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 707, 
in internal_network_added
    prefix=INTERNAL_DEV_PREFIX)
  File "/usr/lib/python2.6/site-packages/neutron/agent/linux/interface.py", 
line 195, in plug
    namespace_obj = ip.ensure_namespace(namespace)
  File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 
136, in ensure_namespace
    ip = self.netns.add(name)
  File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 
446, in add
    self._as_root('add', name, use_root_namespace=True)
  File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 
217, in _as_root
    kwargs.get('use_root_namespace', False))
  File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 
70, in _as_root
    namespace)
  File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 
81, in _execute
    root_helper=root_helper)
  File "/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py", line 
76, in execute
    raise RuntimeError(m)
RuntimeError:
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 
'netns', 'add', 'qrouter-b582586e-70e3-4a38-8b19-039f30ce87a9']
Exit code: 255

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1311804

Title:
  ip netns list starts without root_helper

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  In ip_lib in IpNetnsComand losted root_helper. 
  Without it L3 agent can't create interfaces inside network namespace:

  2014-04-23 16:15:44.760 28240 DEBUG neutron.agent.linux.utils 
[req-d0f812f6-d987-45f5-9cff-11f1fa52fed6 None] Running command: ['ip', '-o', 
'netns', 'list'] create_process /
  usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:48
  2014-04-23 16:15:44.781 28240 DEBUG neutron.agent.linux.utils 
[req-d0f812f6-d987-45f5-9cff-11f1fa52fed6 None]
  Command: ['ip', '-o', 'netns', 'list']
  Exit code: 0
  Stdout: ''
  Stderr: '' execute 
/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:74
  2014-04-23 16:15:44.782 28240 DEBUG neutron.agent.linux.utils 
[req-d0f812f6-d987-45f5-9cff-11f1fa52fed6 None] Running command: ['sudo', 
'neutron-rootwrap', '/etc/neutron/roo
  twrap.conf', 'ip', 'netns', 'add', 
'qrouter-b582586e-70e3-4a38-8b19-039f30ce87a9'] create_process 
/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:48
  2014-04-23 16:15:44.864 28240 DEBUG neutron.agent.linux.utils 
[req-d0f812f6-d987-45f5-9cff-11f1fa52fed6 None]
  Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 
'netns', 'add', 'qrouter-b582586e-70e3-4a38-8b19-039f30ce87a9']
  Exit code: 255
  Stdout: ''
  Stderr: 'Could not create 
/var/run/netns/qrouter-b582586e-70e3-4a38-8b19-039f30ce87a9: File exists\n' 
execute /usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:7
  4
  Traceback (most recent call last):
    File "/usr/lib/python2.6/site-packages/eventlet/greenpool.py", line 80, in 
_spawn_n_impl
      func(*args, **kwargs)
    File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 
438, in process_router
      p['ip_cidr'], p['mac_address'])
    File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 
707, in internal_network_added
      prefix=INTERNAL_DEV_PREFIX)
    File "/usr/lib/python2.6/site-packages/neutron/agent/linux/interface.py", 
line 195, in plug
      namespace_obj = ip.ensure_namespace(namespace)
    File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 
136, in ensure_namespace
      ip = self.netns.add(name)
    File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 
446, in add
      self._as_root('add', name, use_root_namespace=True)
    File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 
217, in _as_root
      kwargs.get('use_root_namespace', False))
    File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 
70, in _as_root
      namespace)
    File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 
81, in _execute
      root_helper=root_helper)
    File "/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py", line 
76, in execute
      raise RuntimeError(m)
  RuntimeError:
  Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 
'netns', 'add', 'qrouter-b582586e-70e3-4a38-8b19-039f30ce87a9']
  Exit code: 255

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1311804/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to