Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 887230

Summary: Units for statistics of host NICs are wrong: BYTES_PER_SECOND should be MEGABYTES_PER_SECOND.
Product: Red Hat Enterprise Virtualization Manager Reporter: Julio Entrena Perez <jentrena>
Component: ovirt-engine-restapiAssignee: Alona Kaplan <alkaplan>
Status: CLOSED ERRATA QA Contact: GenadiC <gcheresh>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.0CC: dyasny, ecohen, iheim, jentrena, mpastern, oramraz, pep, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: All   
OS: Linux   
Whiteboard: network
Fixed In Version: SF9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-10 21:28:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Julio Entrena Perez 2012-12-14 11:40:57 UTC
Description of problem:
Units of statstics for host NICs are reported as "BYTES_PER_SECOND" but reported values are MBytes/s.

Version-Release number of selected component (if applicable):
rhevm-restapi 3.1.0-32.el6ev.

How reproducible:
Always.

Steps to Reproduce:
1. Create some network traffic from/to the host.
2. Check <unit> value for data.current.{rx,tx} in https://<rhevm>/api/hosts/<host_uuid>/nics/<nic_uuid>/statistics
  
Actual results:
statistics/statistic/unit value is BYTES_PER_SECOND

Expected results:
statistics/statistic/unit value is MEGABYTES_PER_SECOND

Additional info:

Comment 1 Michael Pasternak 2013-01-20 13:55:39 UTC
cross api standard is BYTES_PER_SECOND, 

Ravi, if it's reported in MEGABYTES_PER_SECOND, please convert to MEGABYTES_PER_SECOND

Comment 2 Alona Kaplan 2013-02-13 08:14:46 UTC
Same problem for vm nics.

Comment 3 Michael Pasternak 2013-02-14 09:20:19 UTC
(In reply to comment #1)
> cross api standard is BYTES_PER_SECOND, 
> 
> Ravi, if it's reported in MEGABYTES_PER_SECOND, please convert to
> MEGABYTES_PER_SECOND

typo, i meant convert to BYTES_PER_SECOND

Comment 4 Alona Kaplan 2013-02-17 14:31:52 UTC
The rx and tx are reported and displayed in the rest as percent of the speed.
It should be converted and displayed as BYTES_PER_SECOND.

Comment 5 GenadiC 2013-03-04 14:40:14 UTC
Verified in SF9

Comment 8 errata-xmlrpc 2013-06-10 21:28:52 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.

http://rhn.redhat.com/errata/RHSA-2013-0888.html