Ask Your Question
1

External network with more than one VLAN not working in Stein Release.

asked 2019-04-15 04:08:41 -0500

diegos79 gravatar image

Hi all, I'm pretty desperate, I hope you can give me a helpful tip. A few days ago I've deployed Openstack Stein using kolla-ansible. The Deployment itself was ok. I've configured the interface bond0 as the "neutron_external_interface" in the /etc/kolla/globals.yml file. On the bond0 there are 6 VLANs/subnets configurated on external Switch/Router side.

My goal is to configure all those VLANs/networks on Openstack as External Networks. The first VLAN configured works perfectly, but from the second VLAN doesn't work. When I try to configure a Router connected to the second VLAN/network I got this error on the file log /var/log/kolla/neutron/neutron-l3-agent.log:

2019-04-12 20:31:12.832 13 INFO neutron.agent.l3.agent [-] Starting router update for 887f1298-2bb7-4096-908d-b32a5fbd1441, action 3, priority 2 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent [-] Failed to process compatible router: 887f1298-2bb7-4096-908d-b32a5fbd1441: Exception: The 'gateway_external_network_id' option must be configured for this agent as Neutron has more than one external network. 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent Traceback (most recent call last): 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 701, in _process_routers_if_compatible 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent self._process_router_if_compatible(router) 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 552, in _process_router_if_compatible 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent if ex_net_id != self._fetch_external_net_id(force=True): 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 376, in _fetch_external_net_id 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent raise Exception(msg) 2019-04-12 20:31:13.884 13 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. 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent

2019-04-12 20:31:12.832 13 INFO neutron.agent.l3.agent [-] Starting router update for 887f1298-2bb7-4096-908d-b32a5fbd1441, action 3, priority 2 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent [-] Failed to process compatible router: 887f1298-2bb7-4096-908d-b32a5fbd1441: Exception: The 'gateway_external_network_id' option must be configured for this agent as Neutron has more than one external network. 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent Traceback (most recent call last): 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 701, in _process_routers_if_compatible 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent self._process_router_if_compatible(router) 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 552, in _process_router_if_compatible 2019-04-12 20:31:13.884 13 ERROR neutron.agent.l3.agent if ex_net_id ... (more)

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2019-04-18 05:07:29 -0500

diegos79 gravatar image

Hi Mark, thanks for your answer. I'm not sure how to do what you asked for.

Also, from what I understood: the parameters "gateway_external_network_id" and "external_network_bridge" should be deprecated. is that correct?

Any suggestion how to apply the modification ypu have suggested in the configuration file?

Thx

edit flag offensive delete link more

Comments

gateway_external_network_id must be left empty for supporting multiple external networks as per documentation. but if it left empty errors are showing. is there any other way instead of multiple l3 agents?

murali gravatar imagemurali ( 2019-05-29 02:47:32 -0500 )edit
0

answered 2019-07-18 11:21:27 -0500

osmanlicilegi gravatar image

This issue is related with https://bugs.launchpad.net/neutron/+bug/1824571 (https://bugs.launchpad.net/neutron/+b...) and has been fixed. Try upgrading neutron.

edit flag offensive delete link more
0

answered 2019-04-24 14:32:20 -0500

andybrucenet gravatar image

I also have 3 external networks. For Pike and Stein I resorted to hacking the Python code - but if there's a better way I want to know it. Documentation doesn't really discuss multiple external subnets - probably I'll have to run multiple L3 agents each associated with a specific external network to make this kosher.

For anyone else - the relevant code under Stein is:

    # /usr/lib/python2.7/site-packages/neutron/db/external_net_db.py
    def get_external_network_id(self, context):
        nets = self.get_networks(context, {extnet_apidef.EXTERNAL: [True]})
        if len(nets) > 1:
            # ABr: select 'ext-net' for now
            for i in range(len(nets)):
                if nets[i]['name'] == 'ext-net':
                  return nets[i]['id']
            raise n_exc.TooManyExternalNetworks()
        else:
            return nets[0]['id'] if nets else None
edit flag offensive delete link more
0

answered 2019-04-15 10:09:39 -0500

The error message says:

The 'gateway_external_network_id' option must be configured for this agent as Neutron has more than one external network

Have you tried setting that config option?

edit flag offensive delete link more

Comments

what should be the value for that parameter? is the vlan id? is the external flat network identifier?

Angel Vargas gravatar imageAngel Vargas ( 2019-04-30 19:10:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2019-04-15 04:08:41 -0500

Seen: 238 times

Last updated: Apr 24