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

Interestingly, 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.

Reply
0 Kudos
5 Replies
GlebA
Contributor
Contributor

Any ideas please?

What else can I check to found the root cause of the problem?

Reply
0 Kudos
scott28tt
VMware Employee
VMware Employee

@GlebA 

Moderator: Moved to Update Manager Discussions


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
jbethune
Contributor
Contributor

I have the same issue for a 3 host cluster. Hopefully someone can give us some things to try before I invoke a support call.

Reply
0 Kudos
GlebA
Contributor
Contributor

@jbethune 

It looks like vmware support is the only option. Unfortunately, the company I'm currently working for does not have the support contract right now.

Reply
0 Kudos
GlebA
Contributor
Contributor

I managed to update it somehow. Nothing had changed, yet one day I tried again and it worked perfectly well on both of my hosts. Maybe it's not the best advice, but just triyng again from time to time helps.

It would be nice if vmWare support team could help us to figure it out.

Tags (1)
Reply
0 Kudos