{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/pouch/issues/862","repository_url":"https://api.github.com/repos/alibaba/pouch","labels_url":"https://api.github.com/repos/alibaba/pouch/issues/862/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/pouch/issues/862/comments","events_url":"https://api.github.com/repos/alibaba/pouch/issues/862/events","html_url":"https://github.com/alibaba/pouch/pull/862","id":304137807,"number":862,"title":"feature: add debugger tool for pouch","user":{"login":"HusterWan","id":10414039,"avatar_url":"https://avatars3.githubusercontent.com/u/10414039?v=4","gravatar_id":"","url":"https://api.github.com/users/HusterWan","html_url":"https://github.com/HusterWan","followers_url":"https://api.github.com/users/HusterWan/followers","following_url":"https://api.github.com/users/HusterWan/following{/other_user}","gists_url":"https://api.github.com/users/HusterWan/gists{/gist_id}","starred_url":"https://api.github.com/users/HusterWan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HusterWan/subscriptions","organizations_url":"https://api.github.com/users/HusterWan/orgs","repos_url":"https://api.github.com/users/HusterWan/repos","events_url":"https://api.github.com/users/HusterWan/events{/privacy}","received_events_url":"https://api.github.com/users/HusterWan/received_events","type":"User","site_admin":false},"labels":[{"id":684575943,"url":"https://api.github.com/repos/alibaba/pouch/labels/kind/bug","name":"kind/bug","color":"f77e56","default":false},{"id":722348097,"url":"https://api.github.com/repos/alibaba/pouch/labels/kind/feature","name":"kind/feature","color":"1d76db","default":false},{"id":722355711,"url":"https://api.github.com/repos/alibaba/pouch/labels/size/XXL","name":"size/XXL","color":"cc3d73","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-11T07:43:34Z","updated_at":"2018-03-13T08:50:05Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/alibaba/pouch/pulls/862","html_url":"https://github.com/alibaba/pouch/pull/862","diff_url":"https://github.com/alibaba/pouch/pull/862.diff","patch_url":"https://github.com/alibaba/pouch/pull/862.patch"},"body":"Signed-off-by: Michael Wan <zirenwan@gmail.com>\r\n\r\n### Ⅰ. Describe what this PR did\r\nadd gops debug tool for pouch\r\n\r\n### Ⅱ. Does this pull request fix one issue?\r\nfixes https://github.com/alibaba/pouch/issues/863\r\n### Ⅲ. Describe how you did it\r\n\r\n### Ⅳ. Describe how to verify it\r\nfirst, install gops tool on your compute:\r\n```\r\n$ go get -u github.com/google/gops\r\n```\r\nsecond, get pouchd process id, `gops` will print all golang process on your machine.\r\n```\r\n$ gops\r\n```\r\nlast, print the pouchd process stack\r\n```\r\n$ gops stack $PID\r\n```\r\n\r\n### Ⅴ. Special notes for reviews\r\nprint process goroutine stack just like blow\r\n```\r\ngoroutine 863 [select, 2 minutes]:\r\ngithub.com/alibaba/pouch/vendor/google.golang.org/grpc/transport.wait(0x7f74e0e4c0c8, 0xc420bb42a0, 0x0, 0x0, 0xc4203e0480, 0xc4203680e0, 0x0, 0x0, 0xc420408420)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/google.golang.org/grpc/transport/transport.go:635 +0x181\r\ngithub.com/alibaba/pouch/vendor/google.golang.org/grpc/transport.(*http2Client).NewStream(0xc420471800, 0x7f74e0e4c0c8, 0xc420bb4270, 0xc4210dfe50, 0x243c980, 0xc420471800, 0x0)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/google.golang.org/grpc/transport/http2_client.go:366 +0x7f5\r\ngithub.com/alibaba/pouch/vendor/google.golang.org/grpc.invoke(0x7f74e0e4c0c8, 0xc420bb4270, 0x1afb67f, 0x29, 0x19e66a0, 0xc4202966c0, 0x19e6780, 0xc420a96f38, 0xc420092d00, 0x0, ...)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/google.golang.org/grpc/call.go:246 +0x69a\r\ngithub.com/alibaba/pouch/vendor/github.com/containerd/containerd.namespaceInterceptor.unary(0x1ad0b10, 0x7, 0x7f74e0e4c0c8, 0xc420bb4180, 0x1afb67f, 0x29, 0x19e66a0, 0xc4202966c0, 0x19e6780, 0xc420a96f38, ...)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/github.com/containerd/containerd/grpc.go:18 +0xf4\r\ngithub.com/alibaba/pouch/vendor/github.com/containerd/containerd.(namespaceInterceptor).(github.com/alibaba/pouch/vendor/github.com/containerd/containerd.unary)-fm(0x7f74e0e4c0c8, 0xc420bb4180, 0x1afb67f, 0x29, 0x19e66a0, 0xc4202966c0, 0x19e6780, 0xc420a96f38, 0xc420092d00, 0x1b31200, ...)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/github.com/containerd/containerd/grpc.go:34 +0xf4\r\ngithub.com/alibaba/pouch/vendor/google.golang.org/grpc.Invoke(0x7f74e0e4c0c8, 0xc420bb4180, 0x1afb67f, 0x29, 0x19e66a0, 0xc4202966c0, 0x19e6780, 0xc420a96f38, 0xc420092d00, 0x0, ...)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/google.golang.org/grpc/call.go:141 +0xdd\r\ngithub.com/alibaba/pouch/vendor/github.com/containerd/containerd/api/services/images/v1.(*imagesClient).Get(0xc420a96f30, 0x7f74e0e4c0c8, 0xc420bb4180, 0xc4202966c0, 0x0, 0x0, 0x0, 0xc42191ca00, 0xc420409100, 0xc420409230)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/github.com/containerd/containerd/api/services/images/v1/images.pb.go:226 +0xd2\r\ngithub.com/alibaba/pouch/vendor/github.com/containerd/containerd.(*remoteImages).Get(0xc4202966b0, 0x2436ea0, 0xc420bb4180, 0xc42020a090, 0x2e, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/github.com/containerd/containerd/image_store.go:26 +0x12f\r\ngithub.com/alibaba/pouch/ctrd.(*Client).CreateSnapshot(0xc4203e26e0, 0x2436ea0, 0xc420bb4180, 0xc4201cbc80, 0x40, 0xc42020a090, 0x2e, 0x0, 0x0)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/ctrd/snapshot.go:20 +0x1f9\r\ngithub.com/alibaba/pouch/daemon/mgr.(*ContainerManager).Create(0xc42012eaf0, 0x2436de0, 0xc42175d000, 0xc4201cbc80, 0x6, 0xc420ab5760, 0x0, 0x0, 0x0)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/daemon/mgr/container.go:340 +0x417\r\ngithub.com/alibaba/pouch/apis/server.(*Server).createContainer(0xc42013e2e8, 0x2436de0, 0xc42175d000, 0x2435c60, 0xc42050f7a0, 0xc420433500, 0x3, 0x3)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/apis/server/container_bridge.go:131 +0x2da\r\ngithub.com/alibaba/pouch/apis/server.(*Server).(github.com/alibaba/pouch/apis/server.createContainer)-fm(0x2436de0, 0xc42175d000, 0x2435c60, 0xc42050f7a0, 0xc420433500, 0xc420433500, 0xc421bcdad0)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/apis/server/router.go:29 +0x5c\r\ngithub.com/alibaba/pouch/apis/server.(*Server).filter.func1(0x2435c60, 0xc42050f7a0, 0xc420433500)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/apis/server/router.go:115 +0x2ae\r\nnet/http.HandlerFunc.ServeHTTP(0xc4211f7800, 0x2435c60, 0xc42050f7a0, 0xc420433500)\r\n    /usr/local/go/src/net/http/server.go:1918 +0x44\r\ngithub.com/alibaba/pouch/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc421a12360, 0x2435c60, 0xc42050f7a0, 0xc420433500)\r\n    /tmp/pouchbuild/src/github.com/alibaba/pouch/vendor/github.com/gorilla/mux/mux.go:133 +0xed\r\nnet/http.serverHandler.ServeHTTP(0xc4211e7520, 0x2435c60, 0xc42050f7a0, 0xc420433300)\r\n    /usr/local/go/src/net/http/server.go:2619 +0xb4\r\nnet/http.(*conn).serve(0xc42023d180, 0x2436de0, 0xc42175ce80)\r\n    /usr/local/go/src/net/http/server.go:1801 +0x71d\r\ncreated by net/http.(*Server).Serve\r\n    /usr/local/go/src/net/http/server.go:2720 +0x288\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/alibaba/pouch/issues/comments/372590315","html_url":"https://github.com/alibaba/pouch/pull/862#issuecomment-372590315","issue_url":"https://api.github.com/repos/alibaba/pouch/issues/862","id":372590315,"user":{"login":"Letty5411","id":14540559,"avatar_url":"https://avatars0.githubusercontent.com/u/14540559?v=4","gravatar_id":"","url":"https://api.github.com/users/Letty5411","html_url":"https://github.com/Letty5411","followers_url":"https://api.github.com/users/Letty5411/followers","following_url":"https://api.github.com/users/Letty5411/following{/other_user}","gists_url":"https://api.github.com/users/Letty5411/gists{/gist_id}","starred_url":"https://api.github.com/users/Letty5411/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Letty5411/subscriptions","organizations_url":"https://api.github.com/users/Letty5411/orgs","repos_url":"https://api.github.com/users/Letty5411/repos","events_url":"https://api.github.com/users/Letty5411/events{/privacy}","received_events_url":"https://api.github.com/users/Letty5411/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T08:50:05Z","updated_at":"2018-03-13T08:50:05Z","author_association":"CONTRIBUTOR","body":"LGTM"}}
{"actor":{"display_login":"Letty5411"}}