{"action":"created","comment":{"url":"https://api.github.com/repos/portworx/torpedo/pulls/comments/234070118","pull_request_review_id":175633526,"id":234070118,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDA3MDExOA==","diff_hunk":"@@ -335,20 +294,71 @@ func (s *ssh) Systemctl(n node.Node, service string, options node.SystemctlOpts)\n \treturn nil\n }\n \n-func (s *ssh) doCmd(addr string, cmd string, ignoreErr bool) (string, error) {\n+func (s *ssh) doCmd(n node.Node, options node.ConnectionOpts, cmd string, ignoreErr bool) (string, error) {\n+\tswitch n.PlatformType {\n+\tcase node.PlatformIKS:\n+\t\treturn s.doCmdIks(n, options, cmd, ignoreErr)\n+\tcase node.PlatformGeneric:\n+\t\tfallthrough\n+\tdefault:\n+\t\treturn s.doCmdSSH(n, options, cmd, ignoreErr)\n+\t}\n+}\n+\n+func (s *ssh) doCmdIks(n node.Node, options node.ConnectionOpts, cmd string, ignoreErr bool) (string, error) {\n+\tcmdPreffix := []string{\"--\", \"nsenter\", \"--mount=/hostproc/1/ns/mnt\", \"/bin/bash\", \"-c\"}\n+\tcmdPreffix = append(cmdPreffix, fmt.Sprintf(\"\\\"%s\\\"\", cmd))\n+\n+\n+\tdebugPods, err := k8s.Instance().GetPodsByNode(n.Name, iksDefaultNamespace)","path":"drivers/node/ssh/ssh.go","position":225,"original_position":225,"commit_id":"1befa9a37a2f1dd7c51df79d81b66475263b4f67","original_commit_id":"1befa9a37a2f1dd7c51df79d81b66475263b4f67","user":{"login":"harsh-px","id":26801153,"node_id":"MDQ6VXNlcjI2ODAxMTUz","avatar_url":"https://avatars1.githubusercontent.com/u/26801153?v=4","gravatar_id":"","url":"https://api.github.com/users/harsh-px","html_url":"https://github.com/harsh-px","followers_url":"https://api.github.com/users/harsh-px/followers","following_url":"https://api.github.com/users/harsh-px/following{/other_user}","gists_url":"https://api.github.com/users/harsh-px/gists{/gist_id}","starred_url":"https://api.github.com/users/harsh-px/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harsh-px/subscriptions","organizations_url":"https://api.github.com/users/harsh-px/orgs","repos_url":"https://api.github.com/users/harsh-px/repos","events_url":"https://api.github.com/users/harsh-px/events{/privacy}","received_events_url":"https://api.github.com/users/harsh-px/received_events","type":"User","site_admin":false},"body":"Sorry, rename `debugPods` to `allPodsForNode`.","created_at":"2018-11-16T01:59:16Z","updated_at":"2018-11-16T01:59:16Z","html_url":"https://github.com/portworx/torpedo/pull/222#discussion_r234070118","pull_request_url":"https://api.github.com/repos/portworx/torpedo/pulls/222","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/portworx/torpedo/pulls/comments/234070118"},"html":{"href":"https://github.com/portworx/torpedo/pull/222#discussion_r234070118"},"pull_request":{"href":"https://api.github.com/repos/portworx/torpedo/pulls/222"}}},"pull_request":{"url":"https://api.github.com/repos/portworx/torpedo/pulls/222","id":231345071,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxMzQ1MDcx","html_url":"https://github.com/portworx/torpedo/pull/222","diff_url":"https://github.com/portworx/torpedo/pull/222.diff","patch_url":"https://github.com/portworx/torpedo/pull/222.patch","issue_url":"https://api.github.com/repos/portworx/torpedo/issues/222","number":222,"state":"open","locked":false,"title":"add ssh support  via nsenter to IKS worker nodes","user":{"login":"thiguetta","id":2332561,"node_id":"MDQ6VXNlcjIzMzI1NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2332561?v=4","gravatar_id":"","url":"https://api.github.com/users/thiguetta","html_url":"https://github.com/thiguetta","followers_url":"https://api.github.com/users/thiguetta/followers","following_url":"https://api.github.com/users/thiguetta/following{/other_user}","gists_url":"https://api.github.com/users/thiguetta/gists{/gist_id}","starred_url":"https://api.github.com/users/thiguetta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiguetta/subscriptions","organizations_url":"https://api.github.com/users/thiguetta/orgs","repos_url":"https://api.github.com/users/thiguetta/repos","events_url":"https://api.github.com/users/thiguetta/events{/privacy}","received_events_url":"https://api.github.com/users/thiguetta/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-15T21:47:05Z","updated_at":"2018-11-16T01:59:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18fbbc9d0d76d875165ddf5247d7d6275699a28c","assignee":{"login":"thiguetta","id":2332561,"node_id":"MDQ6VXNlcjIzMzI1NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2332561?v=4","gravatar_id":"","url":"https://api.github.com/users/thiguetta","html_url":"https://github.com/thiguetta","followers_url":"https://api.github.com/users/thiguetta/followers","following_url":"https://api.github.com/users/thiguetta/following{/other_user}","gists_url":"https://api.github.com/users/thiguetta/gists{/gist_id}","starred_url":"https://api.github.com/users/thiguetta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiguetta/subscriptions","organizations_url":"https://api.github.com/users/thiguetta/orgs","repos_url":"https://api.github.com/users/thiguetta/repos","events_url":"https://api.github.com/users/thiguetta/events{/privacy}","received_events_url":"https://api.github.com/users/thiguetta/received_events","type":"User","site_admin":false},"assignees":[{"login":"thiguetta","id":2332561,"node_id":"MDQ6VXNlcjIzMzI1NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2332561?v=4","gravatar_id":"","url":"https://api.github.com/users/thiguetta","html_url":"https://github.com/thiguetta","followers_url":"https://api.github.com/users/thiguetta/followers","following_url":"https://api.github.com/users/thiguetta/following{/other_user}","gists_url":"https://api.github.com/users/thiguetta/gists{/gist_id}","starred_url":"https://api.github.com/users/thiguetta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiguetta/subscriptions","organizations_url":"https://api.github.com/users/thiguetta/orgs","repos_url":"https://api.github.com/users/thiguetta/repos","events_url":"https://api.github.com/users/thiguetta/events{/privacy}","received_events_url":"https://api.github.com/users/thiguetta/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1036999832,"node_id":"MDU6TGFiZWwxMDM2OTk5ODMy","url":"https://api.github.com/repos/portworx/torpedo/labels/do-not-merge","name":"do-not-merge","color":"bc3c1c","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/portworx/torpedo/pulls/222/commits","review_comments_url":"https://api.github.com/repos/portworx/torpedo/pulls/222/comments","review_comment_url":"https://api.github.com/repos/portworx/torpedo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/portworx/torpedo/issues/222/comments","statuses_url":"https://api.github.com/repos/portworx/torpedo/statuses/1befa9a37a2f1dd7c51df79d81b66475263b4f67","head":{"label":"thiguetta:PTX-784","ref":"PTX-784","sha":"1befa9a37a2f1dd7c51df79d81b66475263b4f67","user":{"login":"thiguetta","id":2332561,"node_id":"MDQ6VXNlcjIzMzI1NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2332561?v=4","gravatar_id":"","url":"https://api.github.com/users/thiguetta","html_url":"https://github.com/thiguetta","followers_url":"https://api.github.com/users/thiguetta/followers","following_url":"https://api.github.com/users/thiguetta/following{/other_user}","gists_url":"https://api.github.com/users/thiguetta/gists{/gist_id}","starred_url":"https://api.github.com/users/thiguetta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiguetta/subscriptions","organizations_url":"https://api.github.com/users/thiguetta/orgs","repos_url":"https://api.github.com/users/thiguetta/repos","events_url":"https://api.github.com/users/thiguetta/events{/privacy}","received_events_url":"https://api.github.com/users/thiguetta/received_events","type":"User","site_admin":false},"repo":{"id":147219111,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyMTkxMTE=","name":"torpedo","full_name":"thiguetta/torpedo","private":false,"owner":{"login":"thiguetta","id":2332561,"node_id":"MDQ6VXNlcjIzMzI1NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2332561?v=4","gravatar_id":"","url":"https://api.github.com/users/thiguetta","html_url":"https://github.com/thiguetta","followers_url":"https://api.github.com/users/thiguetta/followers","following_url":"https://api.github.com/users/thiguetta/following{/other_user}","gists_url":"https://api.github.com/users/thiguetta/gists{/gist_id}","starred_url":"https://api.github.com/users/thiguetta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiguetta/subscriptions","organizations_url":"https://api.github.com/users/thiguetta/orgs","repos_url":"https://api.github.com/users/thiguetta/repos","events_url":"https://api.github.com/users/thiguetta/events{/privacy}","received_events_url":"https://api.github.com/users/thiguetta/received_events","type":"User","site_admin":false},"html_url":"https://github.com/thiguetta/torpedo","description":"A test suite to qualify storage providers for stateful containers running in a cluster.","fork":true,"url":"https://api.github.com/repos/thiguetta/torpedo","forks_url":"https://api.github.com/repos/thiguetta/torpedo/forks","keys_url":"https://api.github.com/repos/thiguetta/torpedo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thiguetta/torpedo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thiguetta/torpedo/teams","hooks_url":"https://api.github.com/repos/thiguetta/torpedo/hooks","issue_events_url":"https://api.github.com/repos/thiguetta/torpedo/issues/events{/number}","events_url":"https://api.github.com/repos/thiguetta/torpedo/events","assignees_url":"https://api.github.com/repos/thiguetta/torpedo/assignees{/user}","branches_url":"https://api.github.com/repos/thiguetta/torpedo/branches{/branch}","tags_url":"https://api.github.com/repos/thiguetta/torpedo/tags","blobs_url":"https://api.github.com/repos/thiguetta/torpedo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thiguetta/torpedo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thiguetta/torpedo/git/refs{/sha}","trees_url":"https://api.github.com/repos/thiguetta/torpedo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thiguetta/torpedo/statuses/{sha}","languages_url":"https://api.github.com/repos/thiguetta/torpedo/languages","stargazers_url":"https://api.github.com/repos/thiguetta/torpedo/stargazers","contributors_url":"https://api.github.com/repos/thiguetta/torpedo/contributors","subscribers_url":"https://api.github.com/repos/thiguetta/torpedo/subscribers","subscription_url":"https://api.github.com/repos/thiguetta/torpedo/subscription","commits_url":"https://api.github.com/repos/thiguetta/torpedo/commits{/sha}","git_commits_url":"https://api.github.com/repos/thiguetta/torpedo/git/commits{/sha}","comments_url":"https://api.github.com/repos/thiguetta/torpedo/comments{/number}","issue_comment_url":"https://api.github.com/repos/thiguetta/torpedo/issues/comments{/number}","contents_url":"https://api.github.com/repos/thiguetta/torpedo/contents/{+path}","compare_url":"https://api.github.com/repos/thiguetta/torpedo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thiguetta/torpedo/merges","archive_url":"https://api.github.com/repos/thiguetta/torpedo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thiguetta/torpedo/downloads","issues_url":"https://api.github.com/repos/thiguetta/torpedo/issues{/number}","pulls_url":"https://api.github.com/repos/thiguetta/torpedo/pulls{/number}","milestones_url":"https://api.github.com/repos/thiguetta/torpedo/milestones{/number}","notifications_url":"https://api.github.com/repos/thiguetta/torpedo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thiguetta/torpedo/labels{/name}","releases_url":"https://api.github.com/repos/thiguetta/torpedo/releases{/id}","deployments_url":"https://api.github.com/repos/thiguetta/torpedo/deployments","created_at":"2018-09-03T14:53:11Z","updated_at":"2018-11-02T01:44:20Z","pushed_at":"2018-11-16T01:54:44Z","git_url":"git://github.com/thiguetta/torpedo.git","ssh_url":"git@github.com:thiguetta/torpedo.git","clone_url":"https://github.com/thiguetta/torpedo.git","svn_url":"https://github.com/thiguetta/torpedo","homepage":null,"size":96118,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"portworx:master","ref":"master","sha":"7177e6471848a55b4c200ab714dca377cb3c786d","user":{"login":"portworx","id":12014092,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMDE0MDky","avatar_url":"https://avatars3.githubusercontent.com/u/12014092?v=4","gravatar_id":"","url":"https://api.github.com/users/portworx","html_url":"https://github.com/portworx","followers_url":"https://api.github.com/users/portworx/followers","following_url":"https://api.github.com/users/portworx/following{/other_user}","gists_url":"https://api.github.com/users/portworx/gists{/gist_id}","starred_url":"https://api.github.com/users/portworx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portworx/subscriptions","organizations_url":"https://api.github.com/users/portworx/orgs","repos_url":"https://api.github.com/users/portworx/repos","events_url":"https://api.github.com/users/portworx/events{/privacy}","received_events_url":"https://api.github.com/users/portworx/received_events","type":"Organization","site_admin":false},"repo":{"id":92557685,"node_id":"MDEwOlJlcG9zaXRvcnk5MjU1NzY4NQ==","name":"torpedo","full_name":"portworx/torpedo","private":false,"owner":{"login":"portworx","id":12014092,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMDE0MDky","avatar_url":"https://avatars3.githubusercontent.com/u/12014092?v=4","gravatar_id":"","url":"https://api.github.com/users/portworx","html_url":"https://github.com/portworx","followers_url":"https://api.github.com/users/portworx/followers","following_url":"https://api.github.com/users/portworx/following{/other_user}","gists_url":"https://api.github.com/users/portworx/gists{/gist_id}","starred_url":"https://api.github.com/users/portworx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portworx/subscriptions","organizations_url":"https://api.github.com/users/portworx/orgs","repos_url":"https://api.github.com/users/portworx/repos","events_url":"https://api.github.com/users/portworx/events{/privacy}","received_events_url":"https://api.github.com/users/portworx/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/portworx/torpedo","description":"A test suite to qualify storage providers for stateful containers running in a cluster.","fork":false,"url":"https://api.github.com/repos/portworx/torpedo","forks_url":"https://api.github.com/repos/portworx/torpedo/forks","keys_url":"https://api.github.com/repos/portworx/torpedo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/portworx/torpedo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/portworx/torpedo/teams","hooks_url":"https://api.github.com/repos/portworx/torpedo/hooks","issue_events_url":"https://api.github.com/repos/portworx/torpedo/issues/events{/number}","events_url":"https://api.github.com/repos/portworx/torpedo/events","assignees_url":"https://api.github.com/repos/portworx/torpedo/assignees{/user}","branches_url":"https://api.github.com/repos/portworx/torpedo/branches{/branch}","tags_url":"https://api.github.com/repos/portworx/torpedo/tags","blobs_url":"https://api.github.com/repos/portworx/torpedo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/portworx/torpedo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/portworx/torpedo/git/refs{/sha}","trees_url":"https://api.github.com/repos/portworx/torpedo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/portworx/torpedo/statuses/{sha}","languages_url":"https://api.github.com/repos/portworx/torpedo/languages","stargazers_url":"https://api.github.com/repos/portworx/torpedo/stargazers","contributors_url":"https://api.github.com/repos/portworx/torpedo/contributors","subscribers_url":"https://api.github.com/repos/portworx/torpedo/subscribers","subscription_url":"https://api.github.com/repos/portworx/torpedo/subscription","commits_url":"https://api.github.com/repos/portworx/torpedo/commits{/sha}","git_commits_url":"https://api.github.com/repos/portworx/torpedo/git/commits{/sha}","comments_url":"https://api.github.com/repos/portworx/torpedo/comments{/number}","issue_comment_url":"https://api.github.com/repos/portworx/torpedo/issues/comments{/number}","contents_url":"https://api.github.com/repos/portworx/torpedo/contents/{+path}","compare_url":"https://api.github.com/repos/portworx/torpedo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/portworx/torpedo/merges","archive_url":"https://api.github.com/repos/portworx/torpedo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/portworx/torpedo/downloads","issues_url":"https://api.github.com/repos/portworx/torpedo/issues{/number}","pulls_url":"https://api.github.com/repos/portworx/torpedo/pulls{/number}","milestones_url":"https://api.github.com/repos/portworx/torpedo/milestones{/number}","notifications_url":"https://api.github.com/repos/portworx/torpedo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/portworx/torpedo/labels{/name}","releases_url":"https://api.github.com/repos/portworx/torpedo/releases{/id}","deployments_url":"https://api.github.com/repos/portworx/torpedo/deployments","created_at":"2017-05-27T00:15:29Z","updated_at":"2018-11-16T01:48:02Z","pushed_at":"2018-11-16T01:54:45Z","git_url":"git://github.com/portworx/torpedo.git","ssh_url":"git@github.com:portworx/torpedo.git","clone_url":"https://github.com/portworx/torpedo.git","svn_url":"https://github.com/portworx/torpedo","homepage":null,"size":96069,"stargazers_count":42,"watchers_count":42,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":21,"open_issues":29,"watchers":42,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/portworx/torpedo/pulls/222"},"html":{"href":"https://github.com/portworx/torpedo/pull/222"},"issue":{"href":"https://api.github.com/repos/portworx/torpedo/issues/222"},"comments":{"href":"https://api.github.com/repos/portworx/torpedo/issues/222/comments"},"review_comments":{"href":"https://api.github.com/repos/portworx/torpedo/pulls/222/comments"},"review_comment":{"href":"https://api.github.com/repos/portworx/torpedo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/portworx/torpedo/pulls/222/commits"},"statuses":{"href":"https://api.github.com/repos/portworx/torpedo/statuses/1befa9a37a2f1dd7c51df79d81b66475263b4f67"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"harsh-px"}}