neutron.plugins.ml2.drivers.agent._common_agent KeyError: 'gateway' . ERROR
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| neutron |
High
|
Rodolfo Alonso |
Bug Description
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-
ERROR neutron.
ml2.conf
[DEFAULT]
core_plugin = ml2
service_plugins =
allow_overlappi
transport_url = rabbit:
auth_strategy = keystone
notify_
notify_
[agent]
root_helper = "sudo /usr/bin/
[cors]
[database]
connection = mysql+pymysql:
[ironic]
[keystone_
www_authenticat
auth_url = http://
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = NEUTRON@XXXX
[nova]
auth_url = http://
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = XXXX@Nova
[oslo_concurrency]
lock_path = /var/lib/
[oslo_messaging
[oslo_messaging
[oslo_messaging
[oslo_messaging
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = XXXX_Rabbit
[oslo_middleware]
[oslo_policy]
[privsep]
[quotas]
[ssl]
l3_agent.ini
[DEFAULT]
[agent]
[linux_bridge]
physical_
[network_log]
[securitygroup]
enable_
firewall_driver = neutron.
[vxlan]
enable_vxlan = false
tags: | added: neutron |
YAMAMOTO Takashi (yamamoto) wrote : | #1 |
Changed in neutron: | |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
Hello:
I think this is my fault. In I5e5e9f69810243
Regards.
Fix proposed to branch: master
Review: https:/
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
importance: | Undecided → High |
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: master
commit b99765df8f1d1d6
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Tue Dec 10 15:50:20 2019 +0000
Use "via" in gateway dictionary in Linux Bridge agent
The gateway IP address in the gateway dictionary returned by
"ip_
"priority" parameter is changed to "metric", to match input and
output parameters.
Change-Id: I67ae473dca8d70
Closes-Bug: #1855759
Changed in neutron: | |
status: | In Progress → Fix Released |
Fix proposed to branch: stable/train
Review: https:/
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 124680084c6f921
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Tue Dec 10 15:50:20 2019 +0000
Use "via" in gateway dictionary in Linux Bridge agent
The gateway IP address in the gateway dictionary returned by
"ip_
"priority" parameter is changed to "metric", to match input and
output parameters.
Change-Id: I67ae473dca8d70
Closes-Bug: #1855759
(cherry picked from commit b99765df8f1d1d6
tags: | added: in-stable-train |
Tristan Sullivan (tristansullivan) wrote : | #7 |
Hi,
I had the issue described here, because the version of openstack-train provided by Centos7 predates the fix. I applied the fix, but then ran into another problem. The linuxbridge-agent log file started filling up with a different error message. Here's the end of the stack trace:
2020-02-14 10:44:36.529 100143 ERROR neutron.
metric = gateway['metric'] - 1
2020-02-14 10:44:36.529 100143 ERROR neutron.
gateway['metric'] comes from line 1503 of neutron/
'metric': get_attr(route, 'RTA_PRIORITY')
I have routes with metric 0. In this case, it seems that get_attr returns None instead of 0. Then, in line 400 of neutron/
metric = gateway['metric'] - 1,
and gives the error indicated in the log file. As a workaround I added
if value['metric'] == None:
to ip_lib.py in list_ip_routes, which makes it work, but is probably not the best solution. I'm new to Openstack, so I wasn't sure if I should make a new bug report or put this here. If I should make a new bug report instead, or if there is other information I should provide, please let me know, and I will do so.
Thank you,
Tristan
Hi Tristan:
I have confirmed that pyroute2 returns "None" if the metric is not explicitly set.
The default route metric values should be set according to the default values defined in [1].
Regards.
Related fix proposed to branch: master
Review: https:/
This issue was fixed in the openstack/neutron 15.0.2 release.
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: master
commit 7593f95a741aec6
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Mon Feb 17 10:28:12 2020 +0000
Set a default IP route metric in ip_lib.
By default, if no metric is defined, the kernel interprets the
highest value (0).
The current implementation, using pyroute2, is a translation from
the CLI command "ip route". This command uses the netlink API to
communicate with the kernel. In IPv6, when the metric value is not
set is translated as 1024 as default [1].
[1]https:/
Change-Id: I0c5f9e320bbbf3
Related-Bug: #1855759
This issue was fixed in the openstack/neutron 16.0.0.0b1 development milestone.
tags: | added: neutron-proactive-backport-potential |
Related fix proposed to branch: stable/train
Review: https:/
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit f900561550966b0
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Mon Feb 17 10:28:12 2020 +0000
Set a default IP route metric in ip_lib.
By default, if no metric is defined, the kernel interprets the
highest value (0).
The current implementation, using pyroute2, is a translation from
the CLI command "ip route". This command uses the netlink API to
communicate with the kernel. In IPv6, when the metric value is not
set is translated as 1024 as default [1].
[1]https:/
Change-Id: I0c5f9e320bbbf3
Related-Bug: #1855759
(cherry picked from commit 7593f95a741aec6
tags: | removed: neutron-proactive-backport-potential |
can you provide the entire linuxbridge-agent log, preferably with DEBUG level?