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

Bug #1824571 reported by Szabolcs Tenczer on 2019-04-12
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
neutron
Critical
Miguel Lavalle

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.

Changed in neutron:
importance: Undecided → High
status: New → Confirmed
tags: added: l3-dvr-backlog
Brian Haley (brian-haley) wrote :

This could be related to https://review.openstack.org/#/c/567369/ or at least is something to look at.

Miguel Lavalle (minsel) on 2019-04-17
Changed in neutron:
assignee: nobody → Miguel Lavalle (minsel)
Slawek Kaplonski (slaweq) wrote :

I set it as critical because at least 3 different people hits this issue already and were asking about it in neutron irc channel and OpenStack mailing list.

Changed in neutron:
importance: High → Critical
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers