← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1855759] [NEW] neutron.plugins.ml2.drivers.agent._common_agent KeyError: 'gateway' . ERROR

 

Public bug reported:

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  in controller node , it
return this error . I configured neutron as provider

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 .


ml2.conf 
[DEFAULT]
core_plugin = ml2
service_plugins = 
allow_overlapping_ips = true
transport_url = rabbit://openstack:XXXX_Rabbit@controller
auth_strategy = keystone
notify_nova_on_port_status_changes = true
notify_nova_on_port_data_changes = true
[agent]
root_helper = "sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf"
[cors]
[database]
connection = mysql+pymysql://neutron:NEUTRON_XXXX@controller/neutron
[ironic]
[keystone_authtoken]
www_authenticate_uri = http://controller:5000
auth_url = http://controller:5000
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://controller:5000
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/neutron/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
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_interface_mappings = provider:enp6s0
[network_log]
[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver 
[vxlan]
enable_vxlan = false

** Affects: neutron
     Importance: Undecided
         Status: New

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

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

Status in neutron:
  New

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-linuxbridge-agent.log  in
  controller node , it return this error . I configured neutron as
  provider

  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 .

  
  ml2.conf 
  [DEFAULT]
  core_plugin = ml2
  service_plugins = 
  allow_overlapping_ips = true
  transport_url = rabbit://openstack:XXXX_Rabbit@controller
  auth_strategy = keystone
  notify_nova_on_port_status_changes = true
  notify_nova_on_port_data_changes = true
  [agent]
  root_helper = "sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf"
  [cors]
  [database]
  connection = mysql+pymysql://neutron:NEUTRON_XXXX@controller/neutron
  [ironic]
  [keystone_authtoken]
  www_authenticate_uri = http://controller:5000
  auth_url = http://controller:5000
  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://controller:5000
  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/neutron/tmp
  [oslo_messaging_amqp]
  [oslo_messaging_kafka]
  [oslo_messaging_notifications]
  [oslo_messaging_rabbit]
  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_interface_mappings = provider:enp6s0
  [network_log]
  [securitygroup]
  enable_security_group = true
  firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver 
  [vxlan]
  enable_vxlan = false

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


Follow ups