{"action":"created","comment":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments/27257961","id":27257961,"diff_hunk":"@@ -583,6 +583,27 @@ def attach_volume_to_instance(self, instance, volume):\n     def dissociate_floatingip(self, instance_id, floatingip):\n         self.nova_client.servers.remove_floating_ip(instance_id, floatingip)\n \n+    def get_hypervisor_statistics(self):\n+        return self.nova_client.hypervisors.statistics()\n+\n     def get_hypervisors(self):\n         return [hypervisor.host_ip for hypervisor in\n                 self.nova_client.hypervisors.list()]\n+\n+    def get_free_vcpus(self):\n+        hypervisor_statistics = self.get_hypervisor_statistics()\n+        return hypervisor_statistics.vcpus * float(","path":"cloudferrylib/os/compute/nova_compute.py","position":13,"original_position":13,"commit_id":"9552c8338e641f84df7ebfec553b707645f11027","original_commit_id":"9552c8338e641f84df7ebfec553b707645f11027","user":{"login":"miarmak","id":3357550,"avatar_url":"https://avatars.githubusercontent.com/u/3357550?v=3","gravatar_id":"","url":"https://api.github.com/users/miarmak","html_url":"https://github.com/miarmak","followers_url":"https://api.github.com/users/miarmak/followers","following_url":"https://api.github.com/users/miarmak/following{/other_user}","gists_url":"https://api.github.com/users/miarmak/gists{/gist_id}","starred_url":"https://api.github.com/users/miarmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miarmak/subscriptions","organizations_url":"https://api.github.com/users/miarmak/orgs","repos_url":"https://api.github.com/users/miarmak/repos","events_url":"https://api.github.com/users/miarmak/events{/privacy}","received_events_url":"https://api.github.com/users/miarmak/received_events","type":"User","site_admin":false},"body":"I guess here we will not need type conversions, if have it defined in config options.","created_at":"2015-03-26T21:27:43Z","updated_at":"2015-03-26T21:27:43Z","html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/118#discussion_r27257961","pull_request_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/118","_links":{"self":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments/27257961"},"html":{"href":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/118#discussion_r27257961"},"pull_request":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/118"}}},"pull_request":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/118","id":31172863,"html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/118","diff_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/118.diff","patch_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/118.patch","issue_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/118","number":118,"state":"open","locked":false,"title":"[SAIC-19] Cpu check","user":{"login":"Settis","id":1427656,"avatar_url":"https://avatars.githubusercontent.com/u/1427656?v=3","gravatar_id":"","url":"https://api.github.com/users/Settis","html_url":"https://github.com/Settis","followers_url":"https://api.github.com/users/Settis/followers","following_url":"https://api.github.com/users/Settis/following{/other_user}","gists_url":"https://api.github.com/users/Settis/gists{/gist_id}","starred_url":"https://api.github.com/users/Settis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Settis/subscriptions","organizations_url":"https://api.github.com/users/Settis/orgs","repos_url":"https://api.github.com/users/Settis/repos","events_url":"https://api.github.com/users/Settis/events{/privacy}","received_events_url":"https://api.github.com/users/Settis/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-13T23:40:24Z","updated_at":"2015-03-26T21:27:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a75eb0489d28f4ed05a3875205286ddcc3abe5cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/118/commits","review_comments_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/118/comments","review_comment_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/118/comments","statuses_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/statuses/9552c8338e641f84df7ebfec553b707645f11027","head":{"label":"Settis:cpuCheck","ref":"cpuCheck","sha":"9552c8338e641f84df7ebfec553b707645f11027","user":{"login":"Settis","id":1427656,"avatar_url":"https://avatars.githubusercontent.com/u/1427656?v=3","gravatar_id":"","url":"https://api.github.com/users/Settis","html_url":"https://github.com/Settis","followers_url":"https://api.github.com/users/Settis/followers","following_url":"https://api.github.com/users/Settis/following{/other_user}","gists_url":"https://api.github.com/users/Settis/gists{/gist_id}","starred_url":"https://api.github.com/users/Settis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Settis/subscriptions","organizations_url":"https://api.github.com/users/Settis/orgs","repos_url":"https://api.github.com/users/Settis/repos","events_url":"https://api.github.com/users/Settis/events{/privacy}","received_events_url":"https://api.github.com/users/Settis/received_events","type":"User","site_admin":false},"repo":{"id":30263000,"name":"CloudFerry","full_name":"Settis/CloudFerry","owner":{"login":"Settis","id":1427656,"avatar_url":"https://avatars.githubusercontent.com/u/1427656?v=3","gravatar_id":"","url":"https://api.github.com/users/Settis","html_url":"https://github.com/Settis","followers_url":"https://api.github.com/users/Settis/followers","following_url":"https://api.github.com/users/Settis/following{/other_user}","gists_url":"https://api.github.com/users/Settis/gists{/gist_id}","starred_url":"https://api.github.com/users/Settis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Settis/subscriptions","organizations_url":"https://api.github.com/users/Settis/orgs","repos_url":"https://api.github.com/users/Settis/repos","events_url":"https://api.github.com/users/Settis/events{/privacy}","received_events_url":"https://api.github.com/users/Settis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Settis/CloudFerry","description":"CloudFerry is a cloud virtual workloads migration tool designed and developed by Mirantis Inc. ","fork":true,"url":"https://api.github.com/repos/Settis/CloudFerry","forks_url":"https://api.github.com/repos/Settis/CloudFerry/forks","keys_url":"https://api.github.com/repos/Settis/CloudFerry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Settis/CloudFerry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Settis/CloudFerry/teams","hooks_url":"https://api.github.com/repos/Settis/CloudFerry/hooks","issue_events_url":"https://api.github.com/repos/Settis/CloudFerry/issues/events{/number}","events_url":"https://api.github.com/repos/Settis/CloudFerry/events","assignees_url":"https://api.github.com/repos/Settis/CloudFerry/assignees{/user}","branches_url":"https://api.github.com/repos/Settis/CloudFerry/branches{/branch}","tags_url":"https://api.github.com/repos/Settis/CloudFerry/tags","blobs_url":"https://api.github.com/repos/Settis/CloudFerry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Settis/CloudFerry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Settis/CloudFerry/git/refs{/sha}","trees_url":"https://api.github.com/repos/Settis/CloudFerry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Settis/CloudFerry/statuses/{sha}","languages_url":"https://api.github.com/repos/Settis/CloudFerry/languages","stargazers_url":"https://api.github.com/repos/Settis/CloudFerry/stargazers","contributors_url":"https://api.github.com/repos/Settis/CloudFerry/contributors","subscribers_url":"https://api.github.com/repos/Settis/CloudFerry/subscribers","subscription_url":"https://api.github.com/repos/Settis/CloudFerry/subscription","commits_url":"https://api.github.com/repos/Settis/CloudFerry/commits{/sha}","git_commits_url":"https://api.github.com/repos/Settis/CloudFerry/git/commits{/sha}","comments_url":"https://api.github.com/repos/Settis/CloudFerry/comments{/number}","issue_comment_url":"https://api.github.com/repos/Settis/CloudFerry/issues/comments{/number}","contents_url":"https://api.github.com/repos/Settis/CloudFerry/contents/{+path}","compare_url":"https://api.github.com/repos/Settis/CloudFerry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Settis/CloudFerry/merges","archive_url":"https://api.github.com/repos/Settis/CloudFerry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Settis/CloudFerry/downloads","issues_url":"https://api.github.com/repos/Settis/CloudFerry/issues{/number}","pulls_url":"https://api.github.com/repos/Settis/CloudFerry/pulls{/number}","milestones_url":"https://api.github.com/repos/Settis/CloudFerry/milestones{/number}","notifications_url":"https://api.github.com/repos/Settis/CloudFerry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Settis/CloudFerry/labels{/name}","releases_url":"https://api.github.com/repos/Settis/CloudFerry/releases{/id}","created_at":"2015-02-03T20:31:14Z","updated_at":"2015-02-03T20:31:15Z","pushed_at":"2015-03-26T03:42:19Z","git_url":"git://github.com/Settis/CloudFerry.git","ssh_url":"git@github.com:Settis/CloudFerry.git","clone_url":"https://github.com/Settis/CloudFerry.git","svn_url":"https://github.com/Settis/CloudFerry","homepage":null,"size":1080,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"MirantisWorkloadMobility:devel","ref":"devel","sha":"1243b6e1fc541e374f899a472b8ad4013d6cfb9d","user":{"login":"MirantisWorkloadMobility","id":8500817,"avatar_url":"https://avatars.githubusercontent.com/u/8500817?v=3","gravatar_id":"","url":"https://api.github.com/users/MirantisWorkloadMobility","html_url":"https://github.com/MirantisWorkloadMobility","followers_url":"https://api.github.com/users/MirantisWorkloadMobility/followers","following_url":"https://api.github.com/users/MirantisWorkloadMobility/following{/other_user}","gists_url":"https://api.github.com/users/MirantisWorkloadMobility/gists{/gist_id}","starred_url":"https://api.github.com/users/MirantisWorkloadMobility/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MirantisWorkloadMobility/subscriptions","organizations_url":"https://api.github.com/users/MirantisWorkloadMobility/orgs","repos_url":"https://api.github.com/users/MirantisWorkloadMobility/repos","events_url":"https://api.github.com/users/MirantisWorkloadMobility/events{/privacy}","received_events_url":"https://api.github.com/users/MirantisWorkloadMobility/received_events","type":"User","site_admin":false},"repo":{"id":23142392,"name":"CloudFerry","full_name":"MirantisWorkloadMobility/CloudFerry","owner":{"login":"MirantisWorkloadMobility","id":8500817,"avatar_url":"https://avatars.githubusercontent.com/u/8500817?v=3","gravatar_id":"","url":"https://api.github.com/users/MirantisWorkloadMobility","html_url":"https://github.com/MirantisWorkloadMobility","followers_url":"https://api.github.com/users/MirantisWorkloadMobility/followers","following_url":"https://api.github.com/users/MirantisWorkloadMobility/following{/other_user}","gists_url":"https://api.github.com/users/MirantisWorkloadMobility/gists{/gist_id}","starred_url":"https://api.github.com/users/MirantisWorkloadMobility/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MirantisWorkloadMobility/subscriptions","organizations_url":"https://api.github.com/users/MirantisWorkloadMobility/orgs","repos_url":"https://api.github.com/users/MirantisWorkloadMobility/repos","events_url":"https://api.github.com/users/MirantisWorkloadMobility/events{/privacy}","received_events_url":"https://api.github.com/users/MirantisWorkloadMobility/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry","description":"CloudFerry is a cloud virtual workloads migration tool designed and developed by Mirantis Inc. ","fork":false,"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry","forks_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/forks","keys_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/teams","hooks_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/hooks","issue_events_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/events{/number}","events_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/events","assignees_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/assignees{/user}","branches_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/branches{/branch}","tags_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/tags","blobs_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/refs{/sha}","trees_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/statuses/{sha}","languages_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/languages","stargazers_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/stargazers","contributors_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/contributors","subscribers_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/subscribers","subscription_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/subscription","commits_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/commits{/sha}","git_commits_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/commits{/sha}","comments_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/comments{/number}","issue_comment_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/comments{/number}","contents_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/contents/{+path}","compare_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/merges","archive_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/downloads","issues_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues{/number}","pulls_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls{/number}","milestones_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/milestones{/number}","notifications_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/labels{/name}","releases_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/releases{/id}","created_at":"2014-08-20T09:00:38Z","updated_at":"2015-03-24T23:32:05Z","pushed_at":"2015-03-26T21:27:34Z","git_url":"git://github.com/MirantisWorkloadMobility/CloudFerry.git","ssh_url":"git@github.com:MirantisWorkloadMobility/CloudFerry.git","clone_url":"https://github.com/MirantisWorkloadMobility/CloudFerry.git","svn_url":"https://github.com/MirantisWorkloadMobility/CloudFerry","homepage":null,"size":2498,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":11,"forks":12,"open_issues":11,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/118"},"html":{"href":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/118"},"issue":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/118"},"comments":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/statuses/9552c8338e641f84df7ebfec553b707645f11027"}}}}