Templates are not registered on an ESX/ESXi host the same way as virtual machines. For example, if you run vmware-cmd –l on the host from the Service Console, you do not see the template listed. Instead, the registration is recorded within vCenter Server itself for that host.
When an ESX/ESXi host is reconnected to vCenter Server after becoming disconnected, it refreshes the vCenter Server inventory of virtual machines only. A complete refresh of the vCenter Server inventory is required to correct the status in the vSphere Client. Restarting the VirtualCenter Server service forces a full host sync on all objects that it knows about, including templates.
To resolve this issue:
Restart only the vmware-vpxa process on the ESX host with the command:
service vmware-vpxa restart
If the issue persists, proceed to Step 2. For ESXi, a /sbin/services.sh restart is necessary.