{"action":"created","comment":{"url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/comments/40308325","id":40308325,"diff_hunk":"@@ -22,13 +24,23 @@ def connect\n       end\n \n       def filter_machines_to_be_scheduled(\n-            queued_machines: Compute.queued.where(provider_name: 'v_sphere'),\n-            alive_machines: Compute.alive_vm.where(provider_name: 'v_sphere').order(:created_at)\n+        queued_machines: Compute.queued.where(provider_name: 'v_sphere'),\n+        alive_machines: Compute.alive_vm.where(provider_name: 'v_sphere').order(:created_at)\n       )\n         queued_machines.limit([0, VSphereConfig.scheduler.max_vm - alive_machines.count].max)\n       end\n     end\n \n+    #custom exception raised when VmWare task to add machine to drs rule fails\n+    class MachineNotAddedToDrsRule < RuntimeError\n+    end\n+\n+    class MachineCreationFailed < RuntimeError\n+    end\n+\n+    class MachinePoweringOnFailed < RuntimeError","path":"lib/lab_manager/provider/vsphere.rb","position":29,"original_position":29,"commit_id":"ae9dbd0238b1077250659a6249a642867349f1ab","original_commit_id":"ae9dbd0238b1077250659a6249a642867349f1ab","user":{"login":"lksv","id":1152494,"avatar_url":"https://avatars.githubusercontent.com/u/1152494?v=3","gravatar_id":"","url":"https://api.github.com/users/lksv","html_url":"https://github.com/lksv","followers_url":"https://api.github.com/users/lksv/followers","following_url":"https://api.github.com/users/lksv/following{/other_user}","gists_url":"https://api.github.com/users/lksv/gists{/gist_id}","starred_url":"https://api.github.com/users/lksv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lksv/subscriptions","organizations_url":"https://api.github.com/users/lksv/orgs","repos_url":"https://api.github.com/users/lksv/repos","events_url":"https://api.github.com/users/lksv/events{/privacy}","received_events_url":"https://api.github.com/users/lksv/received_events","type":"User","site_admin":false},"body":"PowerOnFailed","created_at":"2015-09-24T11:20:54Z","updated_at":"2015-09-24T11:20:54Z","html_url":"https://github.com/AVGTechnologies/lab_manager/pull/10#discussion_r40308325","pull_request_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/comments/40308325"},"html":{"href":"https://github.com/AVGTechnologies/lab_manager/pull/10#discussion_r40308325"},"pull_request":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/10","id":45883160,"html_url":"https://github.com/AVGTechnologies/lab_manager/pull/10","diff_url":"https://github.com/AVGTechnologies/lab_manager/pull/10.diff","patch_url":"https://github.com/AVGTechnologies/lab_manager/pull/10.patch","issue_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/10","number":10,"state":"open","locked":false,"title":"feature: vmware provider: create_vm and power_on","user":{"login":"ireznice","id":8779206,"avatar_url":"https://avatars.githubusercontent.com/u/8779206?v=3","gravatar_id":"","url":"https://api.github.com/users/ireznice","html_url":"https://github.com/ireznice","followers_url":"https://api.github.com/users/ireznice/followers","following_url":"https://api.github.com/users/ireznice/following{/other_user}","gists_url":"https://api.github.com/users/ireznice/gists{/gist_id}","starred_url":"https://api.github.com/users/ireznice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ireznice/subscriptions","organizations_url":"https://api.github.com/users/ireznice/orgs","repos_url":"https://api.github.com/users/ireznice/repos","events_url":"https://api.github.com/users/ireznice/events{/privacy}","received_events_url":"https://api.github.com/users/ireznice/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-24T10:52:00Z","updated_at":"2015-09-24T11:20:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e38624d27e1fbd24f076de5c3d1047f12fbb1f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/10/commits","review_comments_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/10/comments","review_comment_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/10/comments","statuses_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/statuses/ae9dbd0238b1077250659a6249a642867349f1ab","head":{"label":"ireznice:ir_vmware","ref":"ir_vmware","sha":"ae9dbd0238b1077250659a6249a642867349f1ab","user":{"login":"ireznice","id":8779206,"avatar_url":"https://avatars.githubusercontent.com/u/8779206?v=3","gravatar_id":"","url":"https://api.github.com/users/ireznice","html_url":"https://github.com/ireznice","followers_url":"https://api.github.com/users/ireznice/followers","following_url":"https://api.github.com/users/ireznice/following{/other_user}","gists_url":"https://api.github.com/users/ireznice/gists{/gist_id}","starred_url":"https://api.github.com/users/ireznice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ireznice/subscriptions","organizations_url":"https://api.github.com/users/ireznice/orgs","repos_url":"https://api.github.com/users/ireznice/repos","events_url":"https://api.github.com/users/ireznice/events{/privacy}","received_events_url":"https://api.github.com/users/ireznice/received_events","type":"User","site_admin":false},"repo":{"id":42052522,"name":"lab_manager","full_name":"ireznice/lab_manager","owner":{"login":"ireznice","id":8779206,"avatar_url":"https://avatars.githubusercontent.com/u/8779206?v=3","gravatar_id":"","url":"https://api.github.com/users/ireznice","html_url":"https://github.com/ireznice","followers_url":"https://api.github.com/users/ireznice/followers","following_url":"https://api.github.com/users/ireznice/following{/other_user}","gists_url":"https://api.github.com/users/ireznice/gists{/gist_id}","starred_url":"https://api.github.com/users/ireznice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ireznice/subscriptions","organizations_url":"https://api.github.com/users/ireznice/orgs","repos_url":"https://api.github.com/users/ireznice/repos","events_url":"https://api.github.com/users/ireznice/events{/privacy}","received_events_url":"https://api.github.com/users/ireznice/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ireznice/lab_manager","description":"","fork":true,"url":"https://api.github.com/repos/ireznice/lab_manager","forks_url":"https://api.github.com/repos/ireznice/lab_manager/forks","keys_url":"https://api.github.com/repos/ireznice/lab_manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ireznice/lab_manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ireznice/lab_manager/teams","hooks_url":"https://api.github.com/repos/ireznice/lab_manager/hooks","issue_events_url":"https://api.github.com/repos/ireznice/lab_manager/issues/events{/number}","events_url":"https://api.github.com/repos/ireznice/lab_manager/events","assignees_url":"https://api.github.com/repos/ireznice/lab_manager/assignees{/user}","branches_url":"https://api.github.com/repos/ireznice/lab_manager/branches{/branch}","tags_url":"https://api.github.com/repos/ireznice/lab_manager/tags","blobs_url":"https://api.github.com/repos/ireznice/lab_manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ireznice/lab_manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ireznice/lab_manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/ireznice/lab_manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ireznice/lab_manager/statuses/{sha}","languages_url":"https://api.github.com/repos/ireznice/lab_manager/languages","stargazers_url":"https://api.github.com/repos/ireznice/lab_manager/stargazers","contributors_url":"https://api.github.com/repos/ireznice/lab_manager/contributors","subscribers_url":"https://api.github.com/repos/ireznice/lab_manager/subscribers","subscription_url":"https://api.github.com/repos/ireznice/lab_manager/subscription","commits_url":"https://api.github.com/repos/ireznice/lab_manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/ireznice/lab_manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/ireznice/lab_manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/ireznice/lab_manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/ireznice/lab_manager/contents/{+path}","compare_url":"https://api.github.com/repos/ireznice/lab_manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ireznice/lab_manager/merges","archive_url":"https://api.github.com/repos/ireznice/lab_manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ireznice/lab_manager/downloads","issues_url":"https://api.github.com/repos/ireznice/lab_manager/issues{/number}","pulls_url":"https://api.github.com/repos/ireznice/lab_manager/pulls{/number}","milestones_url":"https://api.github.com/repos/ireznice/lab_manager/milestones{/number}","notifications_url":"https://api.github.com/repos/ireznice/lab_manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ireznice/lab_manager/labels{/name}","releases_url":"https://api.github.com/repos/ireznice/lab_manager/releases{/id}","created_at":"2015-09-07T12:45:43Z","updated_at":"2015-09-07T12:45:43Z","pushed_at":"2015-09-24T10:50:49Z","git_url":"git://github.com/ireznice/lab_manager.git","ssh_url":"git@github.com:ireznice/lab_manager.git","clone_url":"https://github.com/ireznice/lab_manager.git","svn_url":"https://github.com/ireznice/lab_manager","homepage":null,"size":217,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"AVGTechnologies:master","ref":"master","sha":"c156bbff38b60dff3e7fe8a757ceae6bd73bc2eb","user":{"login":"AVGTechnologies","id":13526630,"avatar_url":"https://avatars.githubusercontent.com/u/13526630?v=3","gravatar_id":"","url":"https://api.github.com/users/AVGTechnologies","html_url":"https://github.com/AVGTechnologies","followers_url":"https://api.github.com/users/AVGTechnologies/followers","following_url":"https://api.github.com/users/AVGTechnologies/following{/other_user}","gists_url":"https://api.github.com/users/AVGTechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/AVGTechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AVGTechnologies/subscriptions","organizations_url":"https://api.github.com/users/AVGTechnologies/orgs","repos_url":"https://api.github.com/users/AVGTechnologies/repos","events_url":"https://api.github.com/users/AVGTechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/AVGTechnologies/received_events","type":"Organization","site_admin":false},"repo":{"id":41104766,"name":"lab_manager","full_name":"AVGTechnologies/lab_manager","owner":{"login":"AVGTechnologies","id":13526630,"avatar_url":"https://avatars.githubusercontent.com/u/13526630?v=3","gravatar_id":"","url":"https://api.github.com/users/AVGTechnologies","html_url":"https://github.com/AVGTechnologies","followers_url":"https://api.github.com/users/AVGTechnologies/followers","following_url":"https://api.github.com/users/AVGTechnologies/following{/other_user}","gists_url":"https://api.github.com/users/AVGTechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/AVGTechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AVGTechnologies/subscriptions","organizations_url":"https://api.github.com/users/AVGTechnologies/orgs","repos_url":"https://api.github.com/users/AVGTechnologies/repos","events_url":"https://api.github.com/users/AVGTechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/AVGTechnologies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AVGTechnologies/lab_manager","description":"","fork":false,"url":"https://api.github.com/repos/AVGTechnologies/lab_manager","forks_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/forks","keys_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/teams","hooks_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/hooks","issue_events_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/events{/number}","events_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/events","assignees_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/assignees{/user}","branches_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/branches{/branch}","tags_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/tags","blobs_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/statuses/{sha}","languages_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/languages","stargazers_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/stargazers","contributors_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/contributors","subscribers_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/subscribers","subscription_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/subscription","commits_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/contents/{+path}","compare_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/merges","archive_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/downloads","issues_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues{/number}","pulls_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls{/number}","milestones_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/milestones{/number}","notifications_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/labels{/name}","releases_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/releases{/id}","created_at":"2015-08-20T15:51:20Z","updated_at":"2015-08-20T15:51:39Z","pushed_at":"2015-09-24T10:52:00Z","git_url":"git://github.com/AVGTechnologies/lab_manager.git","ssh_url":"git@github.com:AVGTechnologies/lab_manager.git","clone_url":"https://github.com/AVGTechnologies/lab_manager.git","svn_url":"https://github.com/AVGTechnologies/lab_manager","homepage":null,"size":370,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/AVGTechnologies/lab_manager/pulls/10"},"html":{"href":"https://github.com/AVGTechnologies/lab_manager/pull/10"},"issue":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/10"},"comments":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/statuses/ae9dbd0238b1077250659a6249a642867349f1ab"}}}}