{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/9452","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/9452/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/9452/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/9452/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/9452","id":86393405,"number":9452,"title":"kubelet: Add 'image pulling' event. Refactor dockerManager.createPodInfraContainer()","user":{"login":"yifan-gu","id":3278588,"avatar_url":"https://avatars.githubusercontent.com/u/3278588?v=3","gravatar_id":"","url":"https://api.github.com/users/yifan-gu","html_url":"https://github.com/yifan-gu","followers_url":"https://api.github.com/users/yifan-gu/followers","following_url":"https://api.github.com/users/yifan-gu/following{/other_user}","gists_url":"https://api.github.com/users/yifan-gu/gists{/gist_id}","starred_url":"https://api.github.com/users/yifan-gu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yifan-gu/subscriptions","organizations_url":"https://api.github.com/users/yifan-gu/orgs","repos_url":"https://api.github.com/users/yifan-gu/repos","events_url":"https://api.github.com/users/yifan-gu/events{/privacy}","received_events_url":"https://api.github.com/users/yifan-gu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"dchen1107","id":7740897,"avatar_url":"https://avatars.githubusercontent.com/u/7740897?v=3","gravatar_id":"","url":"https://api.github.com/users/dchen1107","html_url":"https://github.com/dchen1107","followers_url":"https://api.github.com/users/dchen1107/followers","following_url":"https://api.github.com/users/dchen1107/following{/other_user}","gists_url":"https://api.github.com/users/dchen1107/gists{/gist_id}","starred_url":"https://api.github.com/users/dchen1107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchen1107/subscriptions","organizations_url":"https://api.github.com/users/dchen1107/orgs","repos_url":"https://api.github.com/users/dchen1107/repos","events_url":"https://api.github.com/users/dchen1107/events{/privacy}","received_events_url":"https://api.github.com/users/dchen1107/received_events","type":"User","site_admin":false},"milestone":null,"comments":21,"created_at":"2015-06-09T01:03:35Z","updated_at":"2015-08-07T18:44:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/9452","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/9452","diff_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/9452.diff","patch_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/9452.patch"},"body":"Since it takes a while (1-2mins) for kubelet to pulling a big image\r\n(>500MB). Just showing \"Pending\" for pod status is not very helpful.\r\n\r\nThis commit introduces a \"pulling\" event, and inserts it before the\r\nkubelet starts to pull an image.\r\n\r\n\r\nBefore:\r\n\r\n```shell\r\n$ kubectl describe pods dns-frontend\r\nW0608 18:01:31.222834   32037 request.go:291] field selector: v1beta3 - events - involvedObject.name - dns-frontend: need to check if this is versioned correctly.\r\nW0608 18:01:31.222911   32037 request.go:291] field selector: v1beta3 - events - involvedObject.namespace - default: need to check if this is versioned correctly.\r\nW0608 18:01:31.222922   32037 request.go:291] field selector: v1beta3 - events - involvedObject.uid - 102ad4ca-0e43-11e5-a405-28d244b00276: need to check if this is versioned correctly.\r\nName:\t\t\t\tdns-frontend\r\nImage(s):\t\t\tddysher/dns-frontend\r\nHost:\t\t\t\t127.0.0.1/\r\nLabels:\t\t\t\tname=dns-frontend\r\nStatus:\t\t\t\tPending\r\nReplication Controllers:\t<none>\r\nContainers:\r\nEvents:\r\n  FirstSeen\t\t\t\tLastSeen\t\t\tCount\tFrom\t\t\tSubobjectPath\t\t\t\tReason\t\tMessage\r\n  Mon, 08 Jun 2015 18:01:30 -0700\tMon, 08 Jun 2015 18:01:30 -0700\t1\t{scheduler }\t\t\t\t\t\t\tscheduled\tSuccessfully assigned dns-frontend to 127.0.0.1\r\n  Mon, 08 Jun 2015 18:01:30 -0700\tMon, 08 Jun 2015 18:01:30 -0700\t1\t{kubelet 127.0.0.1}\timplicitly required container POD\tpulled\t\tSuccessfully pulled image \"gcr.io/google_containers/pause:0.8.0\"\r\n  Mon, 08 Jun 2015 18:01:30 -0700\tMon, 08 Jun 2015 18:01:30 -0700\t1\t{kubelet 127.0.0.1}\timplicitly required container POD\tcreated\t\tCreated with docker id 0d00c8b1e3aca395de644536d994921dea06836e22bb12c4ae72e8937c894189\r\n  Mon, 08 Jun 2015 18:01:31 -0700\tMon, 08 Jun 2015 18:01:31 -0700\t1\t{kubelet 127.0.0.1}\timplicitly required container POD\tstarted\t\tStarted with docker id 0d00c8b1e3aca395de644536d994921dea06836e22bb12c4ae72e8937c894189\r\n```\r\n\r\nAfter:\r\n```shell\r\n$ kubectl describe pods dns-frontend\r\nW0623 13:07:06.800598   21221 request.go:291] field selector: v1beta3 - events - involvedObject.name - dns-frontend: need to check if this is versioned correctly.\r\nW0623 13:07:06.800665   21221 request.go:291] field selector: v1beta3 - events - involvedObject.namespace - default: need to check if this is versioned correctly.\r\nW0623 13:07:06.800675   21221 request.go:291] field selector: v1beta3 - events - involvedObject.uid - 15f60526-19e3-11e5-a355-28d244b00276: need to check if this is versioned correctly.\r\nName:\t\t\t\tdns-frontend\r\nImage(s):\t\t\tddysher/dns-frontend\r\nNode:\t\t\t\t127.0.0.1/127.0.0.1\r\nLabels:\t\t\t\tname=dns-frontend\r\nStatus:\t\t\t\tRunning\r\nReplication Controllers:\t<none>\r\nContainers:\r\n  dns-frontend:\r\n    Image:\t\tddysher/dns-frontend\r\n    State:\t\tRunning\r\n      Started:\t\tTue, 23 Jun 2015 13:07:05 -0700\r\n    Ready:\t\tTrue\r\n    Restart Count:\t0\r\nConditions:\r\n  Type\t\tStatus\r\n  Ready \tTrue \r\nEvents:\r\n  FirstSeen\t\t\t\tLastSeen\t\t\tCount\tFrom\t\t\tSubobjectPath\t\t\t\tReason\t\tMessage\r\n  Tue, 23 Jun 2015 13:04:42 -0700\tTue, 23 Jun 2015 13:04:42 -0700\t1\t{scheduler }\t\t\t\t\t\t\tscheduled\tSuccessfully assigned dns-frontend to 127.0.0.1\r\n  Tue, 23 Jun 2015 13:04:42 -0700\tTue, 23 Jun 2015 13:04:42 -0700\t1\t{kubelet 127.0.0.1}\timplicitly required container POD\tpulled\t\tContainer image \"gcr.io/google_containers/pause:0.8.0\" already present on machine\r\n  Tue, 23 Jun 2015 13:04:42 -0700\tTue, 23 Jun 2015 13:04:42 -0700\t1\t{kubelet 127.0.0.1}\timplicitly required container POD\tcreated\t\tCreated with docker id 1f083693aee2\r\n  Tue, 23 Jun 2015 13:04:42 -0700\tTue, 23 Jun 2015 13:04:42 -0700\t1\t{kubelet 127.0.0.1}\timplicitly required container POD\tstarted\t\tStarted with docker id 1f083693aee2\r\n  Tue, 23 Jun 2015 13:04:42 -0700\tTue, 23 Jun 2015 13:04:42 -0700\t1\t{kubelet 127.0.0.1}\tspec.containers{dns-frontend}\t\tpulling\t\tPulling image \"ddysher/dns-frontend\"\r\n  Tue, 23 Jun 2015 13:07:05 -0700\tTue, 23 Jun 2015 13:07:05 -0700\t1\t{kubelet 127.0.0.1}\tspec.containers{dns-frontend}\t\tpulled\t\tSuccessfully pulled image \"ddysher/dns-frontend\"\r\n  Tue, 23 Jun 2015 13:07:05 -0700\tTue, 23 Jun 2015 13:07:05 -0700\t1\t{kubelet 127.0.0.1}\tspec.containers{dns-frontend}\t\tcreated\t\tCreated with docker id 242aafcbb2cf\r\n  Tue, 23 Jun 2015 13:07:05 -0700\tTue, 23 Jun 2015 13:07:05 -0700\t1\t{kubelet 127.0.0.1}\tspec.containers{dns-frontend}\t\tstarted\t\tStarted with docker id 242aafcbb2cf\r\n```\r\n\r\nAlso did some minor cleanup on the way :)\r\n/cc @vmarmol @dchen1107 @yujuhong "},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/128792356","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/9452#issuecomment-128792356","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/9452","id":128792356,"user":{"login":"yifan-gu","id":3278588,"avatar_url":"https://avatars.githubusercontent.com/u/3278588?v=3","gravatar_id":"","url":"https://api.github.com/users/yifan-gu","html_url":"https://github.com/yifan-gu","followers_url":"https://api.github.com/users/yifan-gu/followers","following_url":"https://api.github.com/users/yifan-gu/following{/other_user}","gists_url":"https://api.github.com/users/yifan-gu/gists{/gist_id}","starred_url":"https://api.github.com/users/yifan-gu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yifan-gu/subscriptions","organizations_url":"https://api.github.com/users/yifan-gu/orgs","repos_url":"https://api.github.com/users/yifan-gu/repos","events_url":"https://api.github.com/users/yifan-gu/events{/privacy}","received_events_url":"https://api.github.com/users/yifan-gu/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T18:44:12Z","updated_at":"2015-08-07T18:44:12Z","body":"@dchen1107 I just updated. it should be fine now :)"}}