filtering events by time range returns an empty list

Bug #1464694 reported by George Peristerakis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ceilometerclient
Fix Released
Low
Rohit Jaiswal

Bug Description

In the current version of ceilometer, when running:

ceilometer event-list -q "start_timestamp=2015-01-01T00:00:00"
ceilometer event-list -q "end_timestamp=2015-06-12T14:01:59"

returns a list of events (all the events in the DB). But when I run:

ceilometer -d event-list -q "start_timestamp=2015-01-01T00:00:00; end_timestamp=2015-06-12T14:01:59"

it returns an empty list (no errors). Expected value is a list that matches the previous 2 lists.

The api logs returns

[12/Jun/2015 14:41:08] "GET /v2/events?q.field=start_timestamp&q.field=+end_timestamp&q.op=eq&q.op=eq&q.type=&q.type=&q.value=2015-01-01T00%3A00%3A00&q.value=2015-06-12T14%3A01%3A59 HTTP/1.1" 200 -

Changed in ceilometer:
assignee: nobody → Rohit Jaiswal (rohit-jaiswal-3)
Revision history for this message
gordon chung (chungg) wrote :

this seems to be a ceilometerclient issue. the query is malformed.

remove the space in between your query.

ceilometer -d event-list -q "start_timestamp=2015-01-01T00:00:00;end_timestamp=2015-06-12T14:01:59"

or

ceilometer -d event-list -q "start_timestamp=2015-01-01T00:00:00" -q "end_timestamp=2015-06-12T14:01:59"

affects: ceilometer → python-ceilometerclient
Changed in python-ceilometerclient:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-ceilometerclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/192418

Changed in python-ceilometerclient:
status: Triaged → In Progress
Changed in python-ceilometerclient:
status: In Progress → Fix Committed
Changed in python-ceilometerclient:
milestone: none → 1.3.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.