← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1824571] Re: l3agent can't create router if there are multiple external networks

 

Reviewed:  https://review.opendev.org/661509
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0b3f5f429d2e495eb78d78d46186092ac735e0d5
Submitter: Zuul
Branch:    master

commit 0b3f5f429d2e495eb78d78d46186092ac735e0d5
Author: Miguel Lavalle <miguel.lavalle@xxxxxxxxxxxxxxxx>
Date:   Sun May 26 19:15:25 2019 -0500

    Support multiple external networks in L3 agent
    
    Change [1] removed the deprecated option external_network_bridge. Per
    commit message in change [2], "l3 agent can handle any networks by
    setting the neutron parameter external_network_bridge and
    gateway_external_network_id to empty". So the consequence of [1] was to
    introduce a regression whereby multiple external networks are not
    supported by the L3 agent anymore.
    
    This change proposes a new simplified rule. If
    gateway_external_network_id is defined, that is the network that the L3
    agent will use. If not and multiple external networks exist, the L3
    agent will handle any of them.
    
    [1] https://review.opendev.org/#/c/567369/
    [2] https://review.opendev.org/#/c/59359
    
    Change-Id: Idd766bd069eda85ab6876a78b8b050ee5ab66cf6
    Closes-Bug: #1824571


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1824571

Title:
  l3agent can't create router if there are multiple external networks

Status in neutron:
  Fix Released

Bug description:
  In case there are more than one external network the l3 agent unable
  to create routers with the following error:

  2019-04-12 17:33:18.844 103 ERROR neutron.agent.l3.agent Traceback (most recent call last):
  2019-04-12 17:33:18.844 103 ERROR neutron.agent.l3.agent   File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 701, in _process_routers_if_compatible
  2019-04-12 17:33:18.844 103 ERROR neutron.agent.l3.agent     self._process_router_if_compatible(router)
  2019-04-12 17:33:18.844 103 ERROR neutron.agent.l3.agent   File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 548, in _process_router_if_compatible
  2019-04-12 17:33:18.844 103 ERROR neutron.agent.l3.agent     target_ex_net_id = self._fetch_external_net_id()
  2019-04-12 17:33:18.844 103 ERROR neutron.agent.l3.agent   File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 376, in _fetch_external_net_id
  2019-04-12 17:33:18.844 103 ERROR neutron.agent.l3.agent     raise Exception(msg)
  2019-04-12 17:33:18.844 103 ERROR neutron.agent.l3.agent Exception: The 'gateway_external_network_id' option must be configured for this agent as Neutron has more than one external network.

  It happens in DVR scenario on both dvr and dvr_snat agents and it
  started after upgraded from Rocky to Stein, before the upgrade it
  worked fine. The gateway_external_network_id is not set in my config,
  because I want the l3 agent to be able to use multiple external
  networks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1824571/+subscriptions


References