I am experiencing the same problem with the router namespace after deleting the network, router and gateway. The l3-agent.log file has the following error message:
2013-05-20 17:05:50 ERROR [quantum.agent.l3_agent] Failed deleting namespace 'qrouter-c04d91b9-ae63-4699-a889-54772fd4d771'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 189, in _destroy_router_namespaces
self._destroy_router_namespace(ns)
File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 195, in _destroy_router_namespace
for d in ns_ip.get_devices(exclude_loopback=True):
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 73, in get_devices
self.root_helper, self.namespace)
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 58, in _execute
root_helper=root_helper)
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py", line 61, in execute
raise RuntimeError(m)
RuntimeError:
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-c04d91b9-ae63-4699-a889-54772fd4d771', 'ip', '-o', 'link', 'list']
Exit code: 1
Stdout: ''
Stderr: 'seting the network namespace failed: Invalid argument\n'
2013-05-20 17:05:54 ERROR [quantum.agent.l3_agent] Failed synchronizing routers
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 639, in _sync_routers_task
self._process_routers(routers, all_routers=True)
File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 619, in _process_routers
self._router_added(r['id'], r)
File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 232, in _router_added
self._create_router_namespace(ri)
File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 210, in _create_router_namespace
ip_wrapper.netns.execute(['sysctl', '-w', 'net.ipv4.ip_forward=1'])
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 407, in execute
check_exit_code=check_exit_code)
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py", line 61, in execute
raise RuntimeError(m)
RuntimeError:
I am experiencing the same problem with the router namespace after deleting the network, router and gateway. The l3-agent.log file has the following error message:
2013-05-20 17:05:50 ERROR [quantum. agent.l3_ agent] Failed deleting namespace 'qrouter- c04d91b9- ae63-4699- a889-54772fd4d7 71' python2. 7/dist- packages/ quantum/ agent/l3_ agent.py" , line 189, in _destroy_ router_ namespaces _destroy_ router_ namespace( ns) python2. 7/dist- packages/ quantum/ agent/l3_ agent.py" , line 195, in _destroy_ router_ namespace devices( exclude_ loopback= True): python2. 7/dist- packages/ quantum/ agent/linux/ ip_lib. py", line 73, in get_devices root_helper, self.namespace) python2. 7/dist- packages/ quantum/ agent/linux/ ip_lib. py", line 58, in _execute helper= root_helper) python2. 7/dist- packages/ quantum/ agent/linux/ utils.py" , line 61, in execute rootwrap. conf', 'ip', 'netns', 'exec', 'qrouter- c04d91b9- ae63-4699- a889-54772fd4d7 71', 'ip', '-o', 'link', 'list'] agent.l3_ agent] Failed synchronizing routers python2. 7/dist- packages/ quantum/ agent/l3_ agent.py" , line 639, in _sync_routers_task _process_ routers( routers, all_routers=True) python2. 7/dist- packages/ quantum/ agent/l3_ agent.py" , line 619, in _process_routers _router_ added(r[ 'id'], r) python2. 7/dist- packages/ quantum/ agent/l3_ agent.py" , line 232, in _router_added _create_ router_ namespace( ri) python2. 7/dist- packages/ quantum/ agent/l3_ agent.py" , line 210, in _create_ router_ namespace wrapper. netns.execute( ['sysctl' , '-w', 'net.ipv4. ip_forward= 1']) python2. 7/dist- packages/ quantum/ agent/linux/ ip_lib. py", line 407, in execute exit_code= check_exit_ code) python2. 7/dist- packages/ quantum/ agent/linux/ utils.py" , line 61, in execute
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
for d in ns_ip.get_
File "/usr/lib/
self.
File "/usr/lib/
root_
File "/usr/lib/
raise RuntimeError(m)
RuntimeError:
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/
Exit code: 1
Stdout: ''
Stderr: 'seting the network namespace failed: Invalid argument\n'
2013-05-20 17:05:54 ERROR [quantum.
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
ip_
File "/usr/lib/
check_
File "/usr/lib/
raise RuntimeError(m)
RuntimeError: