← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1428713] Re: migrate non-dvr to dvr case, snat netns not created

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

** Changed in: neutron
    Milestone: None => liberty-3

-- 
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 neutron:
  Fix Released

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


References