Warning FailedAttachVolume attachdetach-controller AttachVolume.Attach failed for volume "pvc-####" : rpc error: code = Internal desc = observed Error: "time out for task Task:task-<id> before response from CNS" is set on the volume "<volume_id>" on virtualmachine "<node_name>"
vSphere Kubernetes Service
A synchronization issue between datastore and database.
Resync the datastore in the vCenter database.
Connect to VCDBpsql -d VCDB -U postgres
Confirm that the volume ID.select * from cns.volume_info where volume_name='pvc-<id>';
Resync the datastore, using MOBhttps://<VCIP>/vslm/mob//?moid=StorageLifecycleManager&method=VslmSyncDatastore
Datastore url is taken from VC UI and looks like ds:///vmfs/volumes/########-########-####-############. fullSync=true fcdId should be blank
Restart vsan-health serviceservice-control --restart vsan-health