[openstack-dev] [nova] [api] Get servers with limit and IP address filter

Steven Kaufer kaufer at us.ibm.com
Tue Jan 27 22:00:34 UTC 2015


When applying an IP address filter to a paginated servers query (eg,
supplying servers/detail?ip=192.168&limit=100), the IP address filtering is
only being applied against the non-filtered page of servers that were
retrieved from the DB; see [1].

I believe that the IP address filtering should be done before the limit is
applied, returning up to <limit> servers that match the IP address filter.
Currently, if the servers in the page of data returned from the DB do not
happen to match the IP address filter (applied in the compute API), then no
servers will be returned by the REST API (even if there are servers that
match the IP address filter).

This seems like a bug to me, shouldn't all filtering be done at the DB


Steven Kaufer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150127/c0629a64/attachment.html>

More information about the OpenStack-dev mailing list