Error: no shared datastores found for nodeVm
search cancel

Error: no shared datastores found for nodeVm

book

Article ID: 399300

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

When trying to create a PVC you will see:

  • PVC showing in Pending state
  • Describing the PVC, you see this error:
    Warning  ProvisioningFailed    32m (x2 over 32m)      csi.vsphere.vmware.com_vsphere-csi-controller-#########-#####_########-####-####-####-############  failed to provision volume with StorageClass "vsphere-sc": rpc error: code = Internal desc = failed to get shared datastores in kubernetes cluster. Error: no shared datastores found for nodeVm: VirtualMachine:vm-###### [VirtualCenterHost: <vCenter-Name>, UUID: ########-####-####-####-############, Datacenter: Datacenter [Datacenter: Datacenter:<Datacenter-Name>, VirtualCenterHost: <vCenter-Name>]]

Environment

2.x
3.x

Resolution

Validate if the multizone setup steps are correctly followed:

  1. Login to TCA-Manager:

    1. In TCA-UI:
      Infrastructure > CaaS Infrastructure > <Cluster-Name> > Add-Ons
    2. Edit the vsphere-csi Add-on
    3. Ensure that you have the proper tags in Zone and Region
  2. Now Login to vCenter:

    1. In vCenter-UI:
      Tags & Custom Attributes
    2. Ensure that you have the correct Tags and the name matches with what you have in TCA-UI (Step-2). Also ensure that the category select for those tags are correct.

 

If the tags are good on both sides the PVC should get created successfully.

 

Note: If this is not a multizone setup you can refer to this kb article for fix TCA Error no shared datastores found for nodeVM VirtualMachine vm