Remote Execution for VMware fails with "Failed to login to web service".

Remote Execution for VMware fails with "Failed to login to web service".

Summary

When performing Remote Execution to gather virtual machine inventory this fails with "Failed to login to web service", this can be seen in the etap.trace.

Symptoms

When performing Remote Execution to gather VMware Infrastructure Inventory this fails with "Failed to login to web service", this can be seen in the etap.trace when "+Scheduling/RemoteExecution" is enabled.

The full error message is as follows:

"Inventory/VMware/SDK): (0x01BA0A20) GenerateInventory: 0 hosts found

(0,Error/Occurrence/Error/420/9): Error Occurrence (s420m9): No hosts are connected to server HostName

(Scheduling/RemoteExecution/Common): Error for 'Hostname': Failed to login to web servicehttps://Hostname:443/sdk

(Scheduling/RemoteExecution/Common): Error for 'Hostname': SOAP fault: Die Anmeldung kann aufgrund eines falschen Benutzernamens oder Kennworts nicht abgeschlossen werden.

(Scheduling/RemoteExecution/Common): Error for 'Hostname': Failed to login to web service https://HostName:443/sdk

(Scheduling/RemoteExecution/Common): Error for 'Hostname': No hosts are connected to server HostName

(Scheduling/RemoteExecution/Common): Error retrieving inventory from VMwareInfrastructure SDK on 'hostname', code 0xe1a40009

(Scheduling/RemoteExecution/Agent/Threads): sub-thread 2360 completed, returning -1

(Scheduling/RemoteExecution/Agent/Threads): completed wait for sub-thread 2360 ",


Cause

This error message is caused by the account used for the Remote Execution task not having the permissions to access the VMware SDK and obtain the inventory data.


Resolution

To resolve the issue ensure the account used to perform the remote task has the correct permissions to access the Vmware SDK and the targeted host contains virtual machines, the account that performs the task can be located in the password store.

To verify if the account has the correct permissions to access the Vmware SDK the URL for the SDK web service outlined in the trace file can be used in a browser along with the credentials in the Password Store to verify access.

Labels (1)
Was this article helpful? Yes No
No ratings
Comments

By any chance, is there any available documentation on how to enable account permissions to VmWare SDK? - Thanks. 

Version history
Revision #:
1 of 1
Last update:
‎Jun 09, 2018 02:09 AM
Updated by: