Destroying a provisioned VM on a vSAN datastore generates the error "File [vsanDatastore] <datastore-name> was not found"
book
Article ID: 325860
calendar_today
Updated On:
Products
VMware Aria Suite
Issue/Introduction
Symptoms: When a VM provisioned from vRealize Automation (vRA) on a vSAN Datastore is destroyed, the VM is successfully destroyed, but an error is reported in vCenter:
File [vsanDatastore] cn1d-gen-1c2-abc014 was not found
Environment
VMware vRealize Automation 7.x
Cause
vRA creates the disk folder in vCenter if a Virtual Machine is clone provisioned with more than one disk, where the primary disk is on a non-vSAN datastore, and the secondary disk is on vSAN datastore. During the VM destroy operation, it is non-deterministic whether vCenter will delete the folder or not. So vRA always tries to delete the folder. However, if vCenter has already deleted the folder, it reports this error.
Resolution
There is no resolution or workaround.
This error can be safely ignored as it does not impact product functionality.