yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #84678
[Bug 1906381] [NEW] [L2] current binding port get type errors
Public bug reported:
get_binding_levels can return None if the binding host is None. But the
patch [1] did not handle such case. The code will raise a TypeError.
[1] https://review.opendev.org/c/openstack/neutron/+/606827
Bug was first found in stable/rocky, but the master branch has same code.
ERROR logs:
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 142, in wrapper
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server return f(*args, **kwargs)
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 183, in wrapped
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server LOG.debug("Retry wrapper got retriable exception: %s", e)
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server self.force_reraise()
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 179, in wrapped
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server return f(*dup_args, **dup_kwargs)
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py", line 491, in _bind_port_if_needed
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server need_notify, try_again))
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py", line 679, in _commit_port_binding
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server for level in levels:
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server TypeError: 'NoneType' object is not iterable
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server
** Affects: neutron
Importance: Low
Assignee: LIU Yulong (dragon889)
Status: In Progress
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1906381
Title:
[L2] current binding port get type errors
Status in neutron:
In Progress
Bug description:
get_binding_levels can return None if the binding host is None. But
the patch [1] did not handle such case. The code will raise a
TypeError.
[1] https://review.opendev.org/c/openstack/neutron/+/606827
Bug was first found in stable/rocky, but the master branch has same code.
ERROR logs:
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 142, in wrapper
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server return f(*args, **kwargs)
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 183, in wrapped
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server LOG.debug("Retry wrapper got retriable exception: %s", e)
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server self.force_reraise()
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 179, in wrapped
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server return f(*dup_args, **dup_kwargs)
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py", line 491, in _bind_port_if_needed
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server need_notify, try_again))
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py", line 679, in _commit_port_binding
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server for level in levels:
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server TypeError: 'NoneType' object is not iterable
2020-11-30 16:46:55.942 62088 ERROR oslo_messaging.rpc.server
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1906381/+subscriptions
Follow ups