{"action":"created","comment":{"url":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/comments/93856055","pull_request_review_id":14389580,"id":93856055,"diff_hunk":"@@ -366,6 +375,27 @@ def on_sync_object(self, data):\n                 \" received for %s\" % data['type']\n             )\n \n+    def _get_utilization_data(self):\n+        from ceph_argparse import json_command\n+        import rados\n+        cluster_handle = rados.Rados(\n+            name=ceph.RADOS_NAME,\n+            clustername=self.name,\n+            conffile=''\n+        )\n+        cluster_handle.connect()\n+        prefix = 'df'\n+        ret, outbuf, outs = json_command(\n+            cluster_handle,\n+            prefix=prefix,\n+            argdict={'format': 'json'},","path":"tendrl/ceph_integration/manager/cluster_monitor.py","position":42,"original_position":42,"commit_id":"58745c311d5cf895c67e70a94727ff799b71034c","original_commit_id":"58745c311d5cf895c67e70a94727ff799b71034c","user":{"login":"anmolbabu","id":3525639,"avatar_url":"https://avatars.githubusercontent.com/u/3525639?v=3","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false},"body":"format json doesn't provide total pool capacity and even % used We might need to use the plain normal command ceph df and parse the command output as a string.","created_at":"2016-12-26T09:49:59Z","updated_at":"2016-12-26T09:53:30Z","html_url":"https://github.com/Tendrl/ceph_integration/pull/65#discussion_r93856055","pull_request_url":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/comments/93856055"},"html":{"href":"https://github.com/Tendrl/ceph_integration/pull/65#discussion_r93856055"},"pull_request":{"href":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/65","id":99208418,"html_url":"https://github.com/Tendrl/ceph_integration/pull/65","diff_url":"https://github.com/Tendrl/ceph_integration/pull/65.diff","patch_url":"https://github.com/Tendrl/ceph_integration/pull/65.patch","issue_url":"https://api.github.com/repos/Tendrl/ceph_integration/issues/65","number":65,"state":"open","locked":false,"title":"Fetch and add pool utilization while cluster sync","user":{"login":"shtripat","id":6771252,"avatar_url":"https://avatars.githubusercontent.com/u/6771252?v=3","gravatar_id":"","url":"https://api.github.com/users/shtripat","html_url":"https://github.com/shtripat","followers_url":"https://api.github.com/users/shtripat/followers","following_url":"https://api.github.com/users/shtripat/following{/other_user}","gists_url":"https://api.github.com/users/shtripat/gists{/gist_id}","starred_url":"https://api.github.com/users/shtripat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shtripat/subscriptions","organizations_url":"https://api.github.com/users/shtripat/orgs","repos_url":"https://api.github.com/users/shtripat/repos","events_url":"https://api.github.com/users/shtripat/events{/privacy}","received_events_url":"https://api.github.com/users/shtripat/received_events","type":"User","site_admin":false},"body":"tendrl-spec: ceph_pool_usage_data\r\ntendrl-bug-id: Tendrl/ceph_integration#80\r\n\r\nSigned-off-by: Shubhendu <shtripat@redhat.com>","created_at":"2016-12-23T06:51:07Z","updated_at":"2016-12-26T09:53:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5e467509f8d3217277ab5fd8297af9739ecf87c","assignee":{"login":"shtripat","id":6771252,"avatar_url":"https://avatars.githubusercontent.com/u/6771252?v=3","gravatar_id":"","url":"https://api.github.com/users/shtripat","html_url":"https://github.com/shtripat","followers_url":"https://api.github.com/users/shtripat/followers","following_url":"https://api.github.com/users/shtripat/following{/other_user}","gists_url":"https://api.github.com/users/shtripat/gists{/gist_id}","starred_url":"https://api.github.com/users/shtripat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shtripat/subscriptions","organizations_url":"https://api.github.com/users/shtripat/orgs","repos_url":"https://api.github.com/users/shtripat/repos","events_url":"https://api.github.com/users/shtripat/events{/privacy}","received_events_url":"https://api.github.com/users/shtripat/received_events","type":"User","site_admin":false},"assignees":[{"login":"shtripat","id":6771252,"avatar_url":"https://avatars.githubusercontent.com/u/6771252?v=3","gravatar_id":"","url":"https://api.github.com/users/shtripat","html_url":"https://github.com/shtripat","followers_url":"https://api.github.com/users/shtripat/followers","following_url":"https://api.github.com/users/shtripat/following{/other_user}","gists_url":"https://api.github.com/users/shtripat/gists{/gist_id}","starred_url":"https://api.github.com/users/shtripat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shtripat/subscriptions","organizations_url":"https://api.github.com/users/shtripat/orgs","repos_url":"https://api.github.com/users/shtripat/repos","events_url":"https://api.github.com/users/shtripat/events{/privacy}","received_events_url":"https://api.github.com/users/shtripat/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/65/commits","review_comments_url":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/65/comments","review_comment_url":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tendrl/ceph_integration/issues/65/comments","statuses_url":"https://api.github.com/repos/Tendrl/ceph_integration/statuses/58745c311d5cf895c67e70a94727ff799b71034c","head":{"label":"shtripat:pool-util","ref":"pool-util","sha":"58745c311d5cf895c67e70a94727ff799b71034c","user":{"login":"shtripat","id":6771252,"avatar_url":"https://avatars.githubusercontent.com/u/6771252?v=3","gravatar_id":"","url":"https://api.github.com/users/shtripat","html_url":"https://github.com/shtripat","followers_url":"https://api.github.com/users/shtripat/followers","following_url":"https://api.github.com/users/shtripat/following{/other_user}","gists_url":"https://api.github.com/users/shtripat/gists{/gist_id}","starred_url":"https://api.github.com/users/shtripat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shtripat/subscriptions","organizations_url":"https://api.github.com/users/shtripat/orgs","repos_url":"https://api.github.com/users/shtripat/repos","events_url":"https://api.github.com/users/shtripat/events{/privacy}","received_events_url":"https://api.github.com/users/shtripat/received_events","type":"User","site_admin":false},"repo":{"id":69222760,"name":"ceph_bridge","full_name":"shtripat/ceph_bridge","owner":{"login":"shtripat","id":6771252,"avatar_url":"https://avatars.githubusercontent.com/u/6771252?v=3","gravatar_id":"","url":"https://api.github.com/users/shtripat","html_url":"https://github.com/shtripat","followers_url":"https://api.github.com/users/shtripat/followers","following_url":"https://api.github.com/users/shtripat/following{/other_user}","gists_url":"https://api.github.com/users/shtripat/gists{/gist_id}","starred_url":"https://api.github.com/users/shtripat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shtripat/subscriptions","organizations_url":"https://api.github.com/users/shtripat/orgs","repos_url":"https://api.github.com/users/shtripat/repos","events_url":"https://api.github.com/users/shtripat/events{/privacy}","received_events_url":"https://api.github.com/users/shtripat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shtripat/ceph_bridge","description":"Extracts all data from a Ceph cluster for consumption by Tendrl","fork":true,"url":"https://api.github.com/repos/shtripat/ceph_bridge","forks_url":"https://api.github.com/repos/shtripat/ceph_bridge/forks","keys_url":"https://api.github.com/repos/shtripat/ceph_bridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shtripat/ceph_bridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shtripat/ceph_bridge/teams","hooks_url":"https://api.github.com/repos/shtripat/ceph_bridge/hooks","issue_events_url":"https://api.github.com/repos/shtripat/ceph_bridge/issues/events{/number}","events_url":"https://api.github.com/repos/shtripat/ceph_bridge/events","assignees_url":"https://api.github.com/repos/shtripat/ceph_bridge/assignees{/user}","branches_url":"https://api.github.com/repos/shtripat/ceph_bridge/branches{/branch}","tags_url":"https://api.github.com/repos/shtripat/ceph_bridge/tags","blobs_url":"https://api.github.com/repos/shtripat/ceph_bridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shtripat/ceph_bridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shtripat/ceph_bridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/shtripat/ceph_bridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shtripat/ceph_bridge/statuses/{sha}","languages_url":"https://api.github.com/repos/shtripat/ceph_bridge/languages","stargazers_url":"https://api.github.com/repos/shtripat/ceph_bridge/stargazers","contributors_url":"https://api.github.com/repos/shtripat/ceph_bridge/contributors","subscribers_url":"https://api.github.com/repos/shtripat/ceph_bridge/subscribers","subscription_url":"https://api.github.com/repos/shtripat/ceph_bridge/subscription","commits_url":"https://api.github.com/repos/shtripat/ceph_bridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/shtripat/ceph_bridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/shtripat/ceph_bridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/shtripat/ceph_bridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/shtripat/ceph_bridge/contents/{+path}","compare_url":"https://api.github.com/repos/shtripat/ceph_bridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shtripat/ceph_bridge/merges","archive_url":"https://api.github.com/repos/shtripat/ceph_bridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shtripat/ceph_bridge/downloads","issues_url":"https://api.github.com/repos/shtripat/ceph_bridge/issues{/number}","pulls_url":"https://api.github.com/repos/shtripat/ceph_bridge/pulls{/number}","milestones_url":"https://api.github.com/repos/shtripat/ceph_bridge/milestones{/number}","notifications_url":"https://api.github.com/repos/shtripat/ceph_bridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shtripat/ceph_bridge/labels{/name}","releases_url":"https://api.github.com/repos/shtripat/ceph_bridge/releases{/id}","deployments_url":"https://api.github.com/repos/shtripat/ceph_bridge/deployments","created_at":"2016-09-26T07:06:53Z","updated_at":"2016-09-26T07:06:54Z","pushed_at":"2016-12-23T06:50:22Z","git_url":"git://github.com/shtripat/ceph_bridge.git","ssh_url":"git@github.com:shtripat/ceph_bridge.git","clone_url":"https://github.com/shtripat/ceph_bridge.git","svn_url":"https://github.com/shtripat/ceph_bridge","homepage":"","size":21925,"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":"Tendrl:master","ref":"master","sha":"0074ca63106bc62498e0a3bcdca4bbbe53c82c12","user":{"login":"Tendrl","id":19151627,"avatar_url":"https://avatars.githubusercontent.com/u/19151627?v=3","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"repo":{"id":67229682,"name":"ceph_integration","full_name":"Tendrl/ceph_integration","owner":{"login":"Tendrl","id":19151627,"avatar_url":"https://avatars.githubusercontent.com/u/19151627?v=3","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tendrl/ceph_integration","description":"Extracts all data from a Ceph cluster for consumption by Tendrl","fork":true,"url":"https://api.github.com/repos/Tendrl/ceph_integration","forks_url":"https://api.github.com/repos/Tendrl/ceph_integration/forks","keys_url":"https://api.github.com/repos/Tendrl/ceph_integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tendrl/ceph_integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tendrl/ceph_integration/teams","hooks_url":"https://api.github.com/repos/Tendrl/ceph_integration/hooks","issue_events_url":"https://api.github.com/repos/Tendrl/ceph_integration/issues/events{/number}","events_url":"https://api.github.com/repos/Tendrl/ceph_integration/events","assignees_url":"https://api.github.com/repos/Tendrl/ceph_integration/assignees{/user}","branches_url":"https://api.github.com/repos/Tendrl/ceph_integration/branches{/branch}","tags_url":"https://api.github.com/repos/Tendrl/ceph_integration/tags","blobs_url":"https://api.github.com/repos/Tendrl/ceph_integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tendrl/ceph_integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tendrl/ceph_integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tendrl/ceph_integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tendrl/ceph_integration/statuses/{sha}","languages_url":"https://api.github.com/repos/Tendrl/ceph_integration/languages","stargazers_url":"https://api.github.com/repos/Tendrl/ceph_integration/stargazers","contributors_url":"https://api.github.com/repos/Tendrl/ceph_integration/contributors","subscribers_url":"https://api.github.com/repos/Tendrl/ceph_integration/subscribers","subscription_url":"https://api.github.com/repos/Tendrl/ceph_integration/subscription","commits_url":"https://api.github.com/repos/Tendrl/ceph_integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tendrl/ceph_integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tendrl/ceph_integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tendrl/ceph_integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tendrl/ceph_integration/contents/{+path}","compare_url":"https://api.github.com/repos/Tendrl/ceph_integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tendrl/ceph_integration/merges","archive_url":"https://api.github.com/repos/Tendrl/ceph_integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tendrl/ceph_integration/downloads","issues_url":"https://api.github.com/repos/Tendrl/ceph_integration/issues{/number}","pulls_url":"https://api.github.com/repos/Tendrl/ceph_integration/pulls{/number}","milestones_url":"https://api.github.com/repos/Tendrl/ceph_integration/milestones{/number}","notifications_url":"https://api.github.com/repos/Tendrl/ceph_integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tendrl/ceph_integration/labels{/name}","releases_url":"https://api.github.com/repos/Tendrl/ceph_integration/releases{/id}","deployments_url":"https://api.github.com/repos/Tendrl/ceph_integration/deployments","created_at":"2016-09-02T14:32:40Z","updated_at":"2016-11-17T14:18:11Z","pushed_at":"2016-12-23T06:51:08Z","git_url":"git://github.com/Tendrl/ceph_integration.git","ssh_url":"git@github.com:Tendrl/ceph_integration.git","clone_url":"https://github.com/Tendrl/ceph_integration.git","svn_url":"https://github.com/Tendrl/ceph_integration","homepage":"","size":21902,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":13,"forks":9,"open_issues":13,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/65"},"html":{"href":"https://github.com/Tendrl/ceph_integration/pull/65"},"issue":{"href":"https://api.github.com/repos/Tendrl/ceph_integration/issues/65"},"comments":{"href":"https://api.github.com/repos/Tendrl/ceph_integration/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tendrl/ceph_integration/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/Tendrl/ceph_integration/statuses/58745c311d5cf895c67e70a94727ff799b71034c"}}}}
{"actor":{"display_login":"anmolbabu"}}