Description of problem: When provisioning storage from a vsphere storage provider, the storage provider returns 'No VM found' to the pv-controller[1]. We also see in the node spec that tehe 'providerID' is not being set properly on the nodes. 'govc' returns the proper hosts and seem to match the vsphere.conf configuration. [1] Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning ProvisioningFailed 5s (x2 over 12s) persistentvolume-controller Failed to provision volume with StorageClass "vsphere-standard": No VM found Version-Release number of selected component (if applicable): 3.11 latest How reproducible: Able to reproduce the 'No VM found' error by creating a PVC using the vsphere sc. Steps to Reproduce: 1. Create a PVC specifying 'vsphere-standard' as the storage class. 2. 3. Actual results: PV fails to be created and the pv-controller is returned 'No VM found'. Expected results: PV created on vpshere side and mounted to the node. Master Log: Node Log (of failed PODs): PV Dump: PVC Dump: StorageClass Dump (if StorageClass used by PV/PVC): Additional info:
The UUIDs configured on the client[1] were not matching what was in vmware. Resolving those UUIDs fixed the issue. [1] # cat /sys/class/dmi/id/product_serial # cat /sys/class/dmi/id/product_uuid # oc describe node <nodename> | grep "System UUID"
Reference: How did you fix it? Had the same issue restoring the VM after unsuccessful pathing the Linux. Resolved by https://access.redhat.com/solutions/4256051