The namespaces are not flushed, but it seems to try the delete them.
I deleted all routers and networks and started from the ground up. First, I stopped the L3 agents and added both provider networks. Then I updated the network IDs in the L3 agent configuration and started the first L3 agent.
After that I added a tenant network and a router. After connecting the router to the first provider network I started the second L3 agent.
after adding router and router interface to tenant network:
ip netns
qrouter-8d3522f4-2b1a-4049-9239-f5a906208484
brctl show
bridge name bridge id STP enabled interfaces
br100 8000.000000000000 no
brq29325e60-4d 8000.00304864eebd no bond0.1000
tap0f21ae71-05
after setting gateway on router:
ip netns
qrouter-8d3522f4-2b1a-4049-9239-f5a906208484
brctl show
bridge name bridge id STP enabled interfaces
br100 8000.000000000000 no
brq29325e60-4d 8000.00304864eebd no bond0.1000
tap0f21ae71-05
brq4fd0d5eb-4b 8000.00304864eebd no bond0.100
tap529b2f60-18
after starting second l3-agent:
ip netns
qrouter-8d3522f4-2b1a-4049-9239-f5a906208484
brctl show
bridge name bridge id STP enabled interfaces
br100 8000.000000000000 no
==> /var/log/neutron/neutron-netns-cleanup.log <==
2013-10-22 18:00:04.504 5407 ERROR neutron.agent.netns_cleanup_util [-] Error unable to destroy namespace: qrouter-8d3522f4-2b1a-4049-9239-f5a906208484
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util Traceback (most recent call last):
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util File "/usr/lib/python2.7/dist-packages/neutron/agent/netns_cleanup_util.py", line 135, in destroy_namespace
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util ip.garbage_collect_namespace()
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 141, in garbage_collect_namespace
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util self.netns.delete(self.namespace)
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 442, in delete
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util self._as_root('delete', name, use_root_namespace=True)
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 208, in _as_root
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util kwargs.get('use_root_namespace', False))
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 65, in _as_root
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util namespace)
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 76, in _execute
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util root_helper=root_helper)
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 62, in execute
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util raise RuntimeError(m)
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util RuntimeError:
2013-10-22 18:00:04.504 5407 TRACE neutron.agent.netns_cleanup_util Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'delete', 'qrouter-8d3522f4-2b1a-4049-9239-f5a906208484 ... (more)