generated from opencontainers/project-template
-
Couldn't load subscription status.
- Fork 19
Open
Description
Description:
After upgrading to Kubernetes 1.34, kubelet fails to start on certain operating systems.
The following errors appear in the kubelet log:
"Failed to start ContainerManager" err="failed to get rootfs info: unable to find data in memory cache"
...
Failed to update stats for container "/": unable to parse /sys/fs/cgroup/cpu,cpuacct/cpuacct.usage_all: strconv.ParseUint: parsing "455873998 0 0": invalid syntax, continuing to push stats
By code analysis, I found the problem is in the getPercpuUsageInModes function when parsing cpuacct.usage_all data.
Problem:
The CPU stat parsing logic was changed in commit cf1a33a, where the new implementation expects only 3 fields per line, but some operating systems provide 5 fields in the format, such as:
Metadata
Metadata
Assignees
Labels
No labels