"Could not find VM with address <VC_FQDN> in vCenter <VC_FQDN> to verify free space in '/'."

"vCenter <VC_FQDN> multiple VMs check failed internally"VCF 5.x
/usr/lib/vmware-vmafd/bin/vmafd-cli get-pnid --server-name localhost
sample output:
VCSA02.example.com
vcf user. Run su to login as root.psql -h localhost -U postgres -d platform -c "select * from vcenter;"sample output
id | vm_hostname | status --------------------------------------+---------------------+-------- 2730####-####-####-########d780 | vcsa02.example.com | ACTIVE (1 row)
For PNID and hostname mismatch on vCenter caused due to case difference, updating the PNID on vCenter Server using VAMI will fail with error 'Adding new CN entries failed'.
Follow the steps below to resolve the issue:
https://<VCSA_FQDN>:5480) as root.Networking -> Network Settings -> Edit.hostname with a placeholder. Example: localhost