Red Hat Bugzilla – Bug 887230
Units for statistics of host NICs are wrong: BYTES_PER_SECOND should be MEGABYTES_PER_SECOND.
Last modified: 2016-02-10 14:58:53 EST
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:
cross api standard is BYTES_PER_SECOND, Ravi, if it's reported in MEGABYTES_PER_SECOND, please convert to MEGABYTES_PER_SECOND
Same problem for vm nics.
(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
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.
Verified in SF9
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