Description of problem: vdsm sends large negative values to rhevm instead of percentage in host interface tx_rate and rx_rate. Version-Release number of selected component (if applicable): 6.4 How reproducible: always Steps to Reproduce: 1.Create setup with several Hosts 2.run on the hosts 'vdsClient -s 0 getVdsStats' And check the values (Tx/Rx rate ( '-694.2' / '-470.6') && 'speed': '-1' Actual results: returns negative on percent stats. the value can be more then -30000 even. Expected results: returns positive percent stats. Additional info:
please attach vdsm.log, and the output of `vdsClient -s 0 getVdsStats`. Please send me host details (in private), since the problem does not reproduce on hosts that I've seen.
This bug could have stemmed form kernel reporting negative speed in /sys/class/net/eth0/speed The posted patch prevents this problem, but I cannot be sure until we find a host where this reproduces (and may warrant a separate kernel bug). http://gerrit.usersys.redhat.com/962
Please reopen this bug if the following commit did not help, and you have a reproducer. commit c70c7d02ac4fe513694a47cf0f1263c7e715d888 Author: Dan Kenigsberg <danken> Date: Wed Sep 21 11:33:39 2011 +0300 BZ#740158 netinfo: never report negative speed Even if, for some reason, /sys/class/net/eth0/speed had a negative value, we should not report it as such. It justly confuses users.