TCA Error no shared datastores found for nodeVM VirtualMachine vm
search cancel

TCA Error no shared datastores found for nodeVM VirtualMachine vm

book

Article ID: 376221

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

We are getting an error when we create a PVC with WRO mode. When we change the same yaml file to RWX the pvc is created.

This is the message that we receive when we try to create:

Warning ProvisioningFailed persistentvolumeclaim/xxx 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-55342

Error no shared datastores found for nodeVM VirtualMachine vm-xxx

Environment

TCA 2.2

Cause

VM was in a different cluster that used a different VSAN cluster

Based on the error message when describing PVC, it was pointing to VMs not being able to have access to storage

Resolution

vm-### is the managed object reference

vm-### is the ID used to identify VMs unique

In the MOB, we can track this vm back.

Verify the VM pointing to a different cluster

https://<vCenter_server>/mob/?moid=<OBJECT_ID>