-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
networking/info_device(number)_(interface) can't find ethtool in /sbin/ethtool on Desktop #508
Comments
@bladernr it seems the problems boils down to how Do you know why the script calls |
@pieqq In the words of the great Shaggy... it wasn't me. Git Blame says it's @rodwsmith who added that. I am going to wager a guess that /sbin/ is where apt is/was installing ethtool. Perhaps that package was later modified? Or are you doing something different when installing it? Or is the packaging just wonky and can install the tool in multiple places? Anyway, it would make sense to me to use $PATH instead... or better, some form of pythonic |
I don't know anything about this. I don't recall writing the code in question, but it's not exactly so unique or exciting that I'd expect to remember it. If specifying /sbin is causing problems, then I'd recommend just removing it; I don't remember any particular reason I did it that way, if in fact it was me who wrote it. |
In recent versions of Ubuntu, ethtool is installed in /usr/sbin/ethtool. Trying to call /sbin/ethtool causes our job networking/info_device(number)_(interface) to fail loading additional information. Calling ethtool directly to let the system handle the tool location. Fix #508
Trying to call /sbin/ethtool causes our job networking/info_device(number)_(interface) to fail loading additional information when Checkbox is installed as a snap, because in this case the location of ethtool is /snap/checkbox22/current/sbin/ethtool Calling ethtool directly to let the system handle the tool location. Fix #508
Trying to call /sbin/ethtool causes our job networking/info_device(number)_(interface) to fail loading additional information when Checkbox is installed as a snap, because in this case the location of ethtool is /snap/checkbox22/current/sbin/ethtool Calling ethtool directly to let the system handle the tool location. Fix #508
Trying to call /sbin/ethtool causes our job networking/info_device(number)_(interface) to fail loading additional information when Checkbox is installed as a snap, because in this case the location of ethtool is /snap/checkbox22/current/sbin/ethtool Calling ethtool directly to let the system handle the tool location. Fix #508
Bug Description
Checkbox22 snap latest/stable version 2.6
The test: network/info_device(number)_(interface) attempts to get some information about a given network interface (e.g. enp1s0) using ethtool which is provided by Checkbox in /snap/checkbox22/current/sbin/ethtool
On Desktop this test fails because it claims "ethtool is not installed."
On Server this test passes but it says "ethtool returned an error."
This test uses the script: https://github.com/canonical/checkbox/blob/main/providers/base/bin/network_device_info.py
This script calls /sbin/ethtool with the interface to be probed.
This occurs in this block of code:
Additional context
No response
The text was updated successfully, but these errors were encountered: