{"action":"created","comment":{"url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/comments/79378641","id":79378641,"diff_hunk":"@@ -0,0 +1,108 @@\n+// Copyright 2016 Intel Corporation\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//     http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+package node\n+\n+import (\n+\t\"fmt\"\n+\t\"gopkg.in/yaml.v2\"\n+\t\"io/ioutil\"\n+\t\"net\"\n+\t\"os\"\n+\t\"path/filepath\"\n+\t\"strings\"\n+\n+\t\"github.com/rackspace/gophercloud\"\n+\t\"github.com/rackspace/gophercloud/openstack\"\n+\t\"github.com/stackanetes/kubernetes-entrypoint/logger\"\n+)\n+\n+const (\n+\tconfigFileName = \"config.yaml\"","path":"node/utils.go","position":31,"original_position":31,"commit_id":"9ea3b2fd2f21acc23d050fb629a1a559f676e17f","original_commit_id":"9ea3b2fd2f21acc23d050fb629a1a559f676e17f","user":{"login":"ss7pro","id":1481180,"avatar_url":"https://avatars.githubusercontent.com/u/1481180?v=3","gravatar_id":"","url":"https://api.github.com/users/ss7pro","html_url":"https://github.com/ss7pro","followers_url":"https://api.github.com/users/ss7pro/followers","following_url":"https://api.github.com/users/ss7pro/following{/other_user}","gists_url":"https://api.github.com/users/ss7pro/gists{/gist_id}","starred_url":"https://api.github.com/users/ss7pro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ss7pro/subscriptions","organizations_url":"https://api.github.com/users/ss7pro/orgs","repos_url":"https://api.github.com/users/ss7pro/repos","events_url":"https://api.github.com/users/ss7pro/events{/privacy}","received_events_url":"https://api.github.com/users/ss7pro/received_events","type":"User","site_admin":false},"body":"configFileName should be pass as an cli parameter. ","created_at":"2016-09-19T12:23:00Z","updated_at":"2016-09-19T12:23:00Z","html_url":"https://github.com/stackanetes/nova-kubernetes-drain/pull/1#discussion_r79378641","pull_request_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/comments/79378641"},"html":{"href":"https://github.com/stackanetes/nova-kubernetes-drain/pull/1#discussion_r79378641"},"pull_request":{"href":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/1","id":85770537,"html_url":"https://github.com/stackanetes/nova-kubernetes-drain/pull/1","diff_url":"https://github.com/stackanetes/nova-kubernetes-drain/pull/1.diff","patch_url":"https://github.com/stackanetes/nova-kubernetes-drain/pull/1.patch","issue_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/issues/1","number":1,"state":"open","locked":false,"title":"Add nova-kubernetes-drain.","user":{"login":"DTadrzak","id":14016611,"avatar_url":"https://avatars.githubusercontent.com/u/14016611?v=3","gravatar_id":"","url":"https://api.github.com/users/DTadrzak","html_url":"https://github.com/DTadrzak","followers_url":"https://api.github.com/users/DTadrzak/followers","following_url":"https://api.github.com/users/DTadrzak/following{/other_user}","gists_url":"https://api.github.com/users/DTadrzak/gists{/gist_id}","starred_url":"https://api.github.com/users/DTadrzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DTadrzak/subscriptions","organizations_url":"https://api.github.com/users/DTadrzak/orgs","repos_url":"https://api.github.com/users/DTadrzak/repos","events_url":"https://api.github.com/users/DTadrzak/events{/privacy}","received_events_url":"https://api.github.com/users/DTadrzak/received_events","type":"User","site_admin":false},"body":"@Quentin-M \r\n@ss7pro \r\n@PiotrProkop \r\nNeed review.\r\nSigned-off-by: DTadrzak <daniel.tadrzak@intel.com>","created_at":"2016-09-19T10:39:26Z","updated_at":"2016-09-19T12:26:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ca2ef02ca15f55e47928e44c0b03b2420b84e63","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/1/commits","review_comments_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/1/comments","review_comment_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/issues/1/comments","statuses_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/statuses/9ea3b2fd2f21acc23d050fb629a1a559f676e17f","head":{"label":"DTadrzak:master","ref":"master","sha":"9ea3b2fd2f21acc23d050fb629a1a559f676e17f","user":{"login":"DTadrzak","id":14016611,"avatar_url":"https://avatars.githubusercontent.com/u/14016611?v=3","gravatar_id":"","url":"https://api.github.com/users/DTadrzak","html_url":"https://github.com/DTadrzak","followers_url":"https://api.github.com/users/DTadrzak/followers","following_url":"https://api.github.com/users/DTadrzak/following{/other_user}","gists_url":"https://api.github.com/users/DTadrzak/gists{/gist_id}","starred_url":"https://api.github.com/users/DTadrzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DTadrzak/subscriptions","organizations_url":"https://api.github.com/users/DTadrzak/orgs","repos_url":"https://api.github.com/users/DTadrzak/repos","events_url":"https://api.github.com/users/DTadrzak/events{/privacy}","received_events_url":"https://api.github.com/users/DTadrzak/received_events","type":"User","site_admin":false},"repo":{"id":68593931,"name":"nova-kubernetes-drain","full_name":"DTadrzak/nova-kubernetes-drain","owner":{"login":"DTadrzak","id":14016611,"avatar_url":"https://avatars.githubusercontent.com/u/14016611?v=3","gravatar_id":"","url":"https://api.github.com/users/DTadrzak","html_url":"https://github.com/DTadrzak","followers_url":"https://api.github.com/users/DTadrzak/followers","following_url":"https://api.github.com/users/DTadrzak/following{/other_user}","gists_url":"https://api.github.com/users/DTadrzak/gists{/gist_id}","starred_url":"https://api.github.com/users/DTadrzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DTadrzak/subscriptions","organizations_url":"https://api.github.com/users/DTadrzak/orgs","repos_url":"https://api.github.com/users/DTadrzak/repos","events_url":"https://api.github.com/users/DTadrzak/events{/privacy}","received_events_url":"https://api.github.com/users/DTadrzak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DTadrzak/nova-kubernetes-drain","description":"Live-migrate Nova VMs and disable scheduling when a Kubernetes node is drained.","fork":true,"url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain","forks_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/forks","keys_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/teams","hooks_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/hooks","issue_events_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/issues/events{/number}","events_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/events","assignees_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/assignees{/user}","branches_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/branches{/branch}","tags_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/tags","blobs_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/git/refs{/sha}","trees_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/statuses/{sha}","languages_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/languages","stargazers_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/stargazers","contributors_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/contributors","subscribers_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/subscribers","subscription_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/subscription","commits_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/commits{/sha}","git_commits_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/git/commits{/sha}","comments_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/comments{/number}","issue_comment_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/issues/comments{/number}","contents_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/contents/{+path}","compare_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/merges","archive_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/downloads","issues_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/issues{/number}","pulls_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/pulls{/number}","milestones_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/milestones{/number}","notifications_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/labels{/name}","releases_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/releases{/id}","deployments_url":"https://api.github.com/repos/DTadrzak/nova-kubernetes-drain/deployments","created_at":"2016-09-19T10:08:48Z","updated_at":"2016-09-19T10:37:14Z","pushed_at":"2016-09-19T10:37:13Z","git_url":"git://github.com/DTadrzak/nova-kubernetes-drain.git","ssh_url":"git@github.com:DTadrzak/nova-kubernetes-drain.git","clone_url":"https://github.com/DTadrzak/nova-kubernetes-drain.git","svn_url":"https://github.com/DTadrzak/nova-kubernetes-drain","homepage":"","size":12,"stargazers_count":1,"watchers_count":1,"language":"Go","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":1,"default_branch":"master"}},"base":{"label":"stackanetes:master","ref":"master","sha":"c161e5f9e3d273f6ab9c05424f6008c84d679de5","user":{"login":"stackanetes","id":18486756,"avatar_url":"https://avatars.githubusercontent.com/u/18486756?v=3","gravatar_id":"","url":"https://api.github.com/users/stackanetes","html_url":"https://github.com/stackanetes","followers_url":"https://api.github.com/users/stackanetes/followers","following_url":"https://api.github.com/users/stackanetes/following{/other_user}","gists_url":"https://api.github.com/users/stackanetes/gists{/gist_id}","starred_url":"https://api.github.com/users/stackanetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stackanetes/subscriptions","organizations_url":"https://api.github.com/users/stackanetes/orgs","repos_url":"https://api.github.com/users/stackanetes/repos","events_url":"https://api.github.com/users/stackanetes/events{/privacy}","received_events_url":"https://api.github.com/users/stackanetes/received_events","type":"Organization","site_admin":false},"repo":{"id":68591413,"name":"nova-kubernetes-drain","full_name":"stackanetes/nova-kubernetes-drain","owner":{"login":"stackanetes","id":18486756,"avatar_url":"https://avatars.githubusercontent.com/u/18486756?v=3","gravatar_id":"","url":"https://api.github.com/users/stackanetes","html_url":"https://github.com/stackanetes","followers_url":"https://api.github.com/users/stackanetes/followers","following_url":"https://api.github.com/users/stackanetes/following{/other_user}","gists_url":"https://api.github.com/users/stackanetes/gists{/gist_id}","starred_url":"https://api.github.com/users/stackanetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stackanetes/subscriptions","organizations_url":"https://api.github.com/users/stackanetes/orgs","repos_url":"https://api.github.com/users/stackanetes/repos","events_url":"https://api.github.com/users/stackanetes/events{/privacy}","received_events_url":"https://api.github.com/users/stackanetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stackanetes/nova-kubernetes-drain","description":"Live-migrate Nova VMs and disable scheduling when a Kubernetes node is drained.","fork":false,"url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain","forks_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/forks","keys_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/teams","hooks_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/hooks","issue_events_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/issues/events{/number}","events_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/events","assignees_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/assignees{/user}","branches_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/branches{/branch}","tags_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/tags","blobs_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/git/refs{/sha}","trees_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/statuses/{sha}","languages_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/languages","stargazers_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/stargazers","contributors_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/contributors","subscribers_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/subscribers","subscription_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/subscription","commits_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/commits{/sha}","git_commits_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/git/commits{/sha}","comments_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/comments{/number}","issue_comment_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/issues/comments{/number}","contents_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/contents/{+path}","compare_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/merges","archive_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/downloads","issues_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/issues{/number}","pulls_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls{/number}","milestones_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/milestones{/number}","notifications_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/labels{/name}","releases_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/releases{/id}","deployments_url":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/deployments","created_at":"2016-09-19T09:39:39Z","updated_at":"2016-09-19T09:59:59Z","pushed_at":"2016-09-19T10:39:27Z","git_url":"git://github.com/stackanetes/nova-kubernetes-drain.git","ssh_url":"git@github.com:stackanetes/nova-kubernetes-drain.git","clone_url":"https://github.com/stackanetes/nova-kubernetes-drain.git","svn_url":"https://github.com/stackanetes/nova-kubernetes-drain","homepage":"","size":13,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/1"},"html":{"href":"https://github.com/stackanetes/nova-kubernetes-drain/pull/1"},"issue":{"href":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/issues/1"},"comments":{"href":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/stackanetes/nova-kubernetes-drain/statuses/9ea3b2fd2f21acc23d050fb629a1a559f676e17f"}}}}
{"actor":{"display_login":"ss7pro"}}