{"action":"created","comment":{"url":"https://api.github.com/repos/dmlc/dmlc-core/pulls/comments/54033153","id":54033153,"diff_hunk":"@@ -367,7 +374,7 @@ def slave_envs(self):\n             return {'DMLC_PS_ROOT_URI': self.hostIP,\n                     'DMLC_PS_ROOT_PORT': self.port}\n \n-def submit(nworker, nserver, fun_submit, hostIP = 'auto', pscmd = None):\n+def submit(nworker, nserver, fun_submit, hostIP='auto', pscmd=None):\n     if hostIP == 'auto':\n         hostIP = 'ip'\n     if hostIP == 'dns':","path":"tracker/dmlc_tracker/tracker.py","position":241,"original_position":241,"commit_id":"d40d9e8e0885100fb89cb5e1cf7bebae2a710eb8","original_commit_id":"d40d9e8e0885100fb89cb5e1cf7bebae2a710eb8","user":{"login":"mli","id":421857,"avatar_url":"https://avatars.githubusercontent.com/u/421857?v=3","gravatar_id":"","url":"https://api.github.com/users/mli","html_url":"https://github.com/mli","followers_url":"https://api.github.com/users/mli/followers","following_url":"https://api.github.com/users/mli/following{/other_user}","gists_url":"https://api.github.com/users/mli/gists{/gist_id}","starred_url":"https://api.github.com/users/mli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mli/subscriptions","organizations_url":"https://api.github.com/users/mli/orgs","repos_url":"https://api.github.com/users/mli/repos","events_url":"https://api.github.com/users/mli/events{/privacy}","received_events_url":"https://api.github.com/users/mli/received_events","type":"User","site_admin":false},"body":"please consider this scripts which avoids to pick the 127* ip\r\n\r\n```bash\r\n    elif hostIP == 'ip':\r\n        from socket import gaierror\r\n        try:\r\n            hostIP = socket.gethostbyname(socket.getfqdn())\r\n        except gaierror:\r\n            logging.warn('gethostbyname(socket.getfqdn()) failed... trying on hostname()')\r\n            hostIP = socket.gethostbyname(socket.gethostname())\r\n        if hostIP.startswith(\"127.\"):\r\n            s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\r\n            # doesn't have to be reachable\r\n            s.connect(('10.255.255.255', 0))\r\n            hostIP = s.getsockname()[0]\r\n```","created_at":"2016-02-25T00:46:16Z","updated_at":"2016-02-25T00:46:16Z","html_url":"https://github.com/dmlc/dmlc-core/pull/113#discussion_r54033153","pull_request_url":"https://api.github.com/repos/dmlc/dmlc-core/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/dmlc/dmlc-core/pulls/comments/54033153"},"html":{"href":"https://github.com/dmlc/dmlc-core/pull/113#discussion_r54033153"},"pull_request":{"href":"https://api.github.com/repos/dmlc/dmlc-core/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/dmlc/dmlc-core/pulls/113","id":60460003,"html_url":"https://github.com/dmlc/dmlc-core/pull/113","diff_url":"https://github.com/dmlc/dmlc-core/pull/113.diff","patch_url":"https://github.com/dmlc/dmlc-core/pull/113.patch","issue_url":"https://api.github.com/repos/dmlc/dmlc-core/issues/113","number":113,"state":"open","locked":false,"title":"[TRACKER] refactor tracker","user":{"login":"tqchen","id":2577440,"avatar_url":"https://avatars.githubusercontent.com/u/2577440?v=3","gravatar_id":"","url":"https://api.github.com/users/tqchen","html_url":"https://github.com/tqchen","followers_url":"https://api.github.com/users/tqchen/followers","following_url":"https://api.github.com/users/tqchen/following{/other_user}","gists_url":"https://api.github.com/users/tqchen/gists{/gist_id}","starred_url":"https://api.github.com/users/tqchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tqchen/subscriptions","organizations_url":"https://api.github.com/users/tqchen/orgs","repos_url":"https://api.github.com/users/tqchen/repos","events_url":"https://api.github.com/users/tqchen/events{/privacy}","received_events_url":"https://api.github.com/users/tqchen/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-24T05:51:19Z","updated_at":"2016-02-25T00:46:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f83b1bc5a5ac77ee1eb0eae14299c2f5540ed25e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dmlc/dmlc-core/pulls/113/commits","review_comments_url":"https://api.github.com/repos/dmlc/dmlc-core/pulls/113/comments","review_comment_url":"https://api.github.com/repos/dmlc/dmlc-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dmlc/dmlc-core/issues/113/comments","statuses_url":"https://api.github.com/repos/dmlc/dmlc-core/statuses/d40d9e8e0885100fb89cb5e1cf7bebae2a710eb8","head":{"label":"tqchen:master","ref":"master","sha":"d40d9e8e0885100fb89cb5e1cf7bebae2a710eb8","user":{"login":"tqchen","id":2577440,"avatar_url":"https://avatars.githubusercontent.com/u/2577440?v=3","gravatar_id":"","url":"https://api.github.com/users/tqchen","html_url":"https://github.com/tqchen","followers_url":"https://api.github.com/users/tqchen/followers","following_url":"https://api.github.com/users/tqchen/following{/other_user}","gists_url":"https://api.github.com/users/tqchen/gists{/gist_id}","starred_url":"https://api.github.com/users/tqchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tqchen/subscriptions","organizations_url":"https://api.github.com/users/tqchen/orgs","repos_url":"https://api.github.com/users/tqchen/repos","events_url":"https://api.github.com/users/tqchen/events{/privacy}","received_events_url":"https://api.github.com/users/tqchen/received_events","type":"User","site_admin":false},"repo":{"id":42669754,"name":"dmlc-core","full_name":"tqchen/dmlc-core","owner":{"login":"tqchen","id":2577440,"avatar_url":"https://avatars.githubusercontent.com/u/2577440?v=3","gravatar_id":"","url":"https://api.github.com/users/tqchen","html_url":"https://github.com/tqchen","followers_url":"https://api.github.com/users/tqchen/followers","following_url":"https://api.github.com/users/tqchen/following{/other_user}","gists_url":"https://api.github.com/users/tqchen/gists{/gist_id}","starred_url":"https://api.github.com/users/tqchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tqchen/subscriptions","organizations_url":"https://api.github.com/users/tqchen/orgs","repos_url":"https://api.github.com/users/tqchen/repos","events_url":"https://api.github.com/users/tqchen/events{/privacy}","received_events_url":"https://api.github.com/users/tqchen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tqchen/dmlc-core","description":"A common code-base for Distributed Machine Learning in C++","fork":true,"url":"https://api.github.com/repos/tqchen/dmlc-core","forks_url":"https://api.github.com/repos/tqchen/dmlc-core/forks","keys_url":"https://api.github.com/repos/tqchen/dmlc-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tqchen/dmlc-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tqchen/dmlc-core/teams","hooks_url":"https://api.github.com/repos/tqchen/dmlc-core/hooks","issue_events_url":"https://api.github.com/repos/tqchen/dmlc-core/issues/events{/number}","events_url":"https://api.github.com/repos/tqchen/dmlc-core/events","assignees_url":"https://api.github.com/repos/tqchen/dmlc-core/assignees{/user}","branches_url":"https://api.github.com/repos/tqchen/dmlc-core/branches{/branch}","tags_url":"https://api.github.com/repos/tqchen/dmlc-core/tags","blobs_url":"https://api.github.com/repos/tqchen/dmlc-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tqchen/dmlc-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tqchen/dmlc-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/tqchen/dmlc-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tqchen/dmlc-core/statuses/{sha}","languages_url":"https://api.github.com/repos/tqchen/dmlc-core/languages","stargazers_url":"https://api.github.com/repos/tqchen/dmlc-core/stargazers","contributors_url":"https://api.github.com/repos/tqchen/dmlc-core/contributors","subscribers_url":"https://api.github.com/repos/tqchen/dmlc-core/subscribers","subscription_url":"https://api.github.com/repos/tqchen/dmlc-core/subscription","commits_url":"https://api.github.com/repos/tqchen/dmlc-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/tqchen/dmlc-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/tqchen/dmlc-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/tqchen/dmlc-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/tqchen/dmlc-core/contents/{+path}","compare_url":"https://api.github.com/repos/tqchen/dmlc-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tqchen/dmlc-core/merges","archive_url":"https://api.github.com/repos/tqchen/dmlc-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tqchen/dmlc-core/downloads","issues_url":"https://api.github.com/repos/tqchen/dmlc-core/issues{/number}","pulls_url":"https://api.github.com/repos/tqchen/dmlc-core/pulls{/number}","milestones_url":"https://api.github.com/repos/tqchen/dmlc-core/milestones{/number}","notifications_url":"https://api.github.com/repos/tqchen/dmlc-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tqchen/dmlc-core/labels{/name}","releases_url":"https://api.github.com/repos/tqchen/dmlc-core/releases{/id}","deployments_url":"https://api.github.com/repos/tqchen/dmlc-core/deployments","created_at":"2015-09-17T17:07:06Z","updated_at":"2016-01-11T23:26:03Z","pushed_at":"2016-02-24T05:50:55Z","git_url":"git://github.com/tqchen/dmlc-core.git","ssh_url":"git@github.com:tqchen/dmlc-core.git","clone_url":"https://github.com/tqchen/dmlc-core.git","svn_url":"https://github.com/tqchen/dmlc-core","homepage":"","size":755,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dmlc:master","ref":"master","sha":"706f4d477a48fc75cb46b226ea007fbac862f9c2","user":{"login":"dmlc","id":11508361,"avatar_url":"https://avatars.githubusercontent.com/u/11508361?v=3","gravatar_id":"","url":"https://api.github.com/users/dmlc","html_url":"https://github.com/dmlc","followers_url":"https://api.github.com/users/dmlc/followers","following_url":"https://api.github.com/users/dmlc/following{/other_user}","gists_url":"https://api.github.com/users/dmlc/gists{/gist_id}","starred_url":"https://api.github.com/users/dmlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmlc/subscriptions","organizations_url":"https://api.github.com/users/dmlc/orgs","repos_url":"https://api.github.com/users/dmlc/repos","events_url":"https://api.github.com/users/dmlc/events{/privacy}","received_events_url":"https://api.github.com/users/dmlc/received_events","type":"Organization","site_admin":false},"repo":{"id":32356864,"name":"dmlc-core","full_name":"dmlc/dmlc-core","owner":{"login":"dmlc","id":11508361,"avatar_url":"https://avatars.githubusercontent.com/u/11508361?v=3","gravatar_id":"","url":"https://api.github.com/users/dmlc","html_url":"https://github.com/dmlc","followers_url":"https://api.github.com/users/dmlc/followers","following_url":"https://api.github.com/users/dmlc/following{/other_user}","gists_url":"https://api.github.com/users/dmlc/gists{/gist_id}","starred_url":"https://api.github.com/users/dmlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmlc/subscriptions","organizations_url":"https://api.github.com/users/dmlc/orgs","repos_url":"https://api.github.com/users/dmlc/repos","events_url":"https://api.github.com/users/dmlc/events{/privacy}","received_events_url":"https://api.github.com/users/dmlc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dmlc/dmlc-core","description":"A common bricks library  for building scalable and portable distributed machine learning.","fork":false,"url":"https://api.github.com/repos/dmlc/dmlc-core","forks_url":"https://api.github.com/repos/dmlc/dmlc-core/forks","keys_url":"https://api.github.com/repos/dmlc/dmlc-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmlc/dmlc-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmlc/dmlc-core/teams","hooks_url":"https://api.github.com/repos/dmlc/dmlc-core/hooks","issue_events_url":"https://api.github.com/repos/dmlc/dmlc-core/issues/events{/number}","events_url":"https://api.github.com/repos/dmlc/dmlc-core/events","assignees_url":"https://api.github.com/repos/dmlc/dmlc-core/assignees{/user}","branches_url":"https://api.github.com/repos/dmlc/dmlc-core/branches{/branch}","tags_url":"https://api.github.com/repos/dmlc/dmlc-core/tags","blobs_url":"https://api.github.com/repos/dmlc/dmlc-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmlc/dmlc-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmlc/dmlc-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmlc/dmlc-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmlc/dmlc-core/statuses/{sha}","languages_url":"https://api.github.com/repos/dmlc/dmlc-core/languages","stargazers_url":"https://api.github.com/repos/dmlc/dmlc-core/stargazers","contributors_url":"https://api.github.com/repos/dmlc/dmlc-core/contributors","subscribers_url":"https://api.github.com/repos/dmlc/dmlc-core/subscribers","subscription_url":"https://api.github.com/repos/dmlc/dmlc-core/subscription","commits_url":"https://api.github.com/repos/dmlc/dmlc-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmlc/dmlc-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmlc/dmlc-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmlc/dmlc-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmlc/dmlc-core/contents/{+path}","compare_url":"https://api.github.com/repos/dmlc/dmlc-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmlc/dmlc-core/merges","archive_url":"https://api.github.com/repos/dmlc/dmlc-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmlc/dmlc-core/downloads","issues_url":"https://api.github.com/repos/dmlc/dmlc-core/issues{/number}","pulls_url":"https://api.github.com/repos/dmlc/dmlc-core/pulls{/number}","milestones_url":"https://api.github.com/repos/dmlc/dmlc-core/milestones{/number}","notifications_url":"https://api.github.com/repos/dmlc/dmlc-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmlc/dmlc-core/labels{/name}","releases_url":"https://api.github.com/repos/dmlc/dmlc-core/releases{/id}","deployments_url":"https://api.github.com/repos/dmlc/dmlc-core/deployments","created_at":"2015-03-16T22:30:15Z","updated_at":"2016-02-19T04:37:32Z","pushed_at":"2016-02-24T05:51:20Z","git_url":"git://github.com/dmlc/dmlc-core.git","ssh_url":"git@github.com:dmlc/dmlc-core.git","clone_url":"https://github.com/dmlc/dmlc-core.git","svn_url":"https://github.com/dmlc/dmlc-core","homepage":"","size":1091,"stargazers_count":247,"watchers_count":247,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":150,"mirror_url":null,"open_issues_count":10,"forks":150,"open_issues":10,"watchers":247,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dmlc/dmlc-core/pulls/113"},"html":{"href":"https://github.com/dmlc/dmlc-core/pull/113"},"issue":{"href":"https://api.github.com/repos/dmlc/dmlc-core/issues/113"},"comments":{"href":"https://api.github.com/repos/dmlc/dmlc-core/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/dmlc/dmlc-core/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/dmlc/dmlc-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dmlc/dmlc-core/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/dmlc/dmlc-core/statuses/d40d9e8e0885100fb89cb5e1cf7bebae2a710eb8"}}}}