Cannot synchronize host #####. An error occurred while communicating with the remote host.VMware vCenter Server 7.0.x
VMware vCenter Server 8.0.x
[ vpxd.log ]<time stamp> info vpxd[32695] [Originator@6876 sub=corehostCapsule opID=47e53a20] Host [[vim.HostSystem:host-####,#####]] left the DVS [## ## ## ## ## ## ## ##-## ## ## ## ## ## ## ##]<time stamp> info vpxd[32695] [Originator@6876 sub=corehostSync opID=47e53a20] Delete port [#####:########-####-####-####-##########01] for host [#####]<time stamp> info vpxd[32695] [Originator@6876 sub=corehostSync opID=47e53a20] Delete port [#####:########-####-####-####-##########02] for host [#####]# select count(1) from vc.vpx_vm_virtual_device where device_text like '%########-####-####-####-##########01%'; count ------- 1(1 row)[ vpxd.log ]<timestamp> info vpxd[06899] [Originator@6876 sub=Default opID=m6x0xap1-67050-auto-1fqj-h5:70016454-f1] [VpxLRO] -- ERROR task-11757 -- domain-##### -- vim.ManagedEntity.destroy: vim.fault.NotFound:--> Result:--> (vim.fault.NotFound) {--> faultCause = (vmodl.MethodFault) null, --> faultMessage = (vmodl.LocalizableMessage) [--> (vmodl.LocalizableMessage) {--> key = "com.vmware.vim.vpxd.dvs.portNotFound.label", --> arg = (vmodl.KeyAnyValue) [--> (vmodl.KeyAnyValue) {--> key = "port", --> value = "########-####-####-####-##########01"--> }--> ], --> message = <unset>--> }--> ]--> msg = ""--> }--> Args:--> Before applying the steps outlined below to fix the issue, please take an offline snapshot of the vCenter Server Appliance:
# service-control --stop vmware-vpxd
# /opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres
# \x
# select * from vc.vpx_vm_virtual_device where device_text like '%########-####-####-####-##########01%';
# delete from vc.vpx_vm_virtual_device where ID = '####' and device_info_label = 'Network adapter #';
# select * from vc.vpx_vm_virtual_device where device_text like '%########-####-####-####-##########01%';
# \q
# service-control --start vmware-vpxd
The removal of the ESXi host from the vSphere Client inventory should now no longer be failing due to the above error.