← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1227971] Re: Incorrect usage of _fields method in provider_configuration.py

 

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

** Changed in: neutron
    Milestone: None => havana-rc1

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

Title:
  Incorrect usage of _fields method in provider_configuration.py

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  When fields filtering is applied, neutron server prints a trace:

   ERROR neutron.api.v2.resource [-] index failed
   TRACE neutron.api.v2.resource Traceback (most recent call last):
   TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/resource.py", line 84, in resource
   TRACE neutron.api.v2.resource     result = method(request=request, **args)
   TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 273, in index
   TRACE neutron.api.v2.resource     return self._items(request, True, parent_id)
   TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 227, in _items
   TRACE neutron.api.v2.resource     obj_list = obj_getter(request.context, **kwargs)
   TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/db/servicetype_db.py", line 63, in get_service_providers
   TRACE neutron.api.v2.resource     return self.conf.get_service_providers(filters, fields)
   TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/services/provider_configuration.py", line 162, in get_service_providers
   TRACE neutron.api.v2.resource     return self._fields(res, fields)
   TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/services/provider_configuration.py", line 151, in _fields
   TRACE neutron.api.v2.resource     return dict(((key, item) for key, item in resource.items()
   TRACE neutron.api.v2.resource AttributeError: 'list' object has no attribute 'items'

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