Bug 2007550 - Change type of disk write/read rate from integer to long
Summary: Change type of disk write/read rate from integer to long
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-dwh
Version: 4.4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.4.9
: 4.4.9
Assignee: Aviv Litman
QA Contact: Pavel Novotny
URL:
Whiteboard:
Depends On: 2007384
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-24 08:40 UTC by Martin Perina
Modified: 2021-11-16 14:47 UTC (History)
10 users (show)

Fixed In Version: ovirt-engine-dwh-4.4.9.1
Doc Type: Enhancement
Doc Text:
In this release, the data type for the virtual machines disk write/read rate was changed from integer to long.
Clone Of: 2007384
Environment:
Last Closed: 2021-11-16 14:46:57 UTC
oVirt Team: Metrics
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-43703 0 None None None 2021-09-24 08:42:29 UTC
Red Hat Product Errata RHSA-2021:4626 0 None None None 2021-11-16 14:47:07 UTC
oVirt gerrit 116883 0 master MERGED Change type of disk write/read rate from integer to long 2021-10-07 13:46:05 UTC
oVirt gerrit 116884 0 ovirt-engine-dwh-4.4 MERGED Change type of disk write/read rate from integer to long 2021-10-12 08:13:43 UTC

Description Martin Perina 2021-09-24 08:40:34 UTC
+++ This bug was initially created as a clone of Bug #2007384 +++

Description of problem:
engine.log is flooded with following messages
-----
2021-07-24 09:20:23,033+03 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-73) [] Failed to parse 'writeRate' value '2649267647' to integer: For input string: "2649267647"
2021-07-25 05:31:32,021+03 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-38) [] Failed to parse 'readRate' value '2243888802' to integer: For input string: "2243888802"
-----

$ grep "Failed to parse" engine.log| wc -l
74256

Version-Release number of selected component (if applicable):
ovirt-engine-4.4.7

How reproducible:
100% in customer environments, found during architecture reviews 

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Similar to https://bugzilla.redhat.com/show_bug.cgi?id=1929211 but looking to the fix only read/write ops was fixed to bigint, not write/read rate

Comment 4 Pavel Novotny 2021-10-26 23:32:13 UTC
Verified in
ovirt-engine-4.4.9.3-0.3.el8ev.noarch
ovirt-engine-dwh-4.4.9.1-1.el8ev.noarch


Verified that corresponding columns have been updated from integer to bigint:
~~~
                                           Table "public.vm_disk_samples_history"
 read_rate_bytes_per_second    | bigint                   |           |          | 
 write_rate_bytes_per_second   | bigint                   |           |          | 

                                             Table "public.vm_disk_hourly_history"
 read_rate_bytes_per_second      | bigint                   |           |          | 
 max_read_rate_bytes_per_second  | bigint                   |           |          | 
 write_rate_bytes_per_second     | bigint                   |           |          | 
 max_write_rate_bytes_per_second | bigint                   |           |          | 

                                        Table "public.vm_disk_daily_history"
 read_rate_bytes_per_second      | bigint        |           |          | 
 max_read_rate_bytes_per_second  | bigint        |           |          | 
 write_rate_bytes_per_second     | bigint        |           |          | 
 max_write_rate_bytes_per_second | bigint        |           |          | 
```

Also no 'Failed to parse...' messages were found in the engine.log file.

Comment 8 errata-xmlrpc 2021-11-16 14:46:57 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 (Moderate: RHV Manager (ovirt-engine) security update [ovirt-4.4.9]), 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/RHSA-2021:4626


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