network script looks at link speed, but doesn't check for max advertised speed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Fix Released
|
Medium
|
Jeff Lane |
Bug Description
the network script looks at /sys/class/
However, the speed item is not the device max speed, but rather the link speed currently connected:
https:/
What: /sys/class/
Date: October 2009
KernelVersion: 2.6.33
Contact: <email address hidden>
Description:
Indicates the interface latest or current speed value. Value is
an integer representing the link speed in Mbits/sec.
Note: this attribute is only valid for interfaces that implement
the ethtool get_settings method (mostly Ethernet ).
It would be useful if the test would also get the advertised max speed from the device and report if max_speed is < advertised_
Related branches
- Daniel Manrique (community): Approve
- Jeff Lane : Needs Resubmitting
-
Diff: 89 lines (+47/-3)1 file modifiedproviders/plainbox-provider-checkbox/bin/network (+47/-3)
Changed in plainbox-provider-checkbox: | |
assignee: | nobody → Jeff Lane (bladernr) |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in plainbox-provider-checkbox: | |
status: | Confirmed → In Progress |
Changed in plainbox-provider-checkbox: | |
status: | In Progress → Fix Committed |
Changed in plainbox-provider-checkbox: | |
milestone: | none → 0.7 |
Changed in plainbox-provider-checkbox: | |
status: | Fix Committed → Fix Released |
Now it errors and exits if the device max is not the same as the detected link speed. This should catch instances where a device is run on a lower-speed network than it should be (e.g. 10G on 1G networks)
$ sudo ./network test -i eth0 -t iperf --target 192.168.0.10 Restoring interface:virbr0 Restoring interface:vboxnet0 Restoring interface:wlan0
DEBUG:root:Shutting down interface:virbr0
DEBUG:root:Shutting down interface:vboxnet0
DEBUG:root:Shutting down interface:wlan0
ERROR:root:Detected link speed (100) is lower than detected max speed (1000)
ERROR:root:Please check your device configuration and try again
DEBUG:root:
DEBUG:root:
DEBUG:root: