{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/2370","labels_url":"https://api.github.com/repos/openshift/origin/issues/2370/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/2370/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/2370/events","html_url":"https://github.com/openshift/origin/issues/2370","id":78361171,"number":2370,"title":"Recovering from deployment pod that failed without reporting state","user":{"login":"sosiouxme","id":29690,"avatar_url":"https://avatars.githubusercontent.com/u/29690?v=3","gravatar_id":"","url":"https://api.github.com/users/sosiouxme","html_url":"https://github.com/sosiouxme","followers_url":"https://api.github.com/users/sosiouxme/followers","following_url":"https://api.github.com/users/sosiouxme/following{/other_user}","gists_url":"https://api.github.com/users/sosiouxme/gists{/gist_id}","starred_url":"https://api.github.com/users/sosiouxme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosiouxme/subscriptions","organizations_url":"https://api.github.com/users/sosiouxme/orgs","repos_url":"https://api.github.com/users/sosiouxme/repos","events_url":"https://api.github.com/users/sosiouxme/events{/privacy}","received_events_url":"https://api.github.com/users/sosiouxme/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/deployments","name":"component/deployments","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/component/routing","name":"component/routing","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/kind/bug","name":"kind/bug","color":"fc2929"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"abhgupta","id":1211613,"avatar_url":"https://avatars.githubusercontent.com/u/1211613?v=3","gravatar_id":"","url":"https://api.github.com/users/abhgupta","html_url":"https://github.com/abhgupta","followers_url":"https://api.github.com/users/abhgupta/followers","following_url":"https://api.github.com/users/abhgupta/following{/other_user}","gists_url":"https://api.github.com/users/abhgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/abhgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhgupta/subscriptions","organizations_url":"https://api.github.com/users/abhgupta/orgs","repos_url":"https://api.github.com/users/abhgupta/repos","events_url":"https://api.github.com/users/abhgupta/events{/privacy}","received_events_url":"https://api.github.com/users/abhgupta/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2015-05-20T04:11:27Z","updated_at":"2015-05-31T01:46:30Z","closed_at":null,"body":"I deployed a router, it was supposed to be broken but not quite like this.\r\n\r\n```\r\n$ osc get pods\r\nPOD                    IP        CONTAINER(S)   IMAGE(S)                           HOST                             LABELS    STATUS       CREATED     MESSAGE\r\ndeploy-router-1wlv0i                                                               ip-10-51-163-209/10.51.163.209   <none>    Failed       2 minutes   \r\n                                 deployment     openshift/origin-deployer:v0.5.1                                              Terminated   2 minutes   exit code 255\r\n$ docker ps -a\r\nCONTAINER ID        IMAGE                              COMMAND                CREATED             STATUS                       PORTS               NAMES\r\ndb929a127597        openshift/origin-deployer:v0.5.1   \"/usr/bin/openshift-   2 minutes ago       Exited (255) 2 minutes ago                       k8s_deployment.3ea4efa8_deploy-router-1wlv0i_default_dff46974-fea2-11e4-95d6-22000b3280a3_e3f01fb3   \r\n23992ab347b7        openshift/origin-pod:v0.5.1        \"/pod\"                 2 minutes ago       Exited (0) 2 minutes ago                         k8s_POD.d6d6c430_deploy-router-1wlv0i_default_dff46974-fea2-11e4-95d6-22000b3280a3_2f922d59          \r\na98bcb10a0b5        openshift/origin-release:latest    \"/bin/sh -c 'tar mxz   23 hours ago        Exited (0) 23 hours ago                          naughty_albattani                                                                                    \r\n$ docker logs db929a127597\r\nF0520 03:47:26.039993       1 deployer.go:66] Failed to decode DeploymentConfig from controller: couldn't get version/kind: unexpected end of JSON input\r\n```\r\n\r\nAlright, not very helpful, but the point is it's broken. What do I do now?\r\n\r\n```\r\n$ osc deploy router\r\nrouter #1 deployment pending on update. Run osc deploy --latest to deploy now.\r\n\r\n$ osc deploy router --latest\r\nError: #1 is already in progress ()\r\n$ osc get deployment\r\nNAME      STATUS    CAUSE\r\n```\r\n\r\nIt's not pending, it's failed. I should be able to just run another one.\r\n\r\nOther than delete everything I honestly don't know how to proceed. Could there be some better directions on this?"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/107107047","html_url":"https://github.com/openshift/origin/issues/2370#issuecomment-107107047","issue_url":"https://api.github.com/repos/openshift/origin/issues/2370","id":107107047,"user":{"login":"derekwaynecarr","id":6233452,"avatar_url":"https://avatars.githubusercontent.com/u/6233452?v=3","gravatar_id":"","url":"https://api.github.com/users/derekwaynecarr","html_url":"https://github.com/derekwaynecarr","followers_url":"https://api.github.com/users/derekwaynecarr/followers","following_url":"https://api.github.com/users/derekwaynecarr/following{/other_user}","gists_url":"https://api.github.com/users/derekwaynecarr/gists{/gist_id}","starred_url":"https://api.github.com/users/derekwaynecarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekwaynecarr/subscriptions","organizations_url":"https://api.github.com/users/derekwaynecarr/orgs","repos_url":"https://api.github.com/users/derekwaynecarr/repos","events_url":"https://api.github.com/users/derekwaynecarr/events{/privacy}","received_events_url":"https://api.github.com/users/derekwaynecarr/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T01:46:30Z","updated_at":"2015-05-31T01:46:30Z","body":"Assume you mean the image is pulled, container starts and has an issue.  In that case, if pod is restart never, pod is failed in next Kubelet synch loop (about 10s).  If pod is restart on failure, then never.  If pod is restart always, then never.  \r\n\r\nSent from my iPhone\r\n\r\n> On May 28, 2015, at 7:20 PM, Abhishek Gupta <notifications@github.com> wrote:\r\n> \r\n> @derekwaynecarr At what point does a container that fails to start result in the pod being placed in the failed state?\r\n> \r\n> —\r\n> Reply to this email directly or view it on GitHub.\r\n> \r\n"}}