{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubeadm/issues/814","repository_url":"https://api.github.com/repos/kubernetes/kubeadm","labels_url":"https://api.github.com/repos/kubernetes/kubeadm/issues/814/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubeadm/issues/814/comments","events_url":"https://api.github.com/repos/kubernetes/kubeadm/issues/814/events","html_url":"https://github.com/kubernetes/kubeadm/issues/814","id":323045935,"number":814,"title":"kubeadm init/join CRI preflight check fails unnecessarily ","user":{"login":"MikeSpreitzer","id":14296719,"avatar_url":"https://avatars2.githubusercontent.com/u/14296719?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeSpreitzer","html_url":"https://github.com/MikeSpreitzer","followers_url":"https://api.github.com/users/MikeSpreitzer/followers","following_url":"https://api.github.com/users/MikeSpreitzer/following{/other_user}","gists_url":"https://api.github.com/users/MikeSpreitzer/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeSpreitzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeSpreitzer/subscriptions","organizations_url":"https://api.github.com/users/MikeSpreitzer/orgs","repos_url":"https://api.github.com/users/MikeSpreitzer/repos","events_url":"https://api.github.com/users/MikeSpreitzer/events{/privacy}","received_events_url":"https://api.github.com/users/MikeSpreitzer/received_events","type":"User","site_admin":false},"labels":[{"id":486837088,"url":"https://api.github.com/repos/kubernetes/kubeadm/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":764038607,"url":"https://api.github.com/repos/kubernetes/kubeadm/labels/sig/cluster-lifecycle","name":"sig/cluster-lifecycle","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":{"login":"chuckha","id":98927,"avatar_url":"https://avatars0.githubusercontent.com/u/98927?v=4","gravatar_id":"","url":"https://api.github.com/users/chuckha","html_url":"https://github.com/chuckha","followers_url":"https://api.github.com/users/chuckha/followers","following_url":"https://api.github.com/users/chuckha/following{/other_user}","gists_url":"https://api.github.com/users/chuckha/gists{/gist_id}","starred_url":"https://api.github.com/users/chuckha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuckha/subscriptions","organizations_url":"https://api.github.com/users/chuckha/orgs","repos_url":"https://api.github.com/users/chuckha/repos","events_url":"https://api.github.com/users/chuckha/events{/privacy}","received_events_url":"https://api.github.com/users/chuckha/received_events","type":"User","site_admin":false},"assignees":[{"login":"chuckha","id":98927,"avatar_url":"https://avatars0.githubusercontent.com/u/98927?v=4","gravatar_id":"","url":"https://api.github.com/users/chuckha","html_url":"https://github.com/chuckha","followers_url":"https://api.github.com/users/chuckha/followers","following_url":"https://api.github.com/users/chuckha/following{/other_user}","gists_url":"https://api.github.com/users/chuckha/gists{/gist_id}","starred_url":"https://api.github.com/users/chuckha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuckha/subscriptions","organizations_url":"https://api.github.com/users/chuckha/orgs","repos_url":"https://api.github.com/users/chuckha/repos","events_url":"https://api.github.com/users/chuckha/events{/privacy}","received_events_url":"https://api.github.com/users/chuckha/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/kubernetes/kubeadm/milestones/6","html_url":"https://github.com/kubernetes/kubeadm/milestone/6","labels_url":"https://api.github.com/repos/kubernetes/kubeadm/milestones/6/labels","id":3061542,"number":6,"title":"v1.11","description":"","creator":{"login":"timothysc","id":169553,"avatar_url":"https://avatars0.githubusercontent.com/u/169553?v=4","gravatar_id":"","url":"https://api.github.com/users/timothysc","html_url":"https://github.com/timothysc","followers_url":"https://api.github.com/users/timothysc/followers","following_url":"https://api.github.com/users/timothysc/following{/other_user}","gists_url":"https://api.github.com/users/timothysc/gists{/gist_id}","starred_url":"https://api.github.com/users/timothysc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothysc/subscriptions","organizations_url":"https://api.github.com/users/timothysc/orgs","repos_url":"https://api.github.com/users/timothysc/repos","events_url":"https://api.github.com/users/timothysc/events{/privacy}","received_events_url":"https://api.github.com/users/timothysc/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":79,"state":"open","created_at":"2018-01-24T16:53:18Z","updated_at":"2018-05-25T18:12:54Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2018-05-15T02:36:05Z","updated_at":"2018-05-28T12:11:07Z","closed_at":null,"author_association":"NONE","body":"<!-- Thanks for filing an issue! Before hitting the button, please answer these questions.-->\r\n\r\n## What keywords did you search in kubeadm issues before filing this one?\r\n\r\nI searched for: unable to check if the container runtime at \"/var/run/dockershim.sock\" is running\r\n\r\nI found #657 but it was already closed.\r\n\r\n\r\n## Is this a BUG REPORT or FEATURE REQUEST?\r\n\r\nBUG REPORT\r\n\r\n<!--\r\nIf this is a BUG REPORT, please:\r\n  - Fill in as much of the template below as you can.  If you leave out information, we can't help you as well.\r\n\r\nIf this is a FEATURE REQUEST, please:\r\n  - Describe *in detail* the feature/behavior/change you'd like to see.\r\n\r\nIn both cases, be ready for followup questions, and please respond in a timely\r\nmanner.  If we can't reproduce a bug or think a feature already exists, we\r\nmight close your issue.  If we're wrong, PLEASE feel free to reopen it and\r\nexplain why.\r\n-->\r\n\r\n\r\n## Versions\r\n\r\n**kubeadm version** (use `kubeadm version`):\r\n```\r\nroot@mjs-worker-dal10-a:~# kubeadm version\r\nkubeadm version: &version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.2\", GitCommit:\"81753b10df112992bf51bbc2c2f85208aad78335\", GitTreeState:\"clean\", BuildDate:\"2018-04-27T09:10:24Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n**Environment**:\r\n- **Kubernetes version** (use `kubectl version`):\r\n```\r\nroot@mjs-worker-dal10-a:~# kubectl version\r\nClient Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.2\", GitCommit:\"81753b10df112992bf51bbc2c2f85208aad78335\", GitTreeState:\"clean\", BuildDate:\"2018-04-27T09:22:21Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nThe connection to the server localhost:8080 was refused - did you specify the right host or port?\r\n```\r\n\r\n- **Cloud provider or hardware configuration**:\r\nNo kube CloudProvider.  SoftLayer VM with 16 CPUs and 32 GB of main memory.\r\n\r\n- **OS** (e.g. from /etc/os-release): 16.04.4 LTS\r\n\r\n- **Kernel** (e.g. `uname -a`): Linux mjs-worker-dal10-a 4.4.0-112-generic #135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n- **Others**:\r\n\r\n\r\n## What happened?\r\n```\r\nroot@mjs-worker-dal10-a:~# kubeadm join --token t3c20c.s0s7q3md5lkgn5d6 --discovery-token-ca-cert-hash 1044b1e3ef183d51c50030533d8f33764a2928f8b76193a020eab2d855619ab4 10.171.126.235:6443\r\n[preflight] Running pre-flight checks.\r\n[preflight] Some fatal errors occurred:\r\n\t[ERROR CRI]: unable to check if the container runtime at \"/var/run/dockershim.sock\" is running: fork/exec /usr/local/bin/crictl -r /var/run/dockershim.sock info: no such file or directory\r\n[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`\r\n```\r\n\r\nI have `crictl` installed and there is no dockershim running yet.\r\n```\r\nroot@mjs-worker-dal10-a:~# ls -ld /var/run/dock*\r\ndrwx------ 6 root root   120 May  8 00:03 /var/run/docker\r\n-rw-r--r-- 1 root root     5 May 12 15:41 /var/run/docker.pid\r\nsrw-rw---- 1 root docker   0 May 12 15:41 /var/run/docker.sock\r\n```\r\n\r\n## What you expected to happen?\r\nI expected kubeadm to not complain about the fact that it has not made a dockershim yet.  I expected #657 to be fixed, since I am using version 1.10.2 of kubeadm.\r\n\r\n## How to reproduce it (as minimally and precisely as possible)?\r\nJust like #657\r\n\r\n## Anything else we need to know?\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubeadm/issues/comments/392510572","html_url":"https://github.com/kubernetes/kubeadm/issues/814#issuecomment-392510572","issue_url":"https://api.github.com/repos/kubernetes/kubeadm/issues/814","id":392510572,"user":{"login":"SpComb","id":3950373,"avatar_url":"https://avatars2.githubusercontent.com/u/3950373?v=4","gravatar_id":"","url":"https://api.github.com/users/SpComb","html_url":"https://github.com/SpComb","followers_url":"https://api.github.com/users/SpComb/followers","following_url":"https://api.github.com/users/SpComb/following{/other_user}","gists_url":"https://api.github.com/users/SpComb/gists{/gist_id}","starred_url":"https://api.github.com/users/SpComb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpComb/subscriptions","organizations_url":"https://api.github.com/users/SpComb/orgs","repos_url":"https://api.github.com/users/SpComb/repos","events_url":"https://api.github.com/users/SpComb/events{/privacy}","received_events_url":"https://api.github.com/users/SpComb/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T12:11:07Z","updated_at":"2018-05-28T12:11:07Z","author_association":"NONE","body":"Per https://github.com/kubernetes/kubernetes/pull/63907#issuecomment-390002464 this does not seem to be getting a 1.10 backport... if I'm understanding this issue correctly, then that means that with the latest 1.10.x release `kubeadm join` is broken for the default Docker runtime *if* you happen to have `crictl` installed:\r\n\r\n```\r\n$ sudo kubeadm join ...\r\n[preflight] Running pre-flight checks.\r\n[preflight] Some fatal errors occurred:\r\n\t[ERROR CRI]: unable to check if the container runtime at \"/var/run/dockershim.sock\" is running: exit status 1\r\n[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`\r\n```\r\n\r\nWorkaround is to not install `crictl`, which is a bit odd because `kubeadm join` suggests you do exactly that:\r\n\r\n```\r\n    \t[WARNING FileExisting-crictl]: crictl not found in system path\r\n    Suggestion: go get github.com/kubernetes-incubator/cri-tools/cmd/crictl\r\n```\r\n\r\n---\r\n\r\nTo be clear, this is a different issue from the confusingly similar issue affecting 1.10.x with `crictl` installed, which is fixed in 1.10.3 by https://github.com/kubernetes/kubernetes/pull/63849:\r\n\r\n```\r\n[preflight] Running pre-flight checks.\r\n\t[WARNING DirAvailable--etc-kubernetes-manifests]: /etc/kubernetes/manifests is not empty\r\n[preflight] Some fatal errors occurred:\r\n\t[ERROR CRI]: unable to check if the container runtime at \"/var/run/crio/crio.sock\" is running: fork/exec /usr/local/bin/crictl -r /var/run/crio/crio.sock info: no such file or directory\r\n[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`\r\n```\r\n\r\nUsing `kubeadm join --cri-socket /var/run/crio/crio.sock` with a non-Docker runtime works fine in 1.10.3 with `crictl` installed, but is broken in 1.10.2."}}
{"actor":{"display_login":"SpComb"}}