Hi,
While trying to manually provisioning an Agent VM using registerAgentVM api as below is raising exception:
ManagedObjectReference vmMor = new ManagedObjectReference(); | |
vmMor.setType("VirtualMachine"); | |
vmMor.setValue("vm-21"); |
ManagedObjectReference regMor = eamPT.registerAgentVm(eamAgency, vmMor); |
javax.xml.ws.soap.SOAPFaultException caught does not have any detail or message.
Version info:
VC: 5.1
Esx: ESXi5.1
Below is from eam.log
DEBUG | 2013-08-01 12:39:37,907 | vlsi-3 | AgencyImpl.java | 1162 | Calculating which compute resources and hosts to add and remove agents from:agency-26. New scope:
eam.Agency.ComputeResourceScope {
computeResource = vmodl.ManagedObjectReference [
],
}
DEBUG | 2013-08-01 12:39:37,954 | vlsi-4 | LocalizationFilter.java | 57 | API COMPLETE: EsxAgentManager.createAgency [opId=929995897, sessionId=8A55B6CD]. Result:
'Agency:agency-26'
DEBUG | 2013-08-01 12:39:37,970 | vlsi-2 | ClientAuthenticator.java | 115 | API BEGIN: agency-26.registerAgentVm [opId=2021146434, sessionId=8A55B6CD]
INFO | 2013-08-01 12:39:37,970 | vlsi-3 | AgencyImpl.java | 1819 | agency-26 registering agent VM: 'VirtualMachine:vm-21'
DEBUG | 2013-08-01 12:39:37,985 | vlsi-4 | LocalizationFilter.java | 46 | API ERROR: agency-26.registerAgentVm [opId=2021146434, sessionId=8A55B6CD]. Fault:
vmodl.fault.ManagedObjectNotFound {
obj = 'VirtualMachine:vm-21',
}
com.vmware.vim.binding.vmodl.fault.ManagedObjectNotFound:
obj = com.vmware.vim.binding.vmodl.ManagedObjectReference@ae00b209
inherited from com.vmware.vim.binding.vmodl.fault.c
at com.vmware.eam.AgencyImpl.registerAgentVm(AgencyImpl.java:1833)
at com.vmware.eam.AgencyImpl.registerAgentVm(AgencyImpl.java:1892)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.vmware.vim.vmomi.server.impl.InvocationTask.run(InvocationTask.java:76)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)