limit argument does not work on event-list query

Bug #1554727 reported by Tony Dunbar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ceilometerclient
Triaged
Medium
Unassigned

Bug Description

Tried this with both the python client and CLI:

$ ceilometer help event-list
usage: ceilometer event-list [-q <QUERY>] [--no-traits] [-l <NUMBER>]

List events.

Optional arguments:
  -q <QUERY>, --query <QUERY> key[op]data_type::value; list. data_type is
                                optional, but if supplied must be string,
                                integer, floator datetime.
  --no-traits If specified, traits will not be printed.
  -l <NUMBER>, --limit <NUMBER>
                                Maximum number of events to return.
$ ceilometer event-list --limit 100
Unknown argument: "limit" (HTTP 400) (Request-ID: req-7493d808-54d7-496c-8cea-3a3a523a0cb0)
$ ceilometer event-list -l 100
Unknown argument: "limit" (HTTP 400) (Request-ID: req-fe9e5b05-5c42-4b02-a320-b56ab2972b72)
$ ceilometer --version
1.5.0

Julien Danjou (jdanjou)
affects: ceilometer → python-ceilometerclient
Changed in python-ceilometerclient:
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → Medium
Revision history for this message
gordon chung (chungg) wrote :

can you include what version of ceilometer you are running? (not the client version.) thanks!

Revision history for this message
Tony Dunbar (adunbar) wrote :

when I do pip freeze all I get is the python client:

$ pip freeze | grep ceilometer
python-ceilometerclient==1.5.0

how can I get the version info you need?

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

are you using a package? in fedora/centos it should be:

rpm -qi openstack-ceilometer-collector

or something along that lines

Revision history for this message
Tony Dunbar (adunbar) wrote :

Hi Gordon

I installed devstack by cloning, not finding the collector therefore using rpm:

$ rpm -qi openstack-ceilometer-collector
package openstack-ceilometer-collector is not installed

When I execute ceilometer against my local devstack installation the limit argument seems to work. The problem I'm seeing is when I run against a remote openstack installation. Using an openrc to point to the remote system and the CLI or using the the keystone auth and session clients in python to connect to the remote system and then using the ceilometer python clinic is when I hit the problem.

Could the issue be the remote system is at a different level of ceilometer and limit isn't supported there?

Revision history for this message
gundarapu kalyan reddy (gundarapu-reddy) wrote :

Hi, I am using ceilometer --version 2.4.0 and python-ceilometerclient==2.4.0.

Limit argument on event-list query is working fine. I tried with CLI.

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.