Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

l3-agent Cannot find device

Hi,

I can't find a solution to my problem and after a lot of tests, I can't figure what is wrong.

Each time when I try to associate an external network with a router, the l3-agent got the error in /var/log/quantum/l3-agent.log :

2013-08-07 17:42:07 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 638, in _sync_routers_task self._process_routers(routers, all_routers=True) File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 621, in _process_routers self.process_router(ri) File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 319, in process_router self.external_gateway_added(ri, ex_gw_port, internal_cidrs) File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 410, in external_gateway_added prefix=EXTERNAL_DEV_PREFIX) File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/interface.py", line 181, in plug ns_dev.link.set_address(mac_address) File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 180, in set_address self._as_root('set', self.name, 'address', mac_address) File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 167, in _as_root kwargs.get('use_root_namespace', False)) File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 47, in _as_root 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', 'link', 'set', 'qg-fe9adcae-ec', 'address', 'fa:16:3e:67:8f:63'] Exit code: 1 Stdout: '' Stderr: 'Cannot find device "qg-fe9adcae-ec"\n'

But the port is visible with ovs-vsctl show :

... Bridge br-ex Port "qg-fe9adcae-ec" Interface "qg-fe9adcae-ec" type: internal Port "qg-1259372d-e7" Interface "qg-1259372d-e7" type: internal Port br-ex Interface br-ex type: internal Port "eth0" Interface "eth0" ovs_version: "1.4.0+build0"

My configuration is classic and it's the only error I got in quantum logs.

I try to delete and recreate the bridges but nothing change.

Someone already got this problem ?

Thanks,

l3-agent Cannot find device

Hi,

I can't find a solution to my problem and after a lot of tests, I can't figure what is wrong.

Each time when I try to associate an external network with a router, the l3-agent got the error in /var/log/quantum/l3-agent.log :

 2013-08-07 17:42:07    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 638, in _sync_routers_task
     self._process_routers(routers, all_routers=True)
   File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 621, in _process_routers
     self.process_router(ri)
   File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 319, in process_router
     self.external_gateway_added(ri, ex_gw_port, internal_cidrs)
   File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 410, in external_gateway_added
     prefix=EXTERNAL_DEV_PREFIX)
   File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/interface.py", line 181, in plug
     ns_dev.link.set_address(mac_address)
   File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 180, in set_address
     self._as_root('set', self.name, 'address', mac_address)
   File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 167, in _as_root
     kwargs.get('use_root_namespace', False))
   File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 47, in _as_root
     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', 'link', 'set', 'qg-fe9adcae-ec', 'address', 'fa:16:3e:67:8f:63']
 Exit code: 1
 Stdout: ''
 Stderr: 'Cannot find device "qg-fe9adcae-ec"\n'

"qg-fe9adcae-ec"\n'

But the port is visible with ovs-vsctl show :

 ...
     Bridge br-ex
         Port "qg-fe9adcae-ec"
             Interface "qg-fe9adcae-ec"
                 type: internal
         Port "qg-1259372d-e7"
             Interface "qg-1259372d-e7"
                 type: internal
         Port br-ex
             Interface br-ex
                 type: internal
         Port "eth0"
             Interface "eth0"
     ovs_version: "1.4.0+build0"

"1.4.0+build0"

My configuration is classic and it's the only error I got in quantum logs.

I try to delete and recreate the bridges but nothing change.

Someone already got this problem ?

Thanks,