{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/699","repository_url":"https://api.github.com/repos/vmware/docker-volume-vsphere","labels_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/699/comments","events_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/699/events","html_url":"https://github.com/vmware/docker-volume-vsphere/pull/699","id":187314124,"number":699,"title":"Handle errors on Get() call from server.","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":[{"id":357052365,"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/labels/cla-not-required","name":"cla-not-required","color":"159818","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-04T11:48:01Z","updated_at":"2016-11-29T08:27:41Z","closed_at":"2016-11-09T05:50:15Z","pull_request":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/699","html_url":"https://github.com/vmware/docker-volume-vsphere/pull/699","diff_url":"https://github.com/vmware/docker-volume-vsphere/pull/699.diff","patch_url":"https://github.com/vmware/docker-volume-vsphere/pull/699.patch"},"body":"The Get() returns volume status thats optional in the docker plugin API. So, don't treat errors on status fetch as fatal. This test below had to artifically create an empty KV file because thats the only way it can be made empty or corrupted.\r\n\r\nTests:\r\n```\r\n$ docker volume create -d vmdk --name ca-vol-7\r\nca-vol-7\r\n\r\n$ docker volume inspect ca-vol-7\r\n[\r\n    {\r\n        \"Name\": \"ca-vol-7\",\r\n        \"Driver\": \"vmdk\",\r\n        \"Mountpoint\": \"/mnt/vmdk/ca-vol-7\",\r\n        \"Status\": {\r\n            \"access\": \"read-write\",\r\n            \"attach-as\": \"independent_persistent\",\r\n            \"capacity\": {\r\n                \"allocated\": \"13MB\",\r\n                \"size\": \"100MB\"\r\n            },\r\n            \"created\": \"Fri Nov  4 11:38:53 2016\",\r\n            \"created by VM\": \"2\",\r\n            \"datastore\": \"bigone\",\r\n            \"diskformat\": \"thin\",\r\n            \"fstype\": \"ext4\",\r\n            \"status\": \"detached\"\r\n        },\r\n        \"Labels\": {},\r\n        \"Scope\": \"global\"\r\n    }\r\n]\r\n```\r\n<trash the KV file - empty it>\r\n```\r\n$ docker volume inspect ca-vol-7\r\n[\r\n    {\r\n        \"Name\": \"ca-vol-7\",\r\n        \"Driver\": \"vmdk\",\r\n        \"Mountpoint\": \"/mnt/vmdk/ca-vol-7\",\r\n        \"Labels\": {},\r\n        \"Scope\": \"global\"\r\n    }\r\n]\r\n\r\n$ docker run --rm -it -w /data -v ca-vol-7:/data busybox\r\n/data #\r\n```"},"comment":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/comments/263506669","html_url":"https://github.com/vmware/docker-volume-vsphere/pull/699#issuecomment-263506669","issue_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/699","id":263506669,"user":{"login":"kerneltime","id":774455,"avatar_url":"https://avatars.githubusercontent.com/u/774455?v=3","gravatar_id":"","url":"https://api.github.com/users/kerneltime","html_url":"https://github.com/kerneltime","followers_url":"https://api.github.com/users/kerneltime/followers","following_url":"https://api.github.com/users/kerneltime/following{/other_user}","gists_url":"https://api.github.com/users/kerneltime/gists{/gist_id}","starred_url":"https://api.github.com/users/kerneltime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerneltime/subscriptions","organizations_url":"https://api.github.com/users/kerneltime/orgs","repos_url":"https://api.github.com/users/kerneltime/repos","events_url":"https://api.github.com/users/kerneltime/events{/privacy}","received_events_url":"https://api.github.com/users/kerneltime/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T08:27:41Z","updated_at":"2016-11-29T08:27:41Z","body":"Fixes https://github.com/vmware/docker-volume-vsphere/issues/662"}}
{"actor":{"display_login":"kerneltime"}}