Querying events by "generated" fails due to lookup in traits

Bug #1514349 reported by Christian Brinker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panko
Triaged
Wishlist
Unassigned

Bug Description

When trying to query something like /v2/events?q.field=generated&q.op=gt&q.value=2015-10-27T00:00.0, ceilometer tries to lookup for events with trait "generated" instead of the field "generated".

Revision history for this message
gordon chung (chungg) wrote :

the current use case is to query against start_timestamp or end_timestamp. i'm ok with adding support for using generated keyword. that said, this might be a gap in documentation as well.

https://github.com/openstack/ceilometer/blob/master/ceilometer/api/controllers/v2/events.py#L179-L180

Changed in ceilometer:
importance: Undecided → Wishlist
status: New → Triaged
heha (zhanghanqun)
Changed in ceilometer:
assignee: nobody → heha (zhanghanqun)
Revision history for this message
heha (zhanghanqun) wrote :

@chungg
If we adding support for generated keyword, it can ony be used with "op=eq".
Because if we use the 'eq' for field.
https://github.com/openstack/ceilometer/blob/master/ceilometer/api/controllers/v2/events.py#L195

heha (zhanghanqun)
Changed in ceilometer:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ceilometer (master)

Change abandoned by zhanghanqun (<email address hidden>) on branch: master
Review: https://review.openstack.org/244606
Reason: recode

Zi Lian Ji (jizilian)
Changed in ceilometer:
assignee: heha (zhanghanqun) → Zi Lian Ji (jizilian)
gordon chung (chungg)
affects: ceilometer → panko
Changed in panko:
assignee: Zi Lian Ji (jizilian) → nobody
gordon chung (chungg)
Changed in panko:
status: In Progress → Triaged
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.