Hi Edward,
I got some alarms today from a server and I have checked your command there. (not at the time the issue happened!!)
Hosts are on latest patch level CentOS 7.5 and oVirt 4.2.5
Example:
cat /sys/class/net/enp9s0/speed
10000
cat /sys/class/net/enp9s0.80/speed
10000
cat /sys/class/net/vm-int-nfs/speed
cat: /sys/class/net/vm-int-nfs/speed: invalid argument <- this is the bridge for the VMs
vdsm-client Host getStats ->
...
"enp9s0": {
"rxErrors": "0",
"name": "enp9s0",
"tx": "3335325754762",
"txDropped": "0",
"sampleTime": 1535970960.602359,
"rx": "5916567956502",
"txErrors": "0",
"state": "up",
"speed": "10000",
"rxDropped": "0"
},
...
"enp9s0.80": {
"rxErrors": "0",
"name": "enp9s0.80",
"tx": "3180024039398",
"txDropped": "0",
"sampleTime": 1535970960.602359,
"rx": "5669421065686",
"txErrors": "0",
"state": "up",
"speed": "1000",
"rxDropped": "0"
},
...
"vm-int-nfs": {
"rxErrors": "0",
"name": "vm-int-nfs",
"tx": "508",
"txDropped": "0",
"sampleTime": 1535970960.602359,
"rx": "4428568",
"txErrors": "0",
"state": "up",
"speed": "1000",
"rxDropped": "0"
},
...
As you see here, vdsm is reporting the wrong speed for the vlan devices.
BR Florian Schmid
Von: "Edward Haas" <ehaas@redhat.com>
An: "Jayme" <jaymef@gmail.com>, "Florian Schmid" <fschmid@ubimet.com>
CC: "users" <users@ovirt.org>, "Alona Kaplan" <alkaplan@redhat.com>
Gesendet: Montag, 3. September 2018 11:38:25
Betreff: Re: [ovirt-users] Re: Wrong network threshold limit warnings on 4.2.5
If you manage to recreate this, please collect a few samples from what the hypervisor reports back:
Run the command: vdsm-client Host getStats
Engine is calculating based on this information the rate.
(and the agent collects it from /sys/class/net/<device>/statistics/)
Please also mention on what OS you are running the hosts.
Thanks,
Edy