acs-engine icon indicating copy to clipboard operation
acs-engine copied to clipboard

Windows failed to create kubelet: failed to get docker version

Open jsturtevant opened this issue 8 years ago • 10 comments

Is this a request for help?: no

Is this an ISSUE or FEATURE REQUEST? (choose one): issue

What version of acs-engine?: any using windows server 1803 image

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm) Kubernetes

What happened: deployed 1803 windows container images. Windows nodes never join cluster. get the error as described here: https://github.com/kubernetes/kubernetes/issues/69996

server.go:262] failed to run Kubelet: failed to create kubelet: failed to get docker version: Error response from daemon: client version 1.38 is too new. Maximum supported API version is 1.37

What you expected to happen: Kubelet to start and and connect nodes to the cluster

How to reproduce it (as minimally and precisely as possible): deploy a k8s cluster with 1803 node as of today

Anything else we need to know: Because the Docker version is installed by the image the version got auto upgraded. Should pin the Docker version to a known working value so that Windows Server moving to new Docker version upgrades in Azure don't cause deployment errors.

jsturtevant avatar Oct 24 '18 23:10 jsturtevant

Today I created a new k8s cluster due to the old one crashed #4046, but the Windows nodes didn't appear in "kubectl get nodes", although the Windows VMs were created in Azure.

Do we have workaround? It is a blocking issue, because we are unable to run any workloads in k8s now.

Thanks

zhiweiv avatar Oct 25 '18 09:10 zhiweiv

The PR linked above fixes it. Hoping to get that merged soon. As a stop gap, if you remote into each machine and set the docker version manually to 17.06.2-ee-16: https://github.com/Azure/acs-engine/issues/3852#issuecomment-421514851

jsturtevant avatar Oct 25 '18 16:10 jsturtevant

@PatrickLang @jsturtevant 0.24.2 still does not work, could you please take a look again?

The latest kubelet.err.log: I1026 10:55:57.715279 96948 server.go:408] Version: v1.12.1 E1026 10:55:58.464121 96948 server.go:731] Kubelet needs to run as uid 0. It is being run as -1 W1026 10:55:58.464121 96948 server.go:741] setting OOM scores is unsupported in this build I1026 10:55:58.464121 96948 kubelet.go:304] Watching apiserver W1026 10:55:58.469042 96948 iptables.go:155] Error checking iptables version, assuming version at least 1.4.11: executable file not found in %PATH% I1026 10:55:58.472042 96948 client.go:104] Start docker client with request timeout=2m0s E1026 10:55:58.479109 96948 kube_docker_client.go:91] failed to retrieve docker version: Error response from daemon: client version 1.38 is too new. Maximum supported API version is 1.37 W1026 10:55:58.479109 96948 kube_docker_client.go:92] Using empty version for docker client, this may sometimes cause compatibility issue. F1026 10:55:58.479109 96948 server.go:262] failed to run Kubelet: failed to create kubelet: failed to get docker version: Error response from daemon: client version 1.38 is too new. Maximum supported API version is 1.37

Thanks

zhiweiv avatar Oct 26 '18 10:10 zhiweiv

Seems this PR is not included in 0.24.2?

zhiweiv avatar Oct 26 '18 11:10 zhiweiv

I don't beleive it is, as 0.24.2 was a patch release. The change is in master so next release should be avaliable or you can build from master.

jsturtevant avatar Oct 26 '18 14:10 jsturtevant

As a temporary workaround, you can also deploy the previous Windows image by setting imageVersion like this. It will work with existing acs-engine releases including 0.24.2.

    "windowsProfile": {
                                "adminUsername": "...",
                                "adminPassword": "...",
                                "windowsPublisher": "MicrosoftWindowsServer",
                                "windowsOffer": "WindowsServerSemiAnnual",
                                "windowsSku": "Datacenter-Core-1803-with-Containers-smalldisk",
                                "imageVersion": "1803.0.20180912"
                        },

PatrickLang avatar Oct 27 '18 00:10 PatrickLang

The workaround works,

Thanks

zhiweiv avatar Oct 29 '18 07:10 zhiweiv

Should pinning the image be the norm, not just a workaround? This issue would also have happened on scale operations on working clusters, right?

GLink avatar Oct 30 '18 08:10 GLink

The scale does not work also. I met this issue first when scaling my cluster.

zhiweiv avatar Nov 01 '18 09:11 zhiweiv

Docker version is pinned now in 0.24.3, but you can set it it the API model if you want a different version.

PatrickLang avatar Nov 01 '18 16:11 PatrickLang