{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/34893","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/34893/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/34893/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/34893/events","html_url":"https://github.com/kubernetes/kubernetes/issues/34893","id":183224895,"number":34893,"title":"kubeadm: pre-flight checks return false positives","user":{"login":"pires","id":1752631,"avatar_url":"https://avatars.githubusercontent.com/u/1752631?v=3","gravatar_id":"","url":"https://api.github.com/users/pires","html_url":"https://github.com/pires","followers_url":"https://api.github.com/users/pires/followers","following_url":"https://api.github.com/users/pires/following{/other_user}","gists_url":"https://api.github.com/users/pires/gists{/gist_id}","starred_url":"https://api.github.com/users/pires/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pires/subscriptions","organizations_url":"https://api.github.com/users/pires/orgs","repos_url":"https://api.github.com/users/pires/repos","events_url":"https://api.github.com/users/pires/events{/privacy}","received_events_url":"https://api.github.com/users/pires/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-15T18:28:25Z","updated_at":"2016-10-15T18:28:25Z","closed_at":null,"body":"Here's one example:\r\n```\r\n$ netstat -nlt\r\nActive Internet connections (only servers)\r\nProto Recv-Q Send-Q Local Address           Foreign Address         State\r\ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN\r\ntcp6       0      0 :::22                   :::*                    LISTEN\r\n\r\n$ kubeadm init\r\nRunning pre-flight checks\r\npreflight check errors:\r\n\tuser is not running as root\r\n\tPort 443 is in use\r\n\tebtables not found in system path\r\n\tsocat not found in system path\r\n\r\n$ sudo kubeadm init\r\nRunning pre-flight checks\r\npreflight check errors:\r\n\tebtables not found in system path\r\n\tsocat not found in system path\r\n```\r\n\r\nThe important part here is that port 443 is not being used but, when the user has no superuser privileges, `kubeadm` can't test bind that port and assumes it's already bound. In this particular case, regular users can't bind port numbers <1024 (it's possible but not by default).\r\n\r\nI am not sure if we have other pre-flight checks that suffer from this.\r\n\r\nThis is low-hanging fruit but fixing it will provide better UX. \r\n\r\n/cc @luxas @dmmcquay @dgoodwin "}}
{"actor":{"display_login":"pires"}}