"ImageGCFailed" on Windows nodes
Is this a request for help?: No
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm) Kubernetes 1.5.3
What happened: Seeing events for almost all Windows nodes with "ImageGCFailed" warning: LASTSEEN FIRSTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE 4m 2d 763 13472acs9020 Node Warning ImageGCFailed {kubelet 13472acs9020} invalid capacity 0 on device "" at mount point "" 4m 2d 763 13472acs9021 Node Warning ImageGCFailed {kubelet 13472acs9021} invalid capacity 0 on device "" at mount point ""
What you expected to happen: ImageGC should succeeds.
How to reproduce it (as minimally and precisely as possible): Deploy cluster with Windows nodes, use kubectl get event to check node events.
Anything else we need to know: ACS engine used to generate ARM template: https://github.com/Azure/acs-engine/pull/595
Another user report of this in #SIG-Azure slack channel.
Same issue with v1.6.6
Master
System Info:
Machine ID: d51d78572977e1688e52c5fcf9b253e7
System UUID: 1532CF9E-11EA-1644-B1B7-EF87792E77F8
Boot ID: 522c1756-c1e6-4f81-9550-d3d183793b26
Kernel Version: 4.4.0-81-generic
OS Image: Debian GNU/Linux 8 (jessie)
Operating System: linux
Architecture: amd64
Container Runtime Version: docker://1.12.6
Kubelet Version: v1.6.6
Kube-Proxy Version: v1.6.6
Nodes
System Info:
Machine ID:
System UUID:
Boot ID:
Kernel Version:
OS Image:
Operating System: windows
Architecture: amd64
Container Runtime Version: docker://17.3.1
Kubelet Version: v1.6.4-beta.0.147+2b3fc68910b4dd
Kube-Proxy Version: v1.6.4-beta.0.147+2b3fc68910b4dd
I'm having the same issue. I'm also now getting errors on certain nodes that there is insufficient disk space on the node. Could that be related to this issue?
I am getting the same issue on acs-engine v0.8.0 with Kubernetes 1.8. Is there an update on this issue?
it's due to cadivisor does not work well on Windows node, see: https://github.com/kubernetes/kubernetes/blob/release-1.7/pkg/kubelet/images/image_gc_manager.go#L261
k8s v1.8.2 does not have this issue any more:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal NodeHasSufficientDisk 3m (x8 over 3m) kubelet, 29914k8s9000 Node 29914k8s9000 status is now: NodeHasNoDiskPressure
Normal Starting 23s kube-proxy, 29914k8s9000 Starting kube-proxy.
Normal Starting 17s kubelet, 29914k8s9000 Starting kubelet.
Normal NodeHasSufficientDisk 17s kubelet, 29914k8s9000 Node 29914k8s9000 status is now: NodeHasSufficientDisk
Occurs on kubernetes 1.8.4 (hybrid cluster, on windows nodes)
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ImageGCFailed 2m (x22 over 1h) kubelet, 22951k8s9011 rpc error: code = Unknown desc = not implemented
kubectl get nodes
NAME STATUS AGE VERSION
22951k8s9010 Ready 2h v1.8.4-20+75463ace30b8ff
22951k8s9011 Ready 2h v1.8.4-20+75463ace30b8ff
k8s-linuxpool1-22951374-0 Ready 2h v1.8.4
k8s-linuxpool1-22951374-1 Ready 2h v1.8.4
k8s-master-22951374-0 Ready 2h v1.8.4
@andyzhangx I am getting the above errors on a 1.8.2 cluster.
@duedal @campbelldgunn sorry I was wrong, it was fixed in v1.8.6 You could find details about this issue here: https://github.com/andyzhangx/demo/tree/master/windows/cadvisor Anyway, it's a cadvisor warning issue, not a blocking issue.
I'm closing this old issue since acs-engine is deprecated in favor of aks-engine.