To inform users how to resolve this error.
Symptoms:
When trying to to enable vSAN FS you receive the error:
"Failed to enable file service. Hosts don't have fileservicecrx capability"
Prior to trying to enable FS the customer made a slight change to the VC FQDN.
In the vmware-vsan-health-service.log you will see the below:
2022-01-10T16:20:38.979Z INFO vsan-mgmt[08941] [VsanVcObjectHelper::AddCallResultAndNotify opID=046ca3b5-W386] delete the single concurrent execution key
2022-01-10T16:20:38.979Z WARNING vsan-mgmt[08941] [VsanClusterFileServiceSystemImpl::_EnableFileService opID=046ca3b5-W386] Hosts don't have fileservicecrx capability
2022-01-10T16:20:39.105Z INFO vsan-mgmt[08941] [VsanClusterFileServiceSystemImpl::_EnableFileService opID=046ca3b5-W386] Creating FSVM with e5dc917f-cce3-4c90-85fb-35b45bc5c496
2022-01-10T16:20:39.106Z INFO vsan-mgmt[08941] [VsanEamUtil::_EamConnect opID=046ca3b5-W386] Connecting to EAM service ...
2022-01-10T16:20:39.106Z INFO vsan-mgmt[08941] [VsanEamUtil::_EamConnect opID=046ca3b5-W386] EAM server URL is: https://fqdn-vc.01.site.st:443/eam/sdk/
2022-01-10T16:20:39.106Z INFO vsan-mgmt[08941] [VsanEamUtil::_EamConnect opID=046ca3b5-W386] Setting EAM adapter: host: fqdn-vc.01.site.st, port: 443, version: eam.version.version7_2, path: /eam/sdk/
2022-01-10T16:20:39.106Z INFO vsan-mgmt[08941] [VsanEamUtil::_GetAgency opID=046ca3b5-W386] EAM QueryAgency information ...
2022-01-10T16:20:39.108Z ERROR vsan-mgmt[08941] [VsanClusterFileServiceSystemImpl::_EnableFileService opID=046ca3b5-W386] Falied to deploy OVF in cluster 'vim.ClusterComputeResource:domain-c1006'
Traceback (most recent call last):
File "/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
2022-01-03T17:34:56.267Z ERROR vsan-mgmt[30753] [VsanClusterFileServiceSystemImpl::_EditFileServiceStatus opID=d1a5a93d-W10318] Failed to enable file service.
^ vsanEamUtil is pulling the wrong URL (old fqdn).