vSphere Cloud Provider fails to attach volume due to "Permission to perform this operation was denied" error.
Issue
- AttachVolume.Attach failed for volume "pvc-*": ServerFaultCode: Permission to perform this operation was denied error when OpenShift attempts to add vmdk to virtual machine hosting OpenShift node.
- Persistent Volume cannot be mounted to Pod when using vSphere Cloud Provider due to permission issues in VMware vSphere.
- VMDKs are created in the folder
kubevols
in VMware datastore but the vmdk is not attached to the Virtual Machine. - Pods are stuck at
Creating
but PVC shows as bound to PV when using vSphere Cloud Provider.
Environment
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 3.11
- VMware vSphere
- 6.5
- 6.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.