kubernetes: Fail to get rootfs information unable to find data for container /
Hi all,
I use systemd to start kubelet, but log show these error:
Jan 12 15:34:42 centos3 kubelet[6623]: E0112 15:34:42.401593 6623 container_manager_linux.go:583] [ContainerManager]: Fail to get rootfs information unable to find data for container /
but I still can create the pod successfully. anyone can help?
the version is 1.9
/sig Apps
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 19
- Comments: 39 (13 by maintainers)
After debugging I found itβs caused by cgroup in my case. Similar to #55386, on my server
cpuacct.stat
has 6 fields which expected to be 4 and cadvisor cannot collect container metrics.Modify some codes at vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/cpuacct.go#L88 and recompile kubelet works for me.
error log from kubelet v1.9.1:
Major 0 is used by the linux kernel for mountpoints which do not actually have a direct backing device. This applies to tmpfs, nsfs, overlayfs and also btrfs subvolumes for example.
the same error from kubelet 1.9.1:
Ughhh: https://github.com/kubernetes/kubernetes/pull/40050
With
kubelet.kubeconfig
:and setting
--fail-swap-on=false --kubeconfig=/var/lib/kubelet/kubelet.kubeconfig
I was able to create local cluster with f27 build ofkubernetes-1.9.1
+1 Having error:
Fail to get rootfs information unable to find data for container /
kubeadm, 1.9.1-0 kubectl, 1.9.1-0 kubelet, 1.9.1-0 kubernetes-cni, 0.6.0-0docker: 18.03.1-ce overlay2 on xfs
+1
kubernets: v1.9.2 docker: 17.03.2-ce
on host, du command hang there when this error happening
@voor can you verify?