{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/kubernetes/issues/68","repository_url":"https://api.github.com/repos/vmware/kubernetes","labels_url":"https://api.github.com/repos/vmware/kubernetes/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/vmware/kubernetes/issues/68/comments","events_url":"https://api.github.com/repos/vmware/kubernetes/issues/68/events","html_url":"https://github.com/vmware/kubernetes/issues/68","id":202349613,"number":68,"title":"StorageClass diskformat parameter is not honored while creating vmdks","user":{"login":"divyenpatel","id":22985595,"avatar_url":"https://avatars.githubusercontent.com/u/22985595?v=3","gravatar_id":"","url":"https://api.github.com/users/divyenpatel","html_url":"https://github.com/divyenpatel","followers_url":"https://api.github.com/users/divyenpatel/followers","following_url":"https://api.github.com/users/divyenpatel/following{/other_user}","gists_url":"https://api.github.com/users/divyenpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/divyenpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divyenpatel/subscriptions","organizations_url":"https://api.github.com/users/divyenpatel/orgs","repos_url":"https://api.github.com/users/divyenpatel/repos","events_url":"https://api.github.com/users/divyenpatel/events{/privacy}","received_events_url":"https://api.github.com/users/divyenpatel/received_events","type":"User","site_admin":false},"labels":[{"id":486915301,"url":"https://api.github.com/repos/vmware/kubernetes/labels/vSphere","name":"vSphere","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":{"login":"abrarshivani","id":1269660,"avatar_url":"https://avatars.githubusercontent.com/u/1269660?v=3","gravatar_id":"","url":"https://api.github.com/users/abrarshivani","html_url":"https://github.com/abrarshivani","followers_url":"https://api.github.com/users/abrarshivani/followers","following_url":"https://api.github.com/users/abrarshivani/following{/other_user}","gists_url":"https://api.github.com/users/abrarshivani/gists{/gist_id}","starred_url":"https://api.github.com/users/abrarshivani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrarshivani/subscriptions","organizations_url":"https://api.github.com/users/abrarshivani/orgs","repos_url":"https://api.github.com/users/abrarshivani/repos","events_url":"https://api.github.com/users/abrarshivani/events{/privacy}","received_events_url":"https://api.github.com/users/abrarshivani/received_events","type":"User","site_admin":false},"assignees":[{"login":"abrarshivani","id":1269660,"avatar_url":"https://avatars.githubusercontent.com/u/1269660?v=3","gravatar_id":"","url":"https://api.github.com/users/abrarshivani","html_url":"https://github.com/abrarshivani","followers_url":"https://api.github.com/users/abrarshivani/followers","following_url":"https://api.github.com/users/abrarshivani/following{/other_user}","gists_url":"https://api.github.com/users/abrarshivani/gists{/gist_id}","starred_url":"https://api.github.com/users/abrarshivani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrarshivani/subscriptions","organizations_url":"https://api.github.com/users/abrarshivani/orgs","repos_url":"https://api.github.com/users/abrarshivani/repos","events_url":"https://api.github.com/users/abrarshivani/events{/privacy}","received_events_url":"https://api.github.com/users/abrarshivani/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2017-01-22T00:28:25Z","updated_at":"2017-01-24T02:19:47Z","closed_at":null,"body":"vSphere Cloud Provider does not honor diskformat parameter to provision disk of the type zeroedthick or eagerZeroedThick. Disks are only provisioned with thin diskformat.\r\n\r\n**Created Storage Class using following yaml file**\r\n```\r\n$ cat sc.yaml \r\nkind: StorageClass\r\napiVersion: storage.k8s.io/v1beta1\r\nmetadata:\r\n  name: zeroedthick\r\nprovisioner: kubernetes.io/vsphere-volume\r\nparameters:\r\n    diskformat: zeroedthick\r\n```\r\n```\r\n$ kubectl create -f sc.yaml \r\nstorageclass \"zeroedthick\" created\r\n```\r\n**Created PersistentVolumeClaim using following yaml file**\r\n```\r\n$ cat pvc.yaml \r\nkind: PersistentVolumeClaim\r\napiVersion: v1\r\nmetadata:\r\n  name: claim\r\n  annotations:\r\n    volume.beta.kubernetes.io/storage-class: zeroedthick\r\nspec:\r\n  accessModes:\r\n    - ReadWriteOnce\r\n  resources:\r\n    requests:\r\n      storage: 2Gi\r\n```\r\n\r\n```\r\n$ kubectl create -f pvc.yaml \r\npersistentvolumeclaim \"claim\" created\r\n```\r\n\r\n\r\n```\r\n$ kubectl describe pv\r\nName:\t\tpvc-1114160c-e036-11e6-831c-0050569de783\r\nLabels:\t\t<none>\r\nStorageClass:\tzeroedthick\r\nStatus:\t\tBound\r\nClaim:\t\tdefault/claim\r\nReclaim Policy:\tDelete\r\nAccess Modes:\tRWO\r\nCapacity:\t2Gi\r\nMessage:\t\r\nSource:\r\n    Type:\tvSphereVolume (a Persistent Disk resource in vSphere)\r\n    VolumePath:\t[vsanDatastore] kubevols/kubernetes-dynamic-pvc-1114160c-e036-11e6-831c-0050569de783.vmdk\r\n    FSType:\text4\r\nNo events.\r\n```\r\n\r\nWhen checked the StorageFormat of the disk using vsphere powercli, StorageFormat  for the disk found to be set as Thin\r\n\r\n```\r\nPS /Users/divyenp> Get-HardDisk -Datastore 'vsanDatastore' -DatastorePath \"[vsanDatastore] kubevols/\" | select parent,storageformat,filename                                      \r\n\r\nParent        StorageFormat Filename                                                                                 \r\n------        ------------- --------                                                                                 \r\nvsanDatastore          Thin [vsanDatastore] kubevols/kubernetes-dynamic-pvc-1114160c-e036-11e6-831c-0050569de783.vmdk\r\n```\r\n\r\nVerified from ESX, and found disk is not provisioned with zeroedthick\r\n\r\n```\r\ndu -h ./kubevols/kubernetes-dynamic-pvc-1114160c-e036-11e6-831c-0050569de783.vmdk \r\n0\t./kubevols/kubernetes-dynamic-pvc-1114160c-e036-11e6-831c-0050569de783.vmdk\r\n\r\nls -las ./kubevols/kubernetes-dynamic-pvc-1114160c-e036-11e6-831c-0050569de783.vmdk \r\n     0 -rw-------    1 root     root           519 Jan 22 00:02 ./kubevols/kubernetes-dynamic-pvc-1114160c-e036-11e6-831c-0050569de783.vmdk\r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vmware/kubernetes/issues/comments/274682009","html_url":"https://github.com/vmware/kubernetes/issues/68#issuecomment-274682009","issue_url":"https://api.github.com/repos/vmware/kubernetes/issues/68","id":274682009,"user":{"login":"divyenpatel","id":22985595,"avatar_url":"https://avatars.githubusercontent.com/u/22985595?v=3","gravatar_id":"","url":"https://api.github.com/users/divyenpatel","html_url":"https://github.com/divyenpatel","followers_url":"https://api.github.com/users/divyenpatel/followers","following_url":"https://api.github.com/users/divyenpatel/following{/other_user}","gists_url":"https://api.github.com/users/divyenpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/divyenpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divyenpatel/subscriptions","organizations_url":"https://api.github.com/users/divyenpatel/orgs","repos_url":"https://api.github.com/users/divyenpatel/repos","events_url":"https://api.github.com/users/divyenpatel/events{/privacy}","received_events_url":"https://api.github.com/users/divyenpatel/received_events","type":"User","site_admin":false},"created_at":"2017-01-24T02:19:46Z","updated_at":"2017-01-24T02:19:46Z","body":"Verified on 1.5.1 based image - dontubalu/amd-hyperkube-balu:15with3mergesfrom14final.\r\n\r\nValid and supported options are eagerzeroedthick, zeroedthick and thin"}}
{"actor":{"display_login":"divyenpatel"}}