Bug 2018796

Summary: I/O operations/sec reporting wrong values
Product: [oVirt] ovirt-engine Reporter: Aviv Litman <alitman>
Component: RestAPIAssignee: Artiom Divak <adivak>
Status: CLOSED CURRENTRELEASE QA Contact: Avihai <aefrat>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.5.0.8CC: ahadas, bugs, dfodor, lsvaty, michal.skrivanek, mjankula, mperina, sleviim
Target Milestone: ovirt-4.5.2Keywords: ZStream
Target Release: ---Flags: pm-rhel: ovirt-4.5?
pm-rhel: devel_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.5.2.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2010903 Environment:
Last Closed: 2022-08-08 08:17:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aviv Litman 2021-10-31 10:06:51 UTC
+++ This bug was initially created as a clone of Bug #2010903 +++

read_ops and write_ops defined incorrectly when added to db in this patch: https://gerrit.ovirt.org/#/c/ovirt-engine/+/111377/|, and changed type in this patch: https://gerrit.ovirt.org/#/c/ovirt-engine/+/113494/
the right definition is Read/Write operations since VM start and not per second.

Here are probably changes which should be done:

1. Change StatisticKind to COUNTER and StatisticUnit to NONE
https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/DiskStatisticalQuery.java#L17
https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/DiskStatisticalQuery.java#L19

2. read_ops and write_ops values in database should be probably changed to DECIMAL(21) to be able to store unsigned int 64 values, which can come from VDSM

3. read_ops and write_ops properties in Java should be changed to BigInteger to accommodate above db changes

4. DWH db needs to be update according to engine db changes: this fix will be documented in dwh bug 2010903.

Is it all or we missing something?

Comment 5 Michal Skrivanek 2022-04-11 08:52:42 UTC
still relevant?

Comment 8 Arik 2022-05-24 13:02:43 UTC
(In reply to Aviv Litman from comment #0)
> +++ This bug was initially created as a clone of Bug #2010903 +++
> 
> read_ops and write_ops defined incorrectly when added to db in this patch:
> https://gerrit.ovirt.org/#/c/ovirt-engine/+/111377/|, and changed type in
> this patch: https://gerrit.ovirt.org/#/c/ovirt-engine/+/113494/
> the right definition is Read/Write operations since VM start and not per
> second.
> 
> Here are probably changes which should be done:
> 
> 1. Change StatisticKind to COUNTER and StatisticUnit to NONE
> https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/
> restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/
> DiskStatisticalQuery.java#L17
> https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/
> restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/
> DiskStatisticalQuery.java#L19

This is the only part that remained after the fix for bz 1928188

Comment 10 Sandro Bonazzola 2022-08-30 08:49:07 UTC
This bugzilla is included in oVirt 4.5.2 release, published on August 10th 2022.
Since the problem described in this bug report should be resolved in oVirt 4.5.2 release, it has been closed with a resolution of CURRENT RELEASE.
If the solution does not work for you, please open a new bug report.