Ask Your Question
0

l3-agent Cannot find device

asked 2013-08-07 10:57:30 -0500

Noriak gravatar image

updated 2013-08-08 17:34:06 -0500

smaffulli gravatar image

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,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-08-09 09:33:46 -0500

Noriak gravatar image

I found my problem.

I create the br-ex bridge with /et/network/interfaces with bridge-ports ethX.

OVS wants to create the bridge, so I put now "/usr/bin/ovs-vsctl add-port br-ex ethX" in /etc/rc.local and it works fine.

Hope it helps ...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-08-07 10:57:30 -0500

Seen: 1,096 times

Last updated: Aug 09 '13