VMware Cloud Community
GlebA
Contributor
Contributor

Check image compliance: Unknown error occurred when invoking host API.

Hello,

I have a cluster with two hosts and try to perform cluster upgrade 7.0U1 -> 7.0U1b using cluster image. While checking compliance, I get an error "Unknown error occurred when invoking host API"

 

2020-11-27 10_19_48-vSphere - Cluster - Image.png

 

In /var/log/vmware/vmware-updatemgr/vum-server/vmware-vum-server-16.log I see the following:

2020-11-27T06:24:22.985Z info vmware-vum-server[28452] [Originator@6876 sub=ScanUtil] Resetting the host host-28 result DB.^M
2020-11-27T06:24:22.988Z info vmware-vum-server[28452] [Originator@6876 sub=ScanUtil] Resetting the host host-125 result DB.^M
2020-11-27T06:24:22.992Z info vmware-vum-server[28452] [Originator@6876 sub=com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask] Task:com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask ID:5237b445-f5c7-d50c-99ad-3080d9fdb9ae. Total 2 hosts found on Cluster : Cluster (domain-c70)^M
2020-11-27T06:24:22.996Z info vmware-vum-server[28452] [Originator@6876 sub=com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask] Task:com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask ID:5237b445-f5c7-d50c-99ad-3080d9fdb9ae. Starting image scan for cluster : Cluster (domain-c70)^M
2020-11-27T06:24:22.999Z info vmware-vum-server[28452] [Originator@6876 sub=com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask] Task:com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask ID:5237b445-f5c7-d50c-99ad-3080d9fdb9ae. performing image scan on host : 192.168.12.6 (host-28)^M
2020-11-27T06:24:23.026Z info vmware-vum-server[28452] [Originator@6876 sub=ScanUtil] Calling host 192.168.12.6 (host-28) scan API ^M
2020-11-27T06:24:23.036Z error vmware-vum-server[28452] [Originator@6876 sub=ScanUtil] [ScanHostSystem] Falied to call host, unkown exception : No diagnostic information available.^M
2020-11-27T06:24:23.036Z error vmware-vum-server[28452] [Originator@6876 sub=com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask] Task:com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask ID:5237b445-f5c7-d50c-99ad-3080d9fdb9ae. Calling host-28 host Image Scan request failed. Skipping this host..Error: Error:^M
--> com.vmware.vapi.std.errors.error^M
--> Messages:^M
--> com.vmware.vcIntegrity.lifecycle.host.UnknownError<Unknown error occurred when invoking host API.>^M
--> ^M
2020-11-27T06:24:23.049Z info vmware-vum-server[28452] [Originator@6876 sub=com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask] Task:com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask ID:5237b445-f5c7-d50c-99ad-3080d9fdb9ae. performing image scan on host : 192.168.12.9 (host-125)^M
2020-11-27T06:24:23.071Z info vmware-vum-server[28452] [Originator@6876 sub=ScanUtil] Calling host 192.168.12.9 (host-125) scan API ^M
2020-11-27T06:24:23.081Z error vmware-vum-server[28452] [Originator@6876 sub=ScanUtil] [ScanHostSystem] Falied to call host, unkown exception : No diagnostic information available.^M
2020-11-27T06:24:23.081Z error vmware-vum-server[28452] [Originator@6876 sub=com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask] Task:com.vmware.vcIntegrity.lifecycle.DesiredScanClusterTask ID:5237b445-f5c7-d50c-99ad-3080d9fdb9ae. Calling host-125 host Image Scan request failed. Skipping this host..Error: Error:^M
--> com.vmware.vapi.std.errors.error^M
--> Messages:^M
--> com.vmware.vcIntegrity.lifecycle.host.UnknownError<Unknown error occurred when invoking host API.>^M
--> ^M

which is not very helpfu, unfortunately.

Most pieces of advice I found imply there is a connection problem, so I checked with netcat to make sure vcenter can successfully connect to ports 80 and 443 of esxi-hosts:

2020-11-27 10_01_40-192.168.12.114 - PuTTY.png

and vise versa:

2020-11-27 10_00_05-192.168.12.6 - PuTTY.png

Intrestingly, I had the same issue while upgrading 7.0 -> 7.0U1 and managed to resolve it with resetting update manager database as described in this KB  Yet, it does not seem right to reset database every time I need an upgrade.

Could you kindly help me to resolve the issue? What do I miss here? 

Any advice is greatly appreciated.

1 Reply
SliwinskaJ
Contributor
Contributor

I ran into the same problem, did you manage to solve it? I noticed that it is not present on higher versions of vCenter? I am curious what was fixed as the problem was noticed by vmware.

0 Kudos