+++ This bug was initially created as a clone of Bug #1047459 +++ When /sys/class/net/vnet0/statistics/tx_bytes reaches its 32 bit maximum value, it wraps back to 0. Vdsm must take this into account when calculating the txRate of vnics. Otherwise, a negative value may pollute the data warehouse.
Dan, I followed your advice and changed vdsm as follows --- a/vdsm/vm.py +++ b/vdsm/vm.py @@ -557,7 +557,7 @@ class VmStatsThread(sampling.AdvancedStatsThread): def _sampleNet(self): netSamples = {} for nic in self._vm._devices[NIC_DEVICES]: - netSamples[nic.name] = self._vm._dom.interfaceStats(nic.name) + netSamples[nic.name] = random.randint(-100,100) return netSamples def _diff(self, prev, curr, val): but that results in GuestMonitor-VM1::DEBUG::2014-03-05 13:12:26,105::vm::625::vm.Vm::(_getNetworkStats) vmId=`e2e2b3ed-7864-46d4-8466-15c5eb2eaaf6`::Network stats not available can you please advise how to proceed with testing?
Have you added `import random` at the top of vm.py ?
(In reply to Dan Kenigsberg from comment #2) > Have you added `import random` at the top of vm.py ? yes
Oh sorry for my laziness: self._vm._dom.interfaceStats should be replaced with 8 integers, not just one http://libvirt.org/html/libvirt-libvirt.html#virDomainInterfaceStatsStruct 8 * [random.randint(-100,100)] would do the trick.
verification is blocked by bug 1080494 which prevents vdsm from providing correct data
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released