Open Chippi opened 5 months ago
I just noticed the same on RPi4 - any solution to this?
I'm also having the same problem. path /sys/class/dmi/ does not seem to exist on my rpi4. Does this have to do with ARM architecture?
Mine too. same logs are shown in jetson nano.
I'm seeing the same on RPi devices. Any way to de-verbose this? It's causing a lot of churn in the logs.
Seems to stem from file utils/cloudinfo/gce/gce.go:
const (
gceProductName = "/sys/class/dmi/id/product_name"
)
...
func (provider) IsActiveProvider() bool {
data, err := os.ReadFile(gceProductName)
if err != nil {
klog.V(2).Infof("Error while reading product_name: %v", err)
return false
}
return strings.Contains(string(data), google)
}
The following patch suppresses the log only if the file is not found:
diff --git utils/cloudinfo/gce/gce.go utils/cloudinfo/gce/gce.go
index ee078619..20279fbb 100644
--- utils/cloudinfo/gce/gce.go
+++ utils/cloudinfo/gce/gce.go
@@ -15,6 +15,7 @@
package gce
import (
+ "errors"
"os"
"strings"
@@ -41,7 +42,9 @@ type provider struct{
func (provider) IsActiveProvider() bool {
data, err := os.ReadFile(gceProductName)
if err != nil {
- klog.V(2).Infof("Error while reading product_name: %v", err)
+ if !errors.Is(err, os.ErrNotExist) {
+ klog.V(2).Infof("Error while reading product_name: %v", err)
+ }
return false
}
return strings.Contains(string(data), google)
Upon upgrading from version 47.2 to 0.49.1, the following lines are repeatedly logged every 5 minutes:
Errors
Specs
Docker compose