<font face="verdana,sans-serif">Unsubscribe<br></font><br><div class="gmail_quote">On Fri, Jul 12, 2013 at 6:55 AM, Angus Salkeld <span dir="ltr"><<a href="mailto:asalkeld@redhat.com" target="_blank">asalkeld@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12/07/13 11:33 +0200, Julien Danjou wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Jul 12 2013, Alessandro Barabesi wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have the following problems with query fields in filters.<br>
<br>
1) Filtering by "metadata.size" in v2/meters/image apparently is not working. The following request returns also samples with metadata.size=0.<br>
<br>
<br>
GET <a href="http://10.10.10.10:8777/v2/meters/image" target="_blank">http://10.10.10.10:8777/v2/<u></u>meters/image</a><br>
<br>
<br>
{<br>
        "q": [{<br>
                "field": "project_id",<br>
                "op": "eq",<br>
                "value": "<u></u>77b461539c8542909f67b29939ec87<u></u>dd"<br>
        },<br>
        {<br>
                "field": "timestamp",<br>
                "op": "ge",<br>
                "value": "2013-07-11T13:36:00"<br>
        },<br>
        {<br>
                "field": "timestamp",<br>
                "op": "lt",<br>
                "value": "2013-07-11T13:39:00"<br>
        },<br>
        {<br>
                "field": "metadata.size",<br>
                "op": "gt",<br>
                "value": "0"<br>
</blockquote></blockquote>
<br>
I suspect the "gt" operator is not working (it's probably using "eq"<br>
given what you are getting). But certainly a bug.<br>
I'd just remove this last query and see what you get with the first 3<br>
queries.<br>
<br>
-Angus<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        }]<br>
        <br>
}<br>
<br>
I am probably doing something wrong but I can't figure out what.<br>
</blockquote>
<br>
That seems correct from the top of my head. If that really doesn't work,<br>
feel free to open a bug.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2) Filtering by "counter_volume" returns the folloving error message:<br>
<br>
error_message={"debuginfo": null, "faultcode": "Client", "faultstring": "Unknown argument: \"counter_volume\": unrecognized query field"}<br>
<br>
Is this a bug or filtering by "counter-volume" is not allowed?<br>
</blockquote>
<br>
Try `volume' instead of `counter_volume'. But I am not sure it's<br>
currently allowed -- in that case opening a bug can be good idea too.<br>
<br>
-- <br>
Julien Danjou<br>
// Free Software hacker / freelance consultant<br>
// <a href="http://julien.danjou.info" target="_blank">http://julien.danjou.info</a><br>
</blockquote>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
______________________________<u></u>_________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~<u></u>openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~<u></u>openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/<u></u>ListHelp</a><br>
</blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~<u></u>openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~<u></u>openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/<u></u>ListHelp</a><br>
</blockquote></div><br>