{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/54129","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/54129/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/54129/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/54129/events","html_url":"https://github.com/kubernetes/kubernetes/issues/54129","id":266383912,"number":54129,"title":"Creation of gitRepo volume is broken in 1.8.0+","user":{"login":"imkin","id":2793249,"avatar_url":"https://avatars1.githubusercontent.com/u/2793249?v=4","gravatar_id":"","url":"https://api.github.com/users/imkin","html_url":"https://github.com/imkin","followers_url":"https://api.github.com/users/imkin/followers","following_url":"https://api.github.com/users/imkin/following{/other_user}","gists_url":"https://api.github.com/users/imkin/gists{/gist_id}","starred_url":"https://api.github.com/users/imkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imkin/subscriptions","organizations_url":"https://api.github.com/users/imkin/orgs","repos_url":"https://api.github.com/users/imkin/repos","events_url":"https://api.github.com/users/imkin/events{/privacy}","received_events_url":"https://api.github.com/users/imkin/received_events","type":"User","site_admin":false},"labels":[{"id":105146071,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":173494222,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/cluster-lifecycle","name":"sig/cluster-lifecycle","color":"d2b48c","default":false},{"id":173493665,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/node","name":"sig/node","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-10-18T07:20:42Z","updated_at":"2017-10-19T19:01:53Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n/kind bug\r\n\r\n\r\n**What happened**:\r\nPods with volumeMount gitRepo volumes in 1.8.0 see the following error in kubelet logs (also in `kubectl describe pod <pod-name> logs`)\r\nIt is important to not that the git repo clone is done via ssh.\r\n\r\n```\r\nkubelet-wrapper[411]: error: cannot run ssh: No such file or directory\r\nkubelet-wrapper[411]: fatal: unable to fork\r\nkubelet-wrapper[411]: : exit status 128\r\n```\r\n\r\n\r\nI think what is happening is that hyperkube image now used to have `ssh` command in it and now it does not have it. So the git clone command that kubelet runs fails with the above stacktrace since it cannot find `ssh`.\r\n\r\n**What you expected to happen**:\r\ngitRepo is volume mounted.\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\nReproducible in kubernetes 1.8.0+ hyperkube images.\r\n\r\n```\r\ndocker run -it gcr.io/google-containers/hyperkube:v1.8.2-beta.0 /bin/bash\r\n# git clone <ssh git url>\r\nCloning into 'project1'...\r\nerror: cannot run ssh: No such file or directory\r\nfatal: unable to fork\r\n#\r\n```\r\n\r\n**Anything else we need to know?**:\r\nThis probably is due to missing ssh binary in the new 1.8.0 hyperkube images.\r\nThe commit https://github.com/kubernetes/kubernetes/commit/66b9ae7cd86e1f594f57a6e5d3b11ef9f09460b3 might be an issue. Will comment further if I find otherwise.\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):   >=1.8.0\r\n- Cloud provider or hardware configuration**: Not Application.\r\n- OS (e.g. from /etc/os-release): \r\nhyperkube base image \r\n- Kernel (e.g. `uname -a`):\r\n- Install tools:\r\n- Others:\r\n\r\n@kubernetes/sig-node-bugs "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/338005466","html_url":"https://github.com/kubernetes/kubernetes/issues/54129#issuecomment-338005466","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/54129","id":338005466,"user":{"login":"ixdy","id":8061296,"avatar_url":"https://avatars3.githubusercontent.com/u/8061296?v=4","gravatar_id":"","url":"https://api.github.com/users/ixdy","html_url":"https://github.com/ixdy","followers_url":"https://api.github.com/users/ixdy/followers","following_url":"https://api.github.com/users/ixdy/following{/other_user}","gists_url":"https://api.github.com/users/ixdy/gists{/gist_id}","starred_url":"https://api.github.com/users/ixdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ixdy/subscriptions","organizations_url":"https://api.github.com/users/ixdy/orgs","repos_url":"https://api.github.com/users/ixdy/repos","events_url":"https://api.github.com/users/ixdy/events{/privacy}","received_events_url":"https://api.github.com/users/ixdy/received_events","type":"User","site_admin":false},"created_at":"2017-10-19T19:01:53Z","updated_at":"2017-10-19T19:01:53Z","author_association":"MEMBER","body":"https://github.com/kubernetes/kubernetes/pull/54250 to fix"}}
{"actor":{"display_login":"ixdy"}}