seting the network namespace failed: Invalid argument argument

asked 2014-04-06 16:19:43 -0600

Eduardo Piva gravatar image

Quantum: Version: 1:2013.1.4-0ubuntu1~cloud0 Deployed on: Ubuntu 12.04.4 LTS

Recently we've created a new network for a small test on our openstack deployment.

After the deletion of the network attachment of floating ip started failling and we started to have some issues with new instances creating, such as not acquiring DHCP.

After that I restarted quantum services and noticed that the dnmasq service was not restarting, and in the quantum/dhcp-agent.log I had the following error:

Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip', 'link', 'add', 'tapca76e440-f0', 'type', 'veth', 'peer', 'name', 'ns-ca76e440-f0', 'netns', 'qdhcp-60b51379-182b-406b-aed5-f9f882cf1f1a']
Exit code: 2
Stdout: ''
Stderr: 'RTNETLINK answers: File exists\n'

So the command was indeed trying to create a link that already existed. So I deleted that link and did a quantum-netns-cleanup.

The quantum-netns-cleanup is also not running properly:

$ sudo quantum-netns-cleanup 
Command: ['sudo', 'ip', 'netns', 'exec', 'qrouter-577b0cec-de89-4db8-b69a-0b583b93b0d9', 'ip', '-o', 'link', 'list']
Exit code: 1
Stdout: ''
Stderr: 'seting the network namespace failed: Invalid argument\n'

After that attempt of cleanup when I try to restart quantum-dhcp-agent and quantum-l3 I'm having problems:


2014-04-06 18:08:38    ERROR [quantum.agent.dhcp_agent] Unable to enable dhcp. Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/quantum/agent/", line 131, in call_driver getattr(driver, action)()
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/", line 124, in enable
File "/usr/lib/python2.7/dist-packages/quantum/agent/", line 602, in setup
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/", line 173, in plug
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/", line 102, in add_veth
self._as_root('', 'link', tuple(args))
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/", line 47, in _as_root
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/", line 58, in _execute
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/", line 61, in execute
raise RuntimeError(m)
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip', 'link', 'add', 'tapca76e440-f0', 'type', 'veth', 'peer', 'name', 'ns-ca76e440-f0', 'netns', 'qdhcp-60b51379-182b-406b-aed5-f9f882cf1f1a']
Exit code: 2
Stdout: ''
Stderr: 'RTNETLINK answers: Invalid argument\n'


2014-04-06 18:08:34    ERROR [quantum.agent.l3_agent] Failed synchronizing routers Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/quantum/agent/", line 638, in _sync_routers_task
self._process_routers(routers, all_routers=True)
File "/usr/lib/python2.7/dist-packages/quantum/agent/", line 621, in _process_routers
File "/usr/lib/python2.7/dist-packages/quantum/agent/", line 319, in process_router
self.external_gateway_added(ri, ex_gw_port, internal_cidrs)
File "/usr/lib/python2.7/dist-packages/quantum/agent/", line 410, in external_gateway_added
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/", line 191, in plug
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/", line 129, in add_device_to_namespace
File "/usr/lib/python2.7/dist-packages/quantum ...
edit retag flag offensive close merge delete