-
Notifications
You must be signed in to change notification settings - Fork 19
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
malformed version #31
Comments
Hi @ianb-mp, I hit the same issue on an OpenShift cluster. That kind of version (likely to come from a kernel in-tree driver) does not appear to be supported by `github.com/hashicorp/go-version, ' which expects a semantic version.
|
oh, somehow I missed the fact that I think that expecting the kernel to return a version that is strictly semver is not a good assumption. Would you be open to bringing |
I'd prefer to use the library as is and to clean up the version before passing it. |
I'm getting this driver info from ethtool:
driver info: &{i40e 5.14.0-362.8.1.el9_3.x86_64}
however sriov-network-metrics-exporter doesn't like that and throws errorMalformed version: 5.14.0-362.8.1.el9_3.x86_64
I poked around a bit and I can see that the version regex is failing to match - doesn't like the underscores.
If I skip the version check, it seems to work fine otherwise i.e. I see metrics for that interface.
The text was updated successfully, but these errors were encountered: