{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16742","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16742/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16742/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16742/events","html_url":"https://github.com/kubernetes/kubernetes/issues/16742","id":114883401,"number":16742,"title":"Need CR to get first prompt after kubectl run","user":{"login":"erictune","id":8105590,"avatar_url":"https://avatars.githubusercontent.com/u/8105590?v=3","gravatar_id":"","url":"https://api.github.com/users/erictune","html_url":"https://github.com/erictune","followers_url":"https://api.github.com/users/erictune/followers","following_url":"https://api.github.com/users/erictune/following{/other_user}","gists_url":"https://api.github.com/users/erictune/gists{/gist_id}","starred_url":"https://api.github.com/users/erictune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erictune/subscriptions","organizations_url":"https://api.github.com/users/erictune/orgs","repos_url":"https://api.github.com/users/erictune/repos","events_url":"https://api.github.com/users/erictune/events{/privacy}","received_events_url":"https://api.github.com/users/erictune/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/usability","name":"area/usability","color":"bfe5bf"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/component/kubectl","name":"component/kubectl","color":"0052cc"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/priority/P2","name":"priority/P2","color":"fbca04"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/ux","name":"team/ux","color":"d2b48c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-03T18:47:43Z","updated_at":"2016-02-14T22:51:29Z","closed_at":"2015-11-20T23:51:14Z","body":"When you run an image with kubectl run, it prints a bunch of `Waiting lines like this:\r\n\r\n```\r\n./kubectl run -i --tty temp2 --image busybox\r\nWaiting for pod default/temp2-7ob5w to be running, status is Pending, pod ready: false\r\n.. lots more lines ...\r\nWaiting for pod default/temp2-7ob5w to be running, status is Pending, pod ready: false\r\n```\r\n\r\nOnce it is done waiting, it doesn't print anything else, and it does not show the command prompt.  You have to hit enter to get a command prompt.  Users may not realize this.\r\n\r\nSuggest at the end of the `Waiting...` loop, we print a line like `Hit enter for prompt` or else figure out what is wrong with the terminal or shell settings that it isn't happening immediately."},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/183997156","html_url":"https://github.com/kubernetes/kubernetes/issues/16742#issuecomment-183997156","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16742","id":183997156,"user":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T22:51:29Z","updated_at":"2016-02-14T22:51:29Z","body":"@ncdc have we seen this that we don't get the original prompt?  Is this a race in attach where the buffer is lost or not detected?"}}