Operators of comparison are not supported by queries for event's traits

Bug #1354009 reported by Igor Degtiarov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Medium
Igor Degtiarov

Bug Description

EventFilter object has a dictionary "traits_filter" with optional parameter 'op': <eq, lt, le, ne, gt or ge>, but up to date using of this parameter is realized only in HBase and Mongodb, it is not supported by SQLAlchemy and finally it is not implemented in api.v2 at all (only 'op'='eq' is supported operator in API)

Tags: event trait
summary: - Operations of comparison are not supported by queries for events
+ Operators of comparison are not supported by queries for event's traits
Changed in ceilometer:
assignee: nobody → Igor Degtiarov (idegtiarov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

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

Changed in ceilometer:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/112582
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=be88b00e9034b65229c1266ed5bf5ba084fb90f3
Submitter: Jenkins
Branch: master

commit be88b00e9034b65229c1266ed5bf5ba084fb90f3
Author: Igor Degtiarov <email address hidden>
Date: Wed Aug 27 17:12:25 2014 +0400

    Adding comparison operators in query for event traits

    In EventFilter we have an optional parameter 'op' in traits_filter part. But up
    to date usage of this param has been implemented only in Hbase and
    Mongodb backends. However in API we can use only 'op'='eq'.

    This change improves usage of parameter 'op' in query for events in api, and
    adds possibility to use comparison in query with SQL backend.

    Some tests are also added to cover using of this new feature.

    Closes-bug: #1354009
    Change-Id: I4824800eac7270bcfa10882a735e48d80bf32712

Changed in ceilometer:
status: In Progress → Fix Committed
Eoghan Glynn (eglynn)
Changed in ceilometer:
importance: Undecided → Medium
milestone: none → juno-3
Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: juno-3 → 2014.2
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.