When trying to enable the vSAN performance service on a new vSAN cluster, this error message is seen on vCenter.
vSAN datastore is not compatible with the policy configured for vSAN performance service.
vSAN 7.x, vSAN 8.x
First, confirm that the default vSAN Storage Policy for this environment is indeed compatible with the new vSAN cluster. If it is not, then this needs to be resolved.
For a newly created vSAN cluster, a race condition can occur where the vCenter tries to initialize the vSAN Performance Service before the vSAN Storage is ready, which means that the backing vSAN object for the vSAN Performance Service cannot be created. This vSAN cluster is then seen as unhealthy by the Storage Policy Service on the vCenter and, because of this, it may not be possible to enable the vSAN Performance Service, even after the vSAN storage is initialized and seemingly healthy.
Open an SSH session to the vCenter appliance, log in as root, and run these two commands to restart the SPS (Storage Policy Service).
service-control --stop vmware-sps
service-control --start vmware-sps