Closed benhwebster closed 6 years ago
Any news here? We have also the issue with dynamically provision storage not working.
No sadly, I've pretty much given up on the dynamic portion, our VMware admins think the account is set up correctly according to the permissions required for dynamic provisioning without storage policy based placement, and they don't want to give the account the permissions required for that so I'm stuck.
@benhwebster
Do you have System.View
privilege on the user. This is required to call RetrieveProperties
This is failing at https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/vsphere/vclib/virtualmachine.go#L214
Finally found the missing permission! we were missing read-only permission on one of the ESXi clusters running the hosts running the infrastructure nodes (or one of the children of the cluster, we let it propagate, you could probably just add ESXi cluster as one of entities for the read-only role in those tables.) Thank you Divyen for pointing me in the right direction!
Is this a BUG REPORT or FEATURE REQUEST?: /kind bug
What happened: VCP is unable to provision dynamic storage, static works fine
What you expected to happen: VCP to successfully provision storage dynamically
How to reproduce it (as minimally and precisely as possible): Set up VCP according to documentation here, using the vSphere permissions here. Create storage class, create a claim using the storage class, claim fails to provision storage with error NoPermission
Anything else we need to know?: relevent logs(?):
Static provisioning works, (create disk, create pv, create pvc) but something about the dynamic provisioning portion is missing privileges and I don't know what or how to find out what it is.
Possibly related to https://github.com/kubernetes/kubernetes/issues/67206?
Environment:
kubectl version
): Openshift 3.10 Client Version: version.Info{Major:"1", Minor:"10+", GitVersion:"v1.10.0+b81c8f8", GitCommit:"b81c8f8", GitTreeState:"clean", BuildDate:"2018-09-07T19:14:28Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"10+", GitVersion:"v1.10.0+b81c8f8", GitCommit:"b81c8f8", GitTreeState:"clean", BuildDate:"2018-09-07T19:14:28Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"linux/amd64"}uname -a
): 3.10.0-862.14.4.el7.x86_64 #1 SMP Fri Sep 21 09:07:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux