Ask Your Question
3

neutron.plugins.ml2.drivers.agent._common_agent KeyError: 'gateway'

asked 2019-12-09 02:58:26 -0500

ehsan gravatar image

Hi Everyone , I installed train on Ubuntu 18.0.4 Server . I've a problem with neutron . when I run openstack create subnet , my subnet created , but when I check neutron-linuxbridge-agent.log , it return this error

ERROR neutron.plugins.ml2.drivers.agent._common_agent KeyError: 'gateway' . ERROR neutron.plugins.ml2.drivers.agent._common_agent File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 402, in _update_interface_ip_details

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2020-01-12 16:30:32 -0500

Hi, I solved this issue using a interface without a IP at the physical_interface_mappings option in the /etc/neutron/plugins/ml2/linuxbridge_agent.ini compute's file. This interface must be configured with ifupdown in the /etc/network/interfaces, using the following code:

auto INTERFACE_NAME
iface INTERFACE_NAME inet manual
    up ip link set dev $IFACE up
    down ip link set dev $IFACE down
edit flag offensive delete link more
0

answered 2020-01-01 20:27:19 -0500

Hi shrapneel,

Could you clarify what you did to fix the problem?

In my case, I have the following new interfaces after openstack subnet create

tape8a7b19f-31@if2 and brqf217961a-f5.

The log references this tap device.. Error in agent loop. Devices info: {'current': {'tape8a7b19f-31'}, ...

I tried adding the two interfaces to the bridge with brctl addif brqf217961a-f5 tape8a7b19f-31 enp0s8, but I'm not really sure if that's the right move. enp0s8 is my provider network.

Thanks!

edit flag offensive delete link more

Comments

Hi! I only added "brq..." into the bridge, as it is linuxbridge's interface and all "tap..." interfaces are created for subnets/instances (not rememver clearly)

My linux distributive was not intended to run OpenStack out of the box

shrapneel gravatar imageshrapneel ( 2020-01-23 02:59:00 -0500 )edit

Also i had problem that after reboot interfaces appeared with some delay - so i turned off ssh service for about 100 seconds wia rc.local script in order not to harm the system

shrapneel gravatar imageshrapneel ( 2020-01-23 03:03:39 -0500 )edit
0

answered 2019-12-11 03:30:09 -0500

shrapneel gravatar image

Had the same problem. Thought it's a bug of newest neutron. My problem was that interfaces, created after openstack subnet create weren't connected to my nic interface with the same error log. Solved it with brctl addif ... connect to linuxbridge port (must be repeated after reboot) I'm new in Linux and have no better solution

edit flag offensive delete link more

Comments

It could be my distributive's package problem because later on i tried to install train on Ubuntu - and there were no any problems

shrapneel gravatar imageshrapneel ( 2020-01-23 03:05:48 -0500 )edit
0

answered 2020-04-03 07:18:15 -0500

Sooyoung Kim gravatar image

Hi, I solved this issue installing neutron 15.0.2 and apply an additional patch.

My environment is as below: OS: ubuntu 18.04.4 Openstack: train series

In my case, I can't install the neutron 15.0.2 from repository which is http://ubuntu-cloud.archive.canonical.com/ubuntu (http://ubuntu-cloud.archive.canonical...) bionic-updates/train. I guess it is not available currently.

So I installed neutron 15.0.2 by using pip3. Current neutron version is 15.0.2.

$ sudo pip3 install neutron

And then I have met another issue with TypeError.

I found new patch in the neutron repo. The patch is https://github.com/openstack/neutron/commit/7593f95a741aec62d9956175ce6d3ce1b1abb9a0#diff-4d838767dbc610e974ad2e1550a5ef89 (https://github.com/openstack/neutron/...)

I applied the above patch on correct location(/usr/local/lib/python3.6/dist-packages/neutron).

Finally, you can do this to all neutron members(controller and compute nodes).

I spent much time because I missed applying this solution to all compute nodes and new neutron source location.--;

I hope you can solve this issue. Thanks.

edit flag offensive delete link more
0

answered 2019-12-10 02:22:39 -0500

Hi,

What version of Neutron You are using? Is it the same version on neutron-server and neutron-linuxbridge-agent?

edit flag offensive delete link more

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-12-09 02:58:26 -0500

Seen: 660 times

Last updated: Apr 03