Public bug reported: On a 1+2 env, router has external network attached. Use follow steps to migrate from non-dvr to dvr: 1) modify related config files. 2) restart related services. 3) run command "neutron router-update --distributed=True ROUTER".
Now, there's no snat-* netns create on controller node. As a workaround, restart neutron-l3-agent on controller node will work. And in l3-agent.log, we can find: 2015-02-28 01:26:21.377 5283 ERROR neutron.agent.l3.agent [-] 'LegacyRouter' object has no attribute 'dist_fip_count' 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent Traceback (most recent call last): 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/site-packages/neutron/common/utils.py", line 342, in call 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent return func(*args, **kwargs) 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 592, in process_router 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent self.scan_fip_ports(ri) 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/site-packages/neutron/agent/l3/dvr.py", line 128, in scan_fip_ports 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent if not ri.router.get('distributed') or ri.dist_fip_count is not None: 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent AttributeError: 'LegacyRouter' object has no attribute 'dist_fip_count' It seems current code is not ready to migrate LegacyRouter to DvrRouter. ** Affects: neutron Importance: Undecided Assignee: ZongKai LI (lzklibj) Status: New ** Changed in: neutron Assignee: (unassigned) => ZongKai LI (lzklibj) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1428713 Title: migrate non-dvr to dvr case, snat netns not created Status in OpenStack Neutron (virtual network service): New Bug description: On a 1+2 env, router has external network attached. Use follow steps to migrate from non-dvr to dvr: 1) modify related config files. 2) restart related services. 3) run command "neutron router-update --distributed=True ROUTER". Now, there's no snat-* netns create on controller node. As a workaround, restart neutron-l3-agent on controller node will work. And in l3-agent.log, we can find: 2015-02-28 01:26:21.377 5283 ERROR neutron.agent.l3.agent [-] 'LegacyRouter' object has no attribute 'dist_fip_count' 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent Traceback (most recent call last): 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/site-packages/neutron/common/utils.py", line 342, in call 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent return func(*args, **kwargs) 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 592, in process_router 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent self.scan_fip_ports(ri) 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/site-packages/neutron/agent/l3/dvr.py", line 128, in scan_fip_ports 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent if not ri.router.get('distributed') or ri.dist_fip_count is not None: 2015-02-28 01:26:21.377 5283 TRACE neutron.agent.l3.agent AttributeError: 'LegacyRouter' object has no attribute 'dist_fip_count' It seems current code is not ready to migrate LegacyRouter to DvrRouter. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1428713/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp