{"action":"created","comment":{"url":"https://api.github.com/repos/openvstorage/framework/pulls/comments/78534123","id":78534123,"diff_hunk":"@@ -129,24 +129,14 @@ def extend(vdisk_guid, volume_size):\n         Extend a vdisk through API\n         :param vdisk_guid: Guid of the vdisk to extend\n         :type vdisk_guid: str\n-        :param volume_size: New size (GB)\n+        :param volume_size: New size in bytes\n         :type volume_size: int\n         \"\"\"\n         vdisk = VDisk(vdisk_guid)\n-        VDiskController._logger.info('Extending vDisk {0}'.format(vdisk.name))\n-        client = None\n-        storagedriver = None\n-        for sd in vdisk.vpool.storagedrivers:\n-            try:\n-                client = SSHClient(sd.storagerouter)\n-                storagedriver = sd\n-                break\n-            except UnableToConnectException:\n-                pass\n-        if client is None:\n-            raise RuntimeError('Could not connect to any of the nodes serving vDisk {0}'.format(vdisk.name))\n-        client.run('truncate -s {0} {1}/{2}'.format(volume_size, storagedriver.mountpoint, vdisk.devicename.strip('/')))\n-        VDiskController._logger.info('Extended vDisk {0}'.format(vdisk.name))\n+        VDiskController._logger.info('Extending vDisk {0} to {1}B'.format(vdisk.name, volume_size))\n+        vdisk.storagedriver_client.truncate(object_id=str(vdisk.volume_id),","path":"ovs/lib/vdisk.py","position":24,"original_position":24,"commit_id":"b549b1f306908bf87e414fc6cd2cf00abbb02c82","original_commit_id":"b549b1f306908bf87e414fc6cd2cf00abbb02c82","user":{"login":"kvanhijf","id":13535590,"avatar_url":"https://avatars.githubusercontent.com/u/13535590?v=3","gravatar_id":"","url":"https://api.github.com/users/kvanhijf","html_url":"https://github.com/kvanhijf","followers_url":"https://api.github.com/users/kvanhijf/followers","following_url":"https://api.github.com/users/kvanhijf/following{/other_user}","gists_url":"https://api.github.com/users/kvanhijf/gists{/gist_id}","starred_url":"https://api.github.com/users/kvanhijf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvanhijf/subscriptions","organizations_url":"https://api.github.com/users/kvanhijf/orgs","repos_url":"https://api.github.com/users/kvanhijf/repos","events_url":"https://api.github.com/users/kvanhijf/events{/privacy}","received_events_url":"https://api.github.com/users/kvanhijf/received_events","type":"User","site_admin":false},"body":"Check new size is larger than current size?\r\nCheck maximum size of 64TiB?","created_at":"2016-09-13T10:32:43Z","updated_at":"2016-09-13T10:32:43Z","html_url":"https://github.com/openvstorage/framework/pull/894#discussion_r78534123","pull_request_url":"https://api.github.com/repos/openvstorage/framework/pulls/894","_links":{"self":{"href":"https://api.github.com/repos/openvstorage/framework/pulls/comments/78534123"},"html":{"href":"https://github.com/openvstorage/framework/pull/894#discussion_r78534123"},"pull_request":{"href":"https://api.github.com/repos/openvstorage/framework/pulls/894"}}},"pull_request":{"url":"https://api.github.com/repos/openvstorage/framework/pulls/894","id":85022132,"html_url":"https://github.com/openvstorage/framework/pull/894","diff_url":"https://github.com/openvstorage/framework/pull/894.diff","patch_url":"https://github.com/openvstorage/framework/pull/894.patch","issue_url":"https://api.github.com/repos/openvstorage/framework/issues/894","number":894,"state":"open","locked":false,"title":"Extend volumes through the API","user":{"login":"khenderick","id":1453214,"avatar_url":"https://avatars.githubusercontent.com/u/1453214?v=3","gravatar_id":"","url":"https://api.github.com/users/khenderick","html_url":"https://github.com/khenderick","followers_url":"https://api.github.com/users/khenderick/followers","following_url":"https://api.github.com/users/khenderick/following{/other_user}","gists_url":"https://api.github.com/users/khenderick/gists{/gist_id}","starred_url":"https://api.github.com/users/khenderick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khenderick/subscriptions","organizations_url":"https://api.github.com/users/khenderick/orgs","repos_url":"https://api.github.com/users/khenderick/repos","events_url":"https://api.github.com/users/khenderick/events{/privacy}","received_events_url":"https://api.github.com/users/khenderick/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-13T10:26:03Z","updated_at":"2016-09-13T10:32:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b52c3f83c06326292803f21bbddc9fbcab2e484","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openvstorage/framework/pulls/894/commits","review_comments_url":"https://api.github.com/repos/openvstorage/framework/pulls/894/comments","review_comment_url":"https://api.github.com/repos/openvstorage/framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openvstorage/framework/issues/894/comments","statuses_url":"https://api.github.com/repos/openvstorage/framework/statuses/b549b1f306908bf87e414fc6cd2cf00abbb02c82","head":{"label":"openvstorage:extend-volume","ref":"extend-volume","sha":"b549b1f306908bf87e414fc6cd2cf00abbb02c82","user":{"login":"openvstorage","id":12763393,"avatar_url":"https://avatars.githubusercontent.com/u/12763393?v=3","gravatar_id":"","url":"https://api.github.com/users/openvstorage","html_url":"https://github.com/openvstorage","followers_url":"https://api.github.com/users/openvstorage/followers","following_url":"https://api.github.com/users/openvstorage/following{/other_user}","gists_url":"https://api.github.com/users/openvstorage/gists{/gist_id}","starred_url":"https://api.github.com/users/openvstorage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openvstorage/subscriptions","organizations_url":"https://api.github.com/users/openvstorage/orgs","repos_url":"https://api.github.com/users/openvstorage/repos","events_url":"https://api.github.com/users/openvstorage/events{/privacy}","received_events_url":"https://api.github.com/users/openvstorage/received_events","type":"Organization","site_admin":false},"repo":{"id":39504796,"name":"framework","full_name":"openvstorage/framework","owner":{"login":"openvstorage","id":12763393,"avatar_url":"https://avatars.githubusercontent.com/u/12763393?v=3","gravatar_id":"","url":"https://api.github.com/users/openvstorage","html_url":"https://github.com/openvstorage","followers_url":"https://api.github.com/users/openvstorage/followers","following_url":"https://api.github.com/users/openvstorage/following{/other_user}","gists_url":"https://api.github.com/users/openvstorage/gists{/gist_id}","starred_url":"https://api.github.com/users/openvstorage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openvstorage/subscriptions","organizations_url":"https://api.github.com/users/openvstorage/orgs","repos_url":"https://api.github.com/users/openvstorage/repos","events_url":"https://api.github.com/users/openvstorage/events{/privacy}","received_events_url":"https://api.github.com/users/openvstorage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openvstorage/framework","description":"The Framework is a set of components and tools which brings the user an interface (GUI / API) to setup, extend and manage an Open vStorage platform.","fork":false,"url":"https://api.github.com/repos/openvstorage/framework","forks_url":"https://api.github.com/repos/openvstorage/framework/forks","keys_url":"https://api.github.com/repos/openvstorage/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openvstorage/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openvstorage/framework/teams","hooks_url":"https://api.github.com/repos/openvstorage/framework/hooks","issue_events_url":"https://api.github.com/repos/openvstorage/framework/issues/events{/number}","events_url":"https://api.github.com/repos/openvstorage/framework/events","assignees_url":"https://api.github.com/repos/openvstorage/framework/assignees{/user}","branches_url":"https://api.github.com/repos/openvstorage/framework/branches{/branch}","tags_url":"https://api.github.com/repos/openvstorage/framework/tags","blobs_url":"https://api.github.com/repos/openvstorage/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openvstorage/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openvstorage/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/openvstorage/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openvstorage/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/openvstorage/framework/languages","stargazers_url":"https://api.github.com/repos/openvstorage/framework/stargazers","contributors_url":"https://api.github.com/repos/openvstorage/framework/contributors","subscribers_url":"https://api.github.com/repos/openvstorage/framework/subscribers","subscription_url":"https://api.github.com/repos/openvstorage/framework/subscription","commits_url":"https://api.github.com/repos/openvstorage/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/openvstorage/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/openvstorage/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/openvstorage/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/openvstorage/framework/contents/{+path}","compare_url":"https://api.github.com/repos/openvstorage/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openvstorage/framework/merges","archive_url":"https://api.github.com/repos/openvstorage/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openvstorage/framework/downloads","issues_url":"https://api.github.com/repos/openvstorage/framework/issues{/number}","pulls_url":"https://api.github.com/repos/openvstorage/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/openvstorage/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/openvstorage/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openvstorage/framework/labels{/name}","releases_url":"https://api.github.com/repos/openvstorage/framework/releases{/id}","deployments_url":"https://api.github.com/repos/openvstorage/framework/deployments","created_at":"2015-07-22T12:29:15Z","updated_at":"2016-07-05T10:38:20Z","pushed_at":"2016-09-13T10:29:02Z","git_url":"git://github.com/openvstorage/framework.git","ssh_url":"git@github.com:openvstorage/framework.git","clone_url":"https://github.com/openvstorage/framework.git","svn_url":"https://github.com/openvstorage/framework","homepage":"","size":12402,"stargazers_count":16,"watchers_count":16,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":108,"forks":17,"open_issues":108,"watchers":16,"default_branch":"master"}},"base":{"label":"openvstorage:master","ref":"master","sha":"f6124e7572dc56df22b9737a24f878f6bdd72f64","user":{"login":"openvstorage","id":12763393,"avatar_url":"https://avatars.githubusercontent.com/u/12763393?v=3","gravatar_id":"","url":"https://api.github.com/users/openvstorage","html_url":"https://github.com/openvstorage","followers_url":"https://api.github.com/users/openvstorage/followers","following_url":"https://api.github.com/users/openvstorage/following{/other_user}","gists_url":"https://api.github.com/users/openvstorage/gists{/gist_id}","starred_url":"https://api.github.com/users/openvstorage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openvstorage/subscriptions","organizations_url":"https://api.github.com/users/openvstorage/orgs","repos_url":"https://api.github.com/users/openvstorage/repos","events_url":"https://api.github.com/users/openvstorage/events{/privacy}","received_events_url":"https://api.github.com/users/openvstorage/received_events","type":"Organization","site_admin":false},"repo":{"id":39504796,"name":"framework","full_name":"openvstorage/framework","owner":{"login":"openvstorage","id":12763393,"avatar_url":"https://avatars.githubusercontent.com/u/12763393?v=3","gravatar_id":"","url":"https://api.github.com/users/openvstorage","html_url":"https://github.com/openvstorage","followers_url":"https://api.github.com/users/openvstorage/followers","following_url":"https://api.github.com/users/openvstorage/following{/other_user}","gists_url":"https://api.github.com/users/openvstorage/gists{/gist_id}","starred_url":"https://api.github.com/users/openvstorage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openvstorage/subscriptions","organizations_url":"https://api.github.com/users/openvstorage/orgs","repos_url":"https://api.github.com/users/openvstorage/repos","events_url":"https://api.github.com/users/openvstorage/events{/privacy}","received_events_url":"https://api.github.com/users/openvstorage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openvstorage/framework","description":"The Framework is a set of components and tools which brings the user an interface (GUI / API) to setup, extend and manage an Open vStorage platform.","fork":false,"url":"https://api.github.com/repos/openvstorage/framework","forks_url":"https://api.github.com/repos/openvstorage/framework/forks","keys_url":"https://api.github.com/repos/openvstorage/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openvstorage/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openvstorage/framework/teams","hooks_url":"https://api.github.com/repos/openvstorage/framework/hooks","issue_events_url":"https://api.github.com/repos/openvstorage/framework/issues/events{/number}","events_url":"https://api.github.com/repos/openvstorage/framework/events","assignees_url":"https://api.github.com/repos/openvstorage/framework/assignees{/user}","branches_url":"https://api.github.com/repos/openvstorage/framework/branches{/branch}","tags_url":"https://api.github.com/repos/openvstorage/framework/tags","blobs_url":"https://api.github.com/repos/openvstorage/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openvstorage/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openvstorage/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/openvstorage/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openvstorage/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/openvstorage/framework/languages","stargazers_url":"https://api.github.com/repos/openvstorage/framework/stargazers","contributors_url":"https://api.github.com/repos/openvstorage/framework/contributors","subscribers_url":"https://api.github.com/repos/openvstorage/framework/subscribers","subscription_url":"https://api.github.com/repos/openvstorage/framework/subscription","commits_url":"https://api.github.com/repos/openvstorage/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/openvstorage/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/openvstorage/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/openvstorage/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/openvstorage/framework/contents/{+path}","compare_url":"https://api.github.com/repos/openvstorage/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openvstorage/framework/merges","archive_url":"https://api.github.com/repos/openvstorage/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openvstorage/framework/downloads","issues_url":"https://api.github.com/repos/openvstorage/framework/issues{/number}","pulls_url":"https://api.github.com/repos/openvstorage/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/openvstorage/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/openvstorage/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openvstorage/framework/labels{/name}","releases_url":"https://api.github.com/repos/openvstorage/framework/releases{/id}","deployments_url":"https://api.github.com/repos/openvstorage/framework/deployments","created_at":"2015-07-22T12:29:15Z","updated_at":"2016-07-05T10:38:20Z","pushed_at":"2016-09-13T10:29:02Z","git_url":"git://github.com/openvstorage/framework.git","ssh_url":"git@github.com:openvstorage/framework.git","clone_url":"https://github.com/openvstorage/framework.git","svn_url":"https://github.com/openvstorage/framework","homepage":"","size":12402,"stargazers_count":16,"watchers_count":16,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":108,"forks":17,"open_issues":108,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openvstorage/framework/pulls/894"},"html":{"href":"https://github.com/openvstorage/framework/pull/894"},"issue":{"href":"https://api.github.com/repos/openvstorage/framework/issues/894"},"comments":{"href":"https://api.github.com/repos/openvstorage/framework/issues/894/comments"},"review_comments":{"href":"https://api.github.com/repos/openvstorage/framework/pulls/894/comments"},"review_comment":{"href":"https://api.github.com/repos/openvstorage/framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openvstorage/framework/pulls/894/commits"},"statuses":{"href":"https://api.github.com/repos/openvstorage/framework/statuses/b549b1f306908bf87e414fc6cd2cf00abbb02c82"}}}}
{"actor":{"display_login":"kvanhijf"}}