Bug 2274525 - [IBM Z] Wrong ceph_osd_stat_bytes_used and ceph_osd_stat_bytes in ODF 4.15 / ceph quincy
Summary: [IBM Z] Wrong ceph_osd_stat_bytes_used and ceph_osd_stat_bytes in ODF 4.15 / ...
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: ceph-monitoring
Version: 4.14
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Divyansh Kamboj
QA Contact: Harish NV Rao
URL:
Whiteboard:
Depends On: 2279979
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-11 13:16 UTC by Tuan Hoang (RH)
Modified: 2024-10-07 18:02 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2279979 (view as bug list)
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Tuan Hoang (RH) 2024-04-11 13:16:01 UTC
Description of problem (please be detailed as possible and provide log
snippests):

When checking for the OSD disk usage, we find two sets of values of 2 metrics

- ceph_osd_stat_bytes
- ceph_osd_stat_bytes_used

Obviously the correct set of value should be where ceph_osd_stat_bytes_used (actually used) is smaller than ceph_osd_stat_bytes (total).


Set 1:
Ceph Admin GUI and `ceph osd df` (via rook-ceph-tools-xx container) show similar set of values of those two metrics. It seems to be correct where ceph_osd_stat_bytes_used < ceph_osd_stat_bytes.

Set 2:
Prometheus GUI and internal /metrics endpoint show wrong values where ceph_osd_stat_bytes_used > ceph_osd_stat_bytes.

The internal /metrics is derived from:
# oc describe pod rook-ceph-exporter-worker-xxx | grep IP
# curl -s http://10.129.2.32:9926/metrics | grep 'ceph_osd_stat_bytes'
ceph_osd_stat_bytes{ceph_daemon="osd.2"} 6978919051352
ceph_osd_stat_bytes_used{ceph_daemon="osd.2"} 8441947082770

When we tried testing ceph reef standalone, the numbers seem to be correct. I suspect the problem lies in ceph exporter code, I see some commits in reef branch has not been backported to quincy:
https://github.com/ceph/ceph/commits/quincy/src/exporter


Version of all relevant components (if applicable):
ODF 4.15
ceph version 17.2.6-196.el9cp (cbbf2cfb549196ca18c0c9caff9124d83ed681a4) quincy (stable)


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?


Is there any workaround available to the best of your knowledge?


Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?


Can this issue reproducible?
Yes


Can this issue reproduce from the UI?
Yes


If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1.
2.
3.


Actual results:


Expected results:


Additional info:

Comment 4 umanga 2024-05-10 10:48:49 UTC
Ceph BZ tracker: https://bugzilla.redhat.com/show_bug.cgi?id=2279979


Note You need to log in before you can comment on or make changes to this bug.