gnocchi metric list times out

Bug #1552751 reported by gordon chung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
Medium
gordon chung

Bug Description

gnocchi metric list does not work. it is basically guaranteed to timeout

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

this happens because gnocch metric list is not configured to paginate or anything so blindly running the command will return tens of thosands of metrics. we should either paginate the results or enforce a resource_id

Revision history for this message
Julien Danjou (jdanjou) wrote :

Yes, completely agree. So what's the API-WG reco or what other projects do by default?

We already support pagination AFAIK (or we can do it easily with oslo.db as we do in other places) so I'd say having a default limit of N and then using paging to get the rest would be a good idea.

Changed in gnocchi:
status: New → Triaged
importance: Undecided → Medium
gordon chung (chungg)
Changed in gnocchi:
assignee: nobody → gordon chung (chungg)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gnocchi (master)

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

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

Reviewed: https://review.openstack.org/318409
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=37e17ce50ccdce48aaa97d2c9f09fb39fe31b854
Submitter: Jenkins
Branch: master

commit 37e17ce50ccdce48aaa97d2c9f09fb39fe31b854
Author: gord chung <email address hidden>
Date: Wed May 18 22:10:22 2016 -0400

    enable pagination when querying metrics

    this patch enables pagination when querying metrics api.

    Change-Id: I6a4775bd23d41ca412130bb990b754cdb1ed8e92
    Closes-Bug: #1552751

Changed in gnocchi:
status: In Progress → Fix Committed
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/gnocchi 2.2.0

This issue was fixed in the openstack/gnocchi 2.2.0 release.

Julien Danjou (jdanjou)
Changed in gnocchi:
status: Fix Committed → Fix Released
milestone: none → 2.2.0
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.