InventoryAlreadyExistsException in the /var/log/vmware/vcf/commonsvcs/vcf-commonsvcs.log file, indicating that the ESXi hosts are still registered in the inventory: ERROR [common,######-###-###-###-############ ,39##] [c.v.e.s.i.s.EsxiInventoryServiceImpl,http-nio-##########-###-92] ESXi <hostname> already exist: ######-###-###-###-############ <hostname> already existsERROR [common,######-###-###-###-############ ,39##] [c.v.e.s.i.s.e.DomainExtensionsImpl,http-nio-##########-###-92] Failed to post domain inventory com.vmware.evo.sddc.inventory.model.InventoryAlreadyExistsException: ######-###-###-###-############ <hostname> already exists
VMware Cloud Foundation 9.0.1
The issue is caused by stale ESXi host records persisting in the SDDC Manager PostgreSQL database following the deletion of the original workload domain. Although the workload domain was removed, the associated host entries were not correctly cleared, resulting in a database conflict during subsequent import attempts using the same host names.
Safety Warning: Take a snapshot of the SDDC Manager VM via vCenter before performing any database operations.
vcf user, then elevate to root privileges.select id, hostname, status from host where hostname='<FQDN>';select id, hostname, status from host where status='ERROR';select id, hostname, status from host where status='DEACTIVATING';ERROR or DEACTIVATING, do not proceed with manual deletion. Refer to the knowledge base article, Unable to remove ESXi host from VCF SDDC manager due to database mismatch | Steps to remove ESXi Hosts from the SDDC Manager DB SELECT id, hostname, management_ip_address, status FROM host;DELETE FROM host WHERE hostname='<hostname_of_stale_host>';\q/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh