← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1918155] [NEW] Can't create m2 interface on the 15.3.2

 

Public bug reported:

Ubuntu 18.04, Openstack Train from the official repository. 
Using ml2 driver with the provider networks. 
Everything worked fine on the neutron 15.3.0, but after upgrade I got this:

2021-03-08 04:54:59.948 4554 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-e7b32ad7-9259-49a5-bad9-20a11f64b104 - - - - -] Linux bridge agent Agent out of sync with plugin!
2021-03-08 04:54:59.948 4554 INFO neutron.agent.securitygroups_rpc [req-e7b32ad7-9259-49a5-bad9-20a11f64b104 - - - - -] Preparing filters for devices {'tap28c0b6e8-76'}
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent [req-e7b32ad7-9259-49a5-bad9-20a11f64b104 - - - - -] Error in agent loop. Devices info: {'current': {'tap28c0b6e8-76'}, 'timestamps': {'tap28c0b6e8-76': 15}, 'added': {'tap28c0b6e8-76'}, 'removed': set(), 'updated': set()}: TypeError:
 unexpected type <class 'list'> for addr arg
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent Traceback (most recent call last):
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 465, in daemon_loop
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     sync = self.process_network_devices(device_info)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/osprofiler/profiler.py", line 160, in wrapper
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     result = f(*args, **kwargs)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 207, in process_network_devices
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     device_info.get('updated'))
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/securitygroups_rpc.py", line 258, in setup_port_filters
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self.prepare_devices_filter(new_devices)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/securitygroups_rpc.py", line 123, in decorated_function
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     *args, **kwargs)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/securitygroups_rpc.py", line 135, in prepare_devices_filter
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self._apply_port_filter(device_ids)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/securitygroups_rpc.py", line 159, in _apply_port_filter
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     security_groups, security_group_member_ips)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/securitygroups_rpc.py", line 176, in _update_security_group_info
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     remote_sg_id, member_ips)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/linux/iptables_firewall.py", line 150, in update_security_group_members
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self._update_ipset_members(sg_id, sg_members)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/linux/iptables_firewall.py", line 156, in _update_ipset_members
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     sg_id, ip_version, current_ips)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/linux/ipset_manager.py", line 78, in set_members
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     member_ips = self._sanitize_addresses(member_ips)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/linux/ipset_manager.py", line 48, in _sanitize_addresses
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     ip = netaddr.IPNetwork(ip)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/netaddr/ip/__init__.py", line 928, in __init__
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     implicit_prefix, flags)
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/netaddr/ip/__init__.py", line 823, in parse_ip_network
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     raise TypeError('unexpected type %s for addr arg' % type(addr))
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent TypeError: unexpected type <class 'list'> for addr arg
2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent

Tried and reproduced on 5 different fresh installed servers. 
Temporary workaround: moved to the 15.3.0 (copied files from older installation to the /usr/lib/python3/dist-packages/neutron).

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: 15.3.2 bionic neutron ubuntu

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

Title:
  Can't create m2 interface on the 15.3.2

Status in neutron:
  New

Bug description:
  Ubuntu 18.04, Openstack Train from the official repository. 
  Using ml2 driver with the provider networks. 
  Everything worked fine on the neutron 15.3.0, but after upgrade I got this:

  2021-03-08 04:54:59.948 4554 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-e7b32ad7-9259-49a5-bad9-20a11f64b104 - - - - -] Linux bridge agent Agent out of sync with plugin!
  2021-03-08 04:54:59.948 4554 INFO neutron.agent.securitygroups_rpc [req-e7b32ad7-9259-49a5-bad9-20a11f64b104 - - - - -] Preparing filters for devices {'tap28c0b6e8-76'}
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent [req-e7b32ad7-9259-49a5-bad9-20a11f64b104 - - - - -] Error in agent loop. Devices info: {'current': {'tap28c0b6e8-76'}, 'timestamps': {'tap28c0b6e8-76': 15}, 'added': {'tap28c0b6e8-76'}, 'removed': set(), 'updated': set()}: TypeError:
   unexpected type <class 'list'> for addr arg
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent Traceback (most recent call last):
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 465, in daemon_loop
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     sync = self.process_network_devices(device_info)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/osprofiler/profiler.py", line 160, in wrapper
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     result = f(*args, **kwargs)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 207, in process_network_devices
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     device_info.get('updated'))
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/securitygroups_rpc.py", line 258, in setup_port_filters
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self.prepare_devices_filter(new_devices)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/securitygroups_rpc.py", line 123, in decorated_function
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     *args, **kwargs)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/securitygroups_rpc.py", line 135, in prepare_devices_filter
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self._apply_port_filter(device_ids)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/securitygroups_rpc.py", line 159, in _apply_port_filter
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     security_groups, security_group_member_ips)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/securitygroups_rpc.py", line 176, in _update_security_group_info
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     remote_sg_id, member_ips)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/linux/iptables_firewall.py", line 150, in update_security_group_members
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self._update_ipset_members(sg_id, sg_members)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/linux/iptables_firewall.py", line 156, in _update_ipset_members
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     sg_id, ip_version, current_ips)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/linux/ipset_manager.py", line 78, in set_members
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     member_ips = self._sanitize_addresses(member_ips)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/neutron/agent/linux/ipset_manager.py", line 48, in _sanitize_addresses
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     ip = netaddr.IPNetwork(ip)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/netaddr/ip/__init__.py", line 928, in __init__
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     implicit_prefix, flags)
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python3/dist-packages/netaddr/ip/__init__.py", line 823, in parse_ip_network
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent     raise TypeError('unexpected type %s for addr arg' % type(addr))
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent TypeError: unexpected type <class 'list'> for addr arg
  2021-03-08 04:55:00.294 4554 ERROR neutron.plugins.ml2.drivers.agent._common_agent

  Tried and reproduced on 5 different fresh installed servers. 
  Temporary workaround: moved to the 15.3.0 (copied files from older installation to the /usr/lib/python3/dist-packages/neutron).

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


Follow ups