Host status is unknown "A failure occurred when starting a host compliance check operation on host <ESXI-FQDN>" : Error:com.vmware.vapi.std.errors.not_allowed_in_current_state Messages: com.vmware.esx.task.contention<Another task is in progress. Please retry later.>
/var/run/log/lifecycle.log on one of the ESXi host shows that there are name resolution failures as shown below:lifecycle [#####] : Downloader: 214 Download failed: <urlopen error [Errno -3] Temporary failure in name resolution>, 3 retry left ...lifecycle [#####]: Downloader: 214 Download failed: <urlopen error [Errno -3] Temporary failure in name resolution>, 2 retry left ...lifecycle [#####]: Downloader: 214 Download failed: <urlopen error [Errno -3] Temporary failure in name resolution>, 1 retry left ...nslookup for the vCenter Server FQDN from an ESXi host returns a failure or timeout.Update the firewall configuration on all ESXi hosts in the cluster to allow outgoing DNS traffic:
Monitor.firewall option under the system section.outgoing connection and click on edit.DNS client and click save.NOTE: The ESXI firewall rules can be configured using the VMware host client as well. Refer Add Allowed IP Addresses for an ESXi Host by Using the VMware Host Client