{"action":"created","comment":{"url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/comments/23976369","id":23976369,"diff_hunk":"@@ -0,0 +1,23 @@\n+package disk\n+\n+import (\n+\tboshlog \"github.com/cloudfoundry/bosh-agent/logger\"\n+)\n+\n+const softLayerDiskLogTag = \"SoftLayerDisk\"\n+\n+type SoftLayerDisk struct {\n+\tid     int\n+\tlogger boshlog.Logger\n+}\n+\n+func NewSoftLayerDisk(id int, logger boshlog.Logger) SoftLayerDisk {\n+\treturn SoftLayerDisk{id: id, logger: logger}\n+}\n+\n+func (s SoftLayerDisk) ID() int { return s.id }\n+\n+func (s SoftLayerDisk) Delete() error {\n+\ts.logger.Debug(softLayerDiskLogTag, \"Deleting disk '%s'\", s.id)","path":"softlayer/disk/softlayer_disk.go","position":21,"original_position":21,"commit_id":"0282d3e6d0b09f20c5c4741eef68708a399cbdcb","original_commit_id":"0282d3e6d0b09f20c5c4741eef68708a399cbdcb","user":{"login":"xingzhou","id":5344440,"avatar_url":"https://avatars.githubusercontent.com/u/5344440?v=3","gravatar_id":"","url":"https://api.github.com/users/xingzhou","html_url":"https://github.com/xingzhou","followers_url":"https://api.github.com/users/xingzhou/followers","following_url":"https://api.github.com/users/xingzhou/following{/other_user}","gists_url":"https://api.github.com/users/xingzhou/gists{/gist_id}","starred_url":"https://api.github.com/users/xingzhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xingzhou/subscriptions","organizations_url":"https://api.github.com/users/xingzhou/orgs","repos_url":"https://api.github.com/users/xingzhou/repos","events_url":"https://api.github.com/users/xingzhou/events{/privacy}","received_events_url":"https://api.github.com/users/xingzhou/received_events","type":"User","site_admin":false},"body":"will submit in another PR","created_at":"2015-02-03T01:39:25Z","updated_at":"2015-02-03T01:39:25Z","html_url":"https://github.com/maximilien/bosh-softlayer-cpi/pull/19#discussion_r23976369","pull_request_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/comments/23976369"},"html":{"href":"https://github.com/maximilien/bosh-softlayer-cpi/pull/19#discussion_r23976369"},"pull_request":{"href":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/19","id":28450690,"html_url":"https://github.com/maximilien/bosh-softlayer-cpi/pull/19","diff_url":"https://github.com/maximilien/bosh-softlayer-cpi/pull/19.diff","patch_url":"https://github.com/maximilien/bosh-softlayer-cpi/pull/19.patch","issue_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/issues/19","number":19,"state":"open","locked":false,"title":"Implement create persistent disk in CPI","user":{"login":"xingzhou","id":5344440,"avatar_url":"https://avatars.githubusercontent.com/u/5344440?v=3","gravatar_id":"","url":"https://api.github.com/users/xingzhou","html_url":"https://github.com/xingzhou","followers_url":"https://api.github.com/users/xingzhou/followers","following_url":"https://api.github.com/users/xingzhou/following{/other_user}","gists_url":"https://api.github.com/users/xingzhou/gists{/gist_id}","starred_url":"https://api.github.com/users/xingzhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xingzhou/subscriptions","organizations_url":"https://api.github.com/users/xingzhou/orgs","repos_url":"https://api.github.com/users/xingzhou/repos","events_url":"https://api.github.com/users/xingzhou/events{/privacy}","received_events_url":"https://api.github.com/users/xingzhou/received_events","type":"User","site_admin":false},"body":"In this patch, we added the create persistent disk action in CPI project. This action will use createIscsiVolume service defined in softlayer-go to create a SAN disk based on customized disk size.\r\n\r\nThis action will depend on the PR of https://github.com/maximilien/softlayer-go/pull/24 in softlayer-go project.\r\n\r\nSigned-off-by: Tom Xing <xingzhou@cn.ibm.com>","created_at":"2015-02-02T08:02:43Z","updated_at":"2015-02-03T01:39:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bbdd7b556745a032df51610ade1a90504fd026dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/19/commits","review_comments_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/19/comments","review_comment_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/comments/{number}","comments_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/issues/19/comments","statuses_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/statuses/0282d3e6d0b09f20c5c4741eef68708a399cbdcb","head":{"label":"xingzhou:disk","ref":"disk","sha":"0282d3e6d0b09f20c5c4741eef68708a399cbdcb","user":{"login":"xingzhou","id":5344440,"avatar_url":"https://avatars.githubusercontent.com/u/5344440?v=3","gravatar_id":"","url":"https://api.github.com/users/xingzhou","html_url":"https://github.com/xingzhou","followers_url":"https://api.github.com/users/xingzhou/followers","following_url":"https://api.github.com/users/xingzhou/following{/other_user}","gists_url":"https://api.github.com/users/xingzhou/gists{/gist_id}","starred_url":"https://api.github.com/users/xingzhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xingzhou/subscriptions","organizations_url":"https://api.github.com/users/xingzhou/orgs","repos_url":"https://api.github.com/users/xingzhou/repos","events_url":"https://api.github.com/users/xingzhou/events{/privacy}","received_events_url":"https://api.github.com/users/xingzhou/received_events","type":"User","site_admin":false},"repo":{"id":26466816,"name":"bosh-softlayer-cpi","full_name":"xingzhou/bosh-softlayer-cpi","owner":{"login":"xingzhou","id":5344440,"avatar_url":"https://avatars.githubusercontent.com/u/5344440?v=3","gravatar_id":"","url":"https://api.github.com/users/xingzhou","html_url":"https://github.com/xingzhou","followers_url":"https://api.github.com/users/xingzhou/followers","following_url":"https://api.github.com/users/xingzhou/following{/other_user}","gists_url":"https://api.github.com/users/xingzhou/gists{/gist_id}","starred_url":"https://api.github.com/users/xingzhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xingzhou/subscriptions","organizations_url":"https://api.github.com/users/xingzhou/orgs","repos_url":"https://api.github.com/users/xingzhou/repos","events_url":"https://api.github.com/users/xingzhou/events{/privacy}","received_events_url":"https://api.github.com/users/xingzhou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xingzhou/bosh-softlayer-cpi","description":"An external BOSH CPI for the SoftLayer cloud","fork":true,"url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi","forks_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/forks","keys_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/teams","hooks_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/hooks","issue_events_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/issues/events{/number}","events_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/events","assignees_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/assignees{/user}","branches_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/branches{/branch}","tags_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/tags","blobs_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/git/refs{/sha}","trees_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/statuses/{sha}","languages_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/languages","stargazers_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/stargazers","contributors_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/contributors","subscribers_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/subscribers","subscription_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/subscription","commits_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/commits{/sha}","git_commits_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/git/commits{/sha}","comments_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/comments{/number}","issue_comment_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/issues/comments/{number}","contents_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/contents/{+path}","compare_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/merges","archive_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/downloads","issues_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/issues{/number}","pulls_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/pulls{/number}","milestones_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/milestones{/number}","notifications_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/labels{/name}","releases_url":"https://api.github.com/repos/xingzhou/bosh-softlayer-cpi/releases{/id}","created_at":"2014-11-11T02:59:06Z","updated_at":"2014-10-10T09:42:33Z","pushed_at":"2015-02-02T08:01:10Z","git_url":"git://github.com/xingzhou/bosh-softlayer-cpi.git","ssh_url":"git@github.com:xingzhou/bosh-softlayer-cpi.git","clone_url":"https://github.com/xingzhou/bosh-softlayer-cpi.git","svn_url":"https://github.com/xingzhou/bosh-softlayer-cpi","homepage":null,"size":8655,"stargazers_count":0,"watchers_count":0,"language":null,"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":"maximilien:master","ref":"master","sha":"0f2a3cdbcb6a8d58948e3bd39d535b0ea4cec5c8","user":{"login":"maximilien","id":39187,"avatar_url":"https://avatars.githubusercontent.com/u/39187?v=3","gravatar_id":"","url":"https://api.github.com/users/maximilien","html_url":"https://github.com/maximilien","followers_url":"https://api.github.com/users/maximilien/followers","following_url":"https://api.github.com/users/maximilien/following{/other_user}","gists_url":"https://api.github.com/users/maximilien/gists{/gist_id}","starred_url":"https://api.github.com/users/maximilien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximilien/subscriptions","organizations_url":"https://api.github.com/users/maximilien/orgs","repos_url":"https://api.github.com/users/maximilien/repos","events_url":"https://api.github.com/users/maximilien/events{/privacy}","received_events_url":"https://api.github.com/users/maximilien/received_events","type":"User","site_admin":false},"repo":{"id":22626776,"name":"bosh-softlayer-cpi","full_name":"maximilien/bosh-softlayer-cpi","owner":{"login":"maximilien","id":39187,"avatar_url":"https://avatars.githubusercontent.com/u/39187?v=3","gravatar_id":"","url":"https://api.github.com/users/maximilien","html_url":"https://github.com/maximilien","followers_url":"https://api.github.com/users/maximilien/followers","following_url":"https://api.github.com/users/maximilien/following{/other_user}","gists_url":"https://api.github.com/users/maximilien/gists{/gist_id}","starred_url":"https://api.github.com/users/maximilien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximilien/subscriptions","organizations_url":"https://api.github.com/users/maximilien/orgs","repos_url":"https://api.github.com/users/maximilien/repos","events_url":"https://api.github.com/users/maximilien/events{/privacy}","received_events_url":"https://api.github.com/users/maximilien/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maximilien/bosh-softlayer-cpi","description":"An external BOSH CPI for the SoftLayer cloud","fork":false,"url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi","forks_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/forks","keys_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/teams","hooks_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/hooks","issue_events_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/issues/events{/number}","events_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/events","assignees_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/assignees{/user}","branches_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/branches{/branch}","tags_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/tags","blobs_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/git/refs{/sha}","trees_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/statuses/{sha}","languages_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/languages","stargazers_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/stargazers","contributors_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/contributors","subscribers_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/subscribers","subscription_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/subscription","commits_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/commits{/sha}","git_commits_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/git/commits{/sha}","comments_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/comments{/number}","issue_comment_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/issues/comments/{number}","contents_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/contents/{+path}","compare_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/merges","archive_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/downloads","issues_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/issues{/number}","pulls_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls{/number}","milestones_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/milestones{/number}","notifications_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/labels{/name}","releases_url":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/releases{/id}","created_at":"2014-08-05T02:05:20Z","updated_at":"2015-01-30T03:43:09Z","pushed_at":"2015-01-30T03:43:09Z","git_url":"git://github.com/maximilien/bosh-softlayer-cpi.git","ssh_url":"git@github.com:maximilien/bosh-softlayer-cpi.git","clone_url":"https://github.com/maximilien/bosh-softlayer-cpi.git","svn_url":"https://github.com/maximilien/bosh-softlayer-cpi","homepage":null,"size":9093,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/19"},"html":{"href":"https://github.com/maximilien/bosh-softlayer-cpi/pull/19"},"issue":{"href":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/issues/19"},"comments":{"href":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/maximilien/bosh-softlayer-cpi/statuses/0282d3e6d0b09f20c5c4741eef68708a399cbdcb"}}}}