Can't create m2 interface on the 15.3.2

Bug #1918155 reported by Alexey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Won't Fix
Undecided
Unassigned

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).

Revision history for this message
Hongbin Lu (hongbin.lu) wrote :

A similar bug: https://bugs.launchpad.net/neutron/+bug/1903531

As discussed above, there is known issue on upgrading from 15.3.0 to 15.3.2. It seems you were hitting that issue. However, based on discussion on https://bugs.launchpad.net/neutron/+bug/1903531, this issue won't be fixed.

Quoted from https://bugs.launchpad.net/neutron/+bug/1903531/comments/20

  Based on discussion with release and requirements teams on http://eavesdrop.openstack.org/irclogs/%23openstack-requirements/%23openstack-requirements.2020-11-24.log.html#t2020-11-24T21:36:35 it's the best to revert this patch now. I know it's very bad for people who already updated their envs but we can't do much more there :/ Sorry for that.

Changed in neutron:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.