← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1358668] Re: Big Switch: keyerror on filtered get_ports call

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

-- 
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):
  Fix Released
Status in neutron icehouse series:
  Fix Released

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


References