{"action":"created","comment":{"url":"https://api.github.com/repos/innogames/igvm/pulls/comments/221840237","pull_request_review_id":160584062,"id":221840237,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTg0MDIzNw==","diff_hunk":"@@ -315,6 +323,11 @@ def vm_stop(vm_hostname, force=False):\n         else:\n             vm.shutdown()\n         log.info('\"{}\" is stopped.'.format(vm.fqdn))\n+        if retire:\n+            vm.dataset_obj['state'] = 'retired'\n+            vm.dataset_obj.commit()\n+            log.info('\"{}\" is retired.'.format(vm.fqdn))\n+","path":"igvm/commands.py","position":48,"original_position":48,"commit_id":"645da21e9d01fc43ab45abac2a7e0ab937ad30c5","original_commit_id":"645da21e9d01fc43ab45abac2a7e0ab937ad30c5","user":{"login":"HerrSpace","id":224042,"node_id":"MDQ6VXNlcjIyNDA0Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/224042?v=4","gravatar_id":"","url":"https://api.github.com/users/HerrSpace","html_url":"https://github.com/HerrSpace","followers_url":"https://api.github.com/users/HerrSpace/followers","following_url":"https://api.github.com/users/HerrSpace/following{/other_user}","gists_url":"https://api.github.com/users/HerrSpace/gists{/gist_id}","starred_url":"https://api.github.com/users/HerrSpace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HerrSpace/subscriptions","organizations_url":"https://api.github.com/users/HerrSpace/orgs","repos_url":"https://api.github.com/users/HerrSpace/repos","events_url":"https://api.github.com/users/HerrSpace/events{/privacy}","received_events_url":"https://api.github.com/users/HerrSpace/received_events","type":"User","site_admin":false},"body":"Setting the state before shutdown would make testtool take the VM out of potential LBs before it goes down. Can we move this?","created_at":"2018-10-02T06:53:24Z","updated_at":"2018-10-02T06:53:24Z","html_url":"https://github.com/innogames/igvm/pull/83#discussion_r221840237","pull_request_url":"https://api.github.com/repos/innogames/igvm/pulls/83","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/innogames/igvm/pulls/comments/221840237"},"html":{"href":"https://github.com/innogames/igvm/pull/83#discussion_r221840237"},"pull_request":{"href":"https://api.github.com/repos/innogames/igvm/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/innogames/igvm/pulls/83","id":217531096,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NTMxMDk2","html_url":"https://github.com/innogames/igvm/pull/83","diff_url":"https://github.com/innogames/igvm/pull/83.diff","patch_url":"https://github.com/innogames/igvm/pull/83.patch","issue_url":"https://api.github.com/repos/innogames/igvm/issues/83","number":83,"state":"open","locked":false,"title":"Provide parameters to retire and unretire a VM","user":{"login":"TuxPowered42","id":4185055,"node_id":"MDQ6VXNlcjQxODUwNTU=","avatar_url":"https://avatars0.githubusercontent.com/u/4185055?v=4","gravatar_id":"","url":"https://api.github.com/users/TuxPowered42","html_url":"https://github.com/TuxPowered42","followers_url":"https://api.github.com/users/TuxPowered42/followers","following_url":"https://api.github.com/users/TuxPowered42/following{/other_user}","gists_url":"https://api.github.com/users/TuxPowered42/gists{/gist_id}","starred_url":"https://api.github.com/users/TuxPowered42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuxPowered42/subscriptions","organizations_url":"https://api.github.com/users/TuxPowered42/orgs","repos_url":"https://api.github.com/users/TuxPowered42/repos","events_url":"https://api.github.com/users/TuxPowered42/events{/privacy}","received_events_url":"https://api.github.com/users/TuxPowered42/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-23T21:03:20Z","updated_at":"2018-10-02T06:53:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b29bbc01e070391a502aaf9b5d35e89e13c110e1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/innogames/igvm/pulls/83/commits","review_comments_url":"https://api.github.com/repos/innogames/igvm/pulls/83/comments","review_comment_url":"https://api.github.com/repos/innogames/igvm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/innogames/igvm/issues/83/comments","statuses_url":"https://api.github.com/repos/innogames/igvm/statuses/645da21e9d01fc43ab45abac2a7e0ab937ad30c5","head":{"label":"innogames:retire","ref":"retire","sha":"645da21e9d01fc43ab45abac2a7e0ab937ad30c5","user":{"login":"innogames","id":1314968,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTQ5Njg=","avatar_url":"https://avatars2.githubusercontent.com/u/1314968?v=4","gravatar_id":"","url":"https://api.github.com/users/innogames","html_url":"https://github.com/innogames","followers_url":"https://api.github.com/users/innogames/followers","following_url":"https://api.github.com/users/innogames/following{/other_user}","gists_url":"https://api.github.com/users/innogames/gists{/gist_id}","starred_url":"https://api.github.com/users/innogames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innogames/subscriptions","organizations_url":"https://api.github.com/users/innogames/orgs","repos_url":"https://api.github.com/users/innogames/repos","events_url":"https://api.github.com/users/innogames/events{/privacy}","received_events_url":"https://api.github.com/users/innogames/received_events","type":"Organization","site_admin":false},"repo":{"id":121620027,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE2MjAwMjc=","name":"igvm","full_name":"innogames/igvm","private":false,"owner":{"login":"innogames","id":1314968,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTQ5Njg=","avatar_url":"https://avatars2.githubusercontent.com/u/1314968?v=4","gravatar_id":"","url":"https://api.github.com/users/innogames","html_url":"https://github.com/innogames","followers_url":"https://api.github.com/users/innogames/followers","following_url":"https://api.github.com/users/innogames/following{/other_user}","gists_url":"https://api.github.com/users/innogames/gists{/gist_id}","starred_url":"https://api.github.com/users/innogames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innogames/subscriptions","organizations_url":"https://api.github.com/users/innogames/orgs","repos_url":"https://api.github.com/users/innogames/repos","events_url":"https://api.github.com/users/innogames/events{/privacy}","received_events_url":"https://api.github.com/users/innogames/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/innogames/igvm","description":"InnoGames VM provisioning tool","fork":false,"url":"https://api.github.com/repos/innogames/igvm","forks_url":"https://api.github.com/repos/innogames/igvm/forks","keys_url":"https://api.github.com/repos/innogames/igvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/innogames/igvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/innogames/igvm/teams","hooks_url":"https://api.github.com/repos/innogames/igvm/hooks","issue_events_url":"https://api.github.com/repos/innogames/igvm/issues/events{/number}","events_url":"https://api.github.com/repos/innogames/igvm/events","assignees_url":"https://api.github.com/repos/innogames/igvm/assignees{/user}","branches_url":"https://api.github.com/repos/innogames/igvm/branches{/branch}","tags_url":"https://api.github.com/repos/innogames/igvm/tags","blobs_url":"https://api.github.com/repos/innogames/igvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/innogames/igvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/innogames/igvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/innogames/igvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/innogames/igvm/statuses/{sha}","languages_url":"https://api.github.com/repos/innogames/igvm/languages","stargazers_url":"https://api.github.com/repos/innogames/igvm/stargazers","contributors_url":"https://api.github.com/repos/innogames/igvm/contributors","subscribers_url":"https://api.github.com/repos/innogames/igvm/subscribers","subscription_url":"https://api.github.com/repos/innogames/igvm/subscription","commits_url":"https://api.github.com/repos/innogames/igvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/innogames/igvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/innogames/igvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/innogames/igvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/innogames/igvm/contents/{+path}","compare_url":"https://api.github.com/repos/innogames/igvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/innogames/igvm/merges","archive_url":"https://api.github.com/repos/innogames/igvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/innogames/igvm/downloads","issues_url":"https://api.github.com/repos/innogames/igvm/issues{/number}","pulls_url":"https://api.github.com/repos/innogames/igvm/pulls{/number}","milestones_url":"https://api.github.com/repos/innogames/igvm/milestones{/number}","notifications_url":"https://api.github.com/repos/innogames/igvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/innogames/igvm/labels{/name}","releases_url":"https://api.github.com/repos/innogames/igvm/releases{/id}","deployments_url":"https://api.github.com/repos/innogames/igvm/deployments","created_at":"2018-02-15T11:07:27Z","updated_at":"2018-09-21T13:28:20Z","pushed_at":"2018-09-27T12:41:57Z","git_url":"git://github.com/innogames/igvm.git","ssh_url":"git@github.com:innogames/igvm.git","clone_url":"https://github.com/innogames/igvm.git","svn_url":"https://github.com/innogames/igvm","homepage":null,"size":846,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":4,"watchers":7,"default_branch":"master"}},"base":{"label":"innogames:master","ref":"master","sha":"960afaa1419b23a494c40a7845fcf7736ebc9f02","user":{"login":"innogames","id":1314968,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTQ5Njg=","avatar_url":"https://avatars2.githubusercontent.com/u/1314968?v=4","gravatar_id":"","url":"https://api.github.com/users/innogames","html_url":"https://github.com/innogames","followers_url":"https://api.github.com/users/innogames/followers","following_url":"https://api.github.com/users/innogames/following{/other_user}","gists_url":"https://api.github.com/users/innogames/gists{/gist_id}","starred_url":"https://api.github.com/users/innogames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innogames/subscriptions","organizations_url":"https://api.github.com/users/innogames/orgs","repos_url":"https://api.github.com/users/innogames/repos","events_url":"https://api.github.com/users/innogames/events{/privacy}","received_events_url":"https://api.github.com/users/innogames/received_events","type":"Organization","site_admin":false},"repo":{"id":121620027,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE2MjAwMjc=","name":"igvm","full_name":"innogames/igvm","private":false,"owner":{"login":"innogames","id":1314968,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTQ5Njg=","avatar_url":"https://avatars2.githubusercontent.com/u/1314968?v=4","gravatar_id":"","url":"https://api.github.com/users/innogames","html_url":"https://github.com/innogames","followers_url":"https://api.github.com/users/innogames/followers","following_url":"https://api.github.com/users/innogames/following{/other_user}","gists_url":"https://api.github.com/users/innogames/gists{/gist_id}","starred_url":"https://api.github.com/users/innogames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innogames/subscriptions","organizations_url":"https://api.github.com/users/innogames/orgs","repos_url":"https://api.github.com/users/innogames/repos","events_url":"https://api.github.com/users/innogames/events{/privacy}","received_events_url":"https://api.github.com/users/innogames/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/innogames/igvm","description":"InnoGames VM provisioning tool","fork":false,"url":"https://api.github.com/repos/innogames/igvm","forks_url":"https://api.github.com/repos/innogames/igvm/forks","keys_url":"https://api.github.com/repos/innogames/igvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/innogames/igvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/innogames/igvm/teams","hooks_url":"https://api.github.com/repos/innogames/igvm/hooks","issue_events_url":"https://api.github.com/repos/innogames/igvm/issues/events{/number}","events_url":"https://api.github.com/repos/innogames/igvm/events","assignees_url":"https://api.github.com/repos/innogames/igvm/assignees{/user}","branches_url":"https://api.github.com/repos/innogames/igvm/branches{/branch}","tags_url":"https://api.github.com/repos/innogames/igvm/tags","blobs_url":"https://api.github.com/repos/innogames/igvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/innogames/igvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/innogames/igvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/innogames/igvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/innogames/igvm/statuses/{sha}","languages_url":"https://api.github.com/repos/innogames/igvm/languages","stargazers_url":"https://api.github.com/repos/innogames/igvm/stargazers","contributors_url":"https://api.github.com/repos/innogames/igvm/contributors","subscribers_url":"https://api.github.com/repos/innogames/igvm/subscribers","subscription_url":"https://api.github.com/repos/innogames/igvm/subscription","commits_url":"https://api.github.com/repos/innogames/igvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/innogames/igvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/innogames/igvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/innogames/igvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/innogames/igvm/contents/{+path}","compare_url":"https://api.github.com/repos/innogames/igvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/innogames/igvm/merges","archive_url":"https://api.github.com/repos/innogames/igvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/innogames/igvm/downloads","issues_url":"https://api.github.com/repos/innogames/igvm/issues{/number}","pulls_url":"https://api.github.com/repos/innogames/igvm/pulls{/number}","milestones_url":"https://api.github.com/repos/innogames/igvm/milestones{/number}","notifications_url":"https://api.github.com/repos/innogames/igvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/innogames/igvm/labels{/name}","releases_url":"https://api.github.com/repos/innogames/igvm/releases{/id}","deployments_url":"https://api.github.com/repos/innogames/igvm/deployments","created_at":"2018-02-15T11:07:27Z","updated_at":"2018-09-21T13:28:20Z","pushed_at":"2018-09-27T12:41:57Z","git_url":"git://github.com/innogames/igvm.git","ssh_url":"git@github.com:innogames/igvm.git","clone_url":"https://github.com/innogames/igvm.git","svn_url":"https://github.com/innogames/igvm","homepage":null,"size":846,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":4,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/innogames/igvm/pulls/83"},"html":{"href":"https://github.com/innogames/igvm/pull/83"},"issue":{"href":"https://api.github.com/repos/innogames/igvm/issues/83"},"comments":{"href":"https://api.github.com/repos/innogames/igvm/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/innogames/igvm/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/innogames/igvm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/innogames/igvm/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/innogames/igvm/statuses/645da21e9d01fc43ab45abac2a7e0ab937ad30c5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"HerrSpace"}}