{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/548","repository_url":"https://api.github.com/repos/vmware/docker-volume-vsphere","labels_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/548/labels{/name}","comments_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/548/comments","events_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/548/events","html_url":"https://github.com/vmware/docker-volume-vsphere/pull/548","id":167176055,"number":548,"title":"Support vol stats","user":{"login":"govint","id":15854712,"avatar_url":"https://avatars.githubusercontent.com/u/15854712?v=3","gravatar_id":"","url":"https://api.github.com/users/govint","html_url":"https://github.com/govint","followers_url":"https://api.github.com/users/govint/followers","following_url":"https://api.github.com/users/govint/following{/other_user}","gists_url":"https://api.github.com/users/govint/gists{/gist_id}","starred_url":"https://api.github.com/users/govint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govint/subscriptions","organizations_url":"https://api.github.com/users/govint/orgs","repos_url":"https://api.github.com/users/govint/repos","events_url":"https://api.github.com/users/govint/events{/privacy}","received_events_url":"https://api.github.com/users/govint/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/labels/cla-not-required","name":"cla-not-required","color":"159818"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-23T09:12:35Z","updated_at":"2016-07-26T05:10:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/548","html_url":"https://github.com/vmware/docker-volume-vsphere/pull/548","diff_url":"https://github.com/vmware/docker-volume-vsphere/pull/548.diff","patch_url":"https://github.com/vmware/docker-volume-vsphere/pull/548.patch"},"body":"Added support for volumes stats on Get(). The change to go-plugin-helpers is only to allow building and returning volume stats. I've opened an issue on go-plugin-helpers to add this support (issue 53). I've made changes for that and will post a separate PR on go-plugin-helpers once I'm added to the members  list there.\r\n\r\nWill pull in the updated go-plugin-helpers once volume status is supported there."},"comment":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/comments/235164489","html_url":"https://github.com/vmware/docker-volume-vsphere/pull/548#issuecomment-235164489","issue_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/548","id":235164489,"user":{"login":"govint","id":15854712,"avatar_url":"https://avatars.githubusercontent.com/u/15854712?v=3","gravatar_id":"","url":"https://api.github.com/users/govint","html_url":"https://github.com/govint","followers_url":"https://api.github.com/users/govint/followers","following_url":"https://api.github.com/users/govint/following{/other_user}","gists_url":"https://api.github.com/users/govint/gists{/gist_id}","starred_url":"https://api.github.com/users/govint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govint/subscriptions","organizations_url":"https://api.github.com/users/govint/orgs","repos_url":"https://api.github.com/users/govint/repos","events_url":"https://api.github.com/users/govint/events{/privacy}","received_events_url":"https://api.github.com/users/govint/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T05:10:36Z","updated_at":"2016-07-26T05:10:36Z","body":"Testing with the patch we have the status reported as shown:\r\n\r\n$ docker volume create --driver=vmdk --name=dvol_2\r\ndvol_2\r\n\r\n$ docker volume inspect dvol_2\r\n[\r\n    {\r\n        \"Name\": \"dvol_2\",\r\n        \"Driver\": \"vmdk\",\r\n        \"Mountpoint\": \"/mnt/vmdk/dvol_2\",\r\n        \"Status\": {\r\n            \"capacity\": {\r\n                \"allocated\": \"14.0MB\",\r\n                \"size\": \"100.0MB\"\r\n            },\r\n            \"created\": \"Tue Jul 26 05:04:56 2016\",\r\n            \"created-by\": \"2\",\r\n            \"datastore\": \"bigone\",\r\n            \"status\": \"detached\"\r\n        },\r\n        \"Labels\": {},\r\n        \"Scope\": \"global\"\r\n    }\r\n]\r\n$ docker run --rm -it -v dvol_2:/mnt/myvol busybox\r\n/ #\r\n\r\n\r\nStatus now shows the volume as attached and the VM to which attached.\r\n\r\n$ docker volume inspect dvol_2\r\n[\r\n    {\r\n        \"Name\": \"dvol_2\",\r\n        \"Driver\": \"vmdk\",\r\n        \"Mountpoint\": \"/mnt/vmdk/dvol_2\",\r\n        \"Status\": {\r\n            \"attachedVMName\": \"2\",\r\n            \"capacity\": {\r\n                \"allocated\": \"14.0MB\",\r\n                \"size\": \"100.0MB\"\r\n            },\r\n            \"created\": \"Tue Jul 26 05:04:56 2016\",\r\n            \"created-by\": \"2\",\r\n            \"datastore\": \"bigone\",\r\n            \"status\": \"attached\"\r\n        },\r\n        \"Labels\": {},\r\n        \"Scope\": \"global\"\r\n    }\r\n]\r\n"}}
{"actor":{"display_login":"govint"}}