[openstack-dev] [nova] [api] Get servers with limit and IP address filter
vishvananda at gmail.com
Tue Jan 27 22:29:50 UTC 2015
The network info for an instance is cached as a blob of data (neutron has the canonical version in most installs), so it isn’t particularly easy to do at the database layer. You would likely need a pretty complex stored procedure to do it accurately.
On Jan 27, 2015, at 2:00 PM, Steven Kaufer <kaufer at us.ibm.com> wrote:
> 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 .
> 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 layer?
> : https://github.com/openstack/nova/blob/master/nova/compute/api.py#L2037-L2042
> Steven Kaufer
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev