yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #19239
[Bug 1358668] [NEW] Big Switch: keyerror on filtered get_ports call
Public bug reported:
If get_ports is called in the Big Switch plugin without 'id' being one
of the included fields, _extend_port_dict_binding will fail with the
following error.
Traceback (most recent call last):
File "neutron/tests/unit/bigswitch/test_restproxy_plugin.py", line 87, in test_get_ports_no_id
context.get_admin_context(), fields=['name'])
File "neutron/plugins/bigswitch/plugin.py", line 715, in get_ports
self._extend_port_dict_binding(context, port)
File "neutron/plugins/bigswitch/plugin.py", line 361, in _extend_port_dict_binding
hostid = porttracker_db.get_port_hostid(context, port['id'])
KeyError: 'id'
** Affects: neutron
Importance: Undecided
Assignee: Kevin Benton (kevinbenton)
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/1358668
Title:
Big Switch: keyerror on filtered get_ports call
Status in OpenStack Neutron (virtual network service):
In Progress
Bug description:
If get_ports is called in the Big Switch plugin without 'id' being one
of the included fields, _extend_port_dict_binding will fail with the
following error.
Traceback (most recent call last):
File "neutron/tests/unit/bigswitch/test_restproxy_plugin.py", line 87, in test_get_ports_no_id
context.get_admin_context(), fields=['name'])
File "neutron/plugins/bigswitch/plugin.py", line 715, in get_ports
self._extend_port_dict_binding(context, port)
File "neutron/plugins/bigswitch/plugin.py", line 361, in _extend_port_dict_binding
hostid = porttracker_db.get_port_hostid(context, port['id'])
KeyError: 'id'
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1358668/+subscriptions
Follow ups
References