Thanks very much for the reply!
I have tried as suggested and the script could send clone request to vCenter.
However, the clone failed with error, and there is no meaningful message on vCenter task board.
By checking the kamino.log file, there is error message as below:
2013-01-28 22:55:57,904 (Thread-3276) TRACE [WSClient] - SOAPSend : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><SetTaskState xmlns="urn:vim25"><_this type="Task">task-95020</_this><state>error</state></SetTaskState></soapenv:Body></soapenv:Envelope>
2013-01-28 22:55:57,935 (Thread-3276) TRACE [WSClient] - SOAPSend : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><RetrieveProperties xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet><propSet><type>Task</type><all>false</all><pathSet>info</pathSet></propSet><objectSet><obj type="Task">task-95020</obj><skip>false</skip></objectSet></specSet></RetrieveProperties></soapenv:Body></soapenv:Envelope>
2013-01-28 22:55:57,935 (Thread-3276) TRACE [WSClient] - SOAPReturned no fault. Object reference is org.dom4j.tree.DefaultElement@106e03ff [Element: <RetrievePropertiesResponse uri: urn:vim25 attributes: []/>]
2013-01-28 22:55:57,935 (Thread-3276) TRACE [WSClient] - SOAPSend : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><SetTaskDescription xmlns="urn:vim25"><_this type="Task">task-95020</_this><description><key>task-95020</key><message>Failed to get system version:server response did not contain <!DOCTYPE></message></description></SetTaskDescription></soapenv:Body></soapenv:Envelope>
2013-01-28 22:55:57,950 (Thread-3276) TRACE [WSClient] - SOAPFault : org.dom4j.tree.DefaultElement@26c862c6 [Element: <soapenv:Fault uri: http://schemas.xmlsoap.org/soap/envelope/ attributes: []/>]
2013-01-28 22:55:57,950 (Thread-3276) TRACE [WSClient] - SOAPFault (post parse) :com.vmware.vim25.ws.SoapFaultException: null; nested exception is:
com.vmware.vim25.InvalidRequest
2013-01-28 22:55:57,950 (Thread-3276) TRACE [WSClient] - SOAPFault (post parse details) - faultCode : ServerFaultCode faultString:
Error returned by expat parser: not well-formed (invalid token)
while parsing serialized value of type string
at line 1, column 394
while parsing property "message" of static type string
while parsing serialized DataObject of type vmodl.LocalizableMessage
at line 1, column 360
while parsing call information for method SetTaskDescription
at line 1, column 285
while parsing SOAP body
at line 1, column 271
while parsing SOAP envelope
at line 1, column 38
while parsing HTTP request for method UpdateDescription
on object of type vim.Task
at line 1, column 0
2013-01-28 22:55:57,950 (Thread-3276) ERROR [VmCloner] - bailOut: Failed to set the masterTask description
com.vmware.vim25.InvalidRequest
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.vmware.vim25.ws.XmlGen.fromXml(XmlGen.java:401)
at com.vmware.vim25.ws.XmlGen.parseSoapFault(XmlGen.java:159)
at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:132)
at com.vmware.vim25.ws.VimStub.setTaskDescription(VimStub.java:1493)
at com.vmware.vim25.mo.Task.setTaskDescription(Task.java:170)
at com.netapp.kamino.server.duplicator.VmCloner.bailOut(VmCloner.java:2560)
at com.netapp.kamino.server.duplicator.VmCloner.create(VmCloner.java:1151)
at com.netapp.kamino.server.duplicator.VmCloner.createClones(VmCloner.java:306)
at com.netapp.kamino.server.ApiImpl$cloneEngineThread.run(ApiImpl.java:970)
at java.lang.Thread.run(Unknown Source)
2013-01-28 22:55:57,982 (Thread-3276) TRACE [WSClient] - SOAPSend : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><RetrieveProperties xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet><propSet><type>Task</type><all>false</all><pathSet>info</pathSet></propSet><objectSet><obj type="Task">task-95020</obj><skip>false</skip></objectSet></specSet></RetrieveProperties></soapenv:Body></soapenv:Envelope>
2013-01-28 22:55:57,982 (Thread-3276) TRACE [WSClient] - SOAPReturned no fault. Object reference is org.dom4j.tree.DefaultElement@5fa3cd9f [Element: <RetrievePropertiesResponse uri: urn:vim25 attributes: []/>]
2013-01-28 22:55:57,982 (Thread-3276) DEBUG [VmCloner] - bailOut: Setting error message on masterTask(task-95020) - Failed to get system version:server response did not contain <!DOCTYPE>
2013-01-28 22:55:57,982 (Thread-3276) TRACE [WSClient] - SOAPSend : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Logout xmlns="urn:vim25"><_this type="SessionManager">SessionManager</_this></Logout></soapenv:Body></soapenv:Envelope>
where the task id is task-95020
I am working on a perl script, so I did not do anything about the certification thing.
and I am using the SOAP::Lite version 0.714
Any clue on this issue?