Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1499734

Summary: 'Top 5' panels on 'Ceph Pools' dashboard are not working properly
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Lubos Trilety <ltrilety>
Component: Ceph-MetricsAssignee: Paul Cuzner <pcuzner>
Status: CLOSED ERRATA QA Contact: Lubos Trilety <ltrilety>
Severity: medium Docs Contact:
Priority: high    
Version: 3.0CC: anharris, branto, ceph-eng-bugs, ltrilety, pcuzner, zcerza
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cephmetrics-1.0-4.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:47:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lubos Trilety 2017-10-09 09:59:30 UTC
Description of problem:
'Top 5' panels on 'Ceph Pools' dashboard don't show top 5 pools in the selected category. Instead they show first 5 pools ordered by chosen category.

Version-Release number of selected component (if applicable):
cephmetrics-grafana-plugins-0.1-372_g098fb9a.el7.centos.x86_64
cephmetrics-0.1-372_g098fb9a.el7.centos.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create several pools, at least 5 (or have a rados gateway prepared and use it - 5 pools are created just for the gateway)
2. Create another pool(s)
3. Fill pools created in previous step with some data

Actual results:
Only pools created in first step are displayed in 'Top 5' panels. 

Expected results:
Top 5 pools in proper category should be displayed.

Additional info:

Comment 1 Paul Cuzner 2017-10-10 19:55:41 UTC
Queries needs to be updated to use a combination of limit for the top 5, with sortByMaxima calls

Comment 2 Paul Cuzner 2017-10-11 04:20:14 UTC
PR submitted upstream, pending review and merge
https://github.com/ceph/cephmetrics/pull/142

Comment 3 Zack Cerza 2017-10-11 16:20:22 UTC
Fix is merged

Comment 7 Lubos Trilety 2017-10-25 12:50:16 UTC
Tested with:
cephmetrics-1.0-6.el7cp.x86_64

Top 5 metrics seems to work properly.

Comment 10 errata-xmlrpc 2017-12-05 23:47:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:3387