We are trying to create a new virtual machine using vmware api. The system logs (/var/log/hostd.log) shows the following error:
2014-11-04T09:12:12.609Z [28580B70 verbose 'Cimsvc'] Ticket issued for CIMOM version 1.0, user root
2014-11-04T09:12:15.942Z [269C2B70 error 'SoapAdapter.HTTPService'] Failed to read request; stream: <io_obj p:0x27149470
, h:-1, <TCP '0.0.0.0:0'>, <TCP '0.0.0.0:0'>>, error: N7Vmacore16TimeoutExceptionE(Operation timed out)
2014-11-04T09:12:15.998Z [28580B70 verbose 'SoapAdapter'] Unrecognized version URI "urn:vim25/test"; using default
handler for "urn:vim25/5.5"
pam_per_user: create_subrequest_handle(): doing map lookup for user "cubit"
pam_per_user: create_subrequest_handle(): creating new subrequest (user="cubit", service="system-auth-generic")
Accepted password for user cubit from 10.2.46.4
2014-11-04T09:12:16.078Z [253C2B70 info 'Vimsvc.ha-eventmgr' opID=hostd-abd2] Event 37606 : User cubit@10.2.46.4 logged
in as VI Perl
2014-11-04T09:12:16.103Z [25381B70 info 'Vimsvc.TaskManager' opID=hostd-459b user=cubit] Task Created : haTask--vim.
SearchIndex.findByInventoryPath-89996897
2014-11-04T09:12:16.104Z [25381B70 verbose 'Solo.SearchIndex' opID=hostd-459b user=cubit] FindByInventoryPath:
inventoryPath = ha-datacenter
2014-11-04T09:12:16.104Z [25381B70 verbose 'Solo.SearchIndex' opID=hostd-459b user=cubit] GetMatchingChild: node = <null
>, childName = ha-datacenter
2014-11-04T09:12:16.104Z [25381B70 verbose 'Solo.SearchIndex' opID=hostd-459b user=cubit] RefToNamedManagedEntity: ref =
vim.Datacenter:ha-datacenter, name = ha-datacenter
2014-11-04T09:12:16.104Z [25381B70 verbose 'Solo.SearchIndex' opID=hostd-459b user=cubit] RefNamedManagedEntity: result
= vim.Datacenter:ha-datacenter
2014-11-04T09:12:16.104Z [25381B70 verbose 'Solo.SearchIndex' opID=hostd-459b user=cubit] GetMatchingChild: returning
child = [N4Solo17HaFixedDatacenterE:0x1f47865c]
2014-11-04T09:12:16.104Z [25381B70 verbose 'Solo.SearchIndex' opID=hostd-459b user=cubit] FindByInventoryPath returning
vim.Datacenter:ha-datacenter
2014-11-04T09:12:16.104Z [25381B70 info 'Vimsvc.TaskManager' opID=hostd-459b user=cubit] Task Completed : haTask--vim.
SearchIndex.findByInventoryPath-89996897 Status success
2014-11-04T09:12:16.106Z [28580B70 verbose 'DatastoreBrowser' opID=hostd-50e2 user=cubit] 4f58eb42-6cf1e6bc-2855-
3cd92b09c6ba-datastorebrowser::Search Path = [datastore1] Spec = (vim.host.DatastoreBrowser.SearchSpec) {
--> dynamicType = <unset>,
--> query = (vim.host.DatastoreBrowser.Query) [
--> (vim.host.DatastoreBrowser.FolderQuery) {
--> dynamicType = <unset>,
--> },
--> (vim.host.DatastoreBrowser.Query) {
--> dynamicType = <unset>,
--> }
--> ],
--> details = (vim.host.DatastoreBrowser.FileInfo.Details) {
--> dynamicType = <unset>,
--> fileType = true,
--> fileSize = false,
--> modification = false,
--> fileOwner = false,
--> },
--> searchCaseInsensitive = <unset>,
--> matchPattern = (string) [
--> "cu003\.myhost\.com"
--> ],
--> sortFoldersFirst = <unset>,
--> }
2014-11-04T09:12:16.107Z [28580B70 info 'DatastoreBrowser' opID=hostd-50e2 user=cubit] 4f58eb42-6cf1e6bc-2855-
3cd92b09c6ba-datastorebrowser::SearchInt
2014-11-04T09:12:16.107Z [28580B70 verbose 'DatastoreBrowser' opID=hostd-50e2 user=cubit] 4f58eb42-6cf1e6bc-2855-
3cd92b09c6ba-datastorebrowser::GetLocalpathFromDatastorepath
2014-11-04T09:12:16.107Z [28580B70 verbose 'DatastoreBrowser' opID=hostd-50e2 user=cubit] 4f58eb42-6cf1e6bc-2855-
3cd92b09c6ba-datastorebrowser::Verify
2014-11-04T09:12:16.111Z [269C2B70 verbose 'HTTP server /folder'] Sent NotFound response for GET /folder/cu003.myhost.com?dsName=datastore1
2014-11-04T09:12:16.119Z [250CBB70 verbose 'Default' opID=C05D9B40-0000080C user=root] AdapterServer: target='vmodl.
query.PropertyCollector:ha-property-collector', method='waitForUpdates'
2014-11-04T09:12:16.149Z [253C2B70 verbose 'SoapAdapter'] Unrecognized version URI "urn:vim25/test"; using default
handler for "urn:vim25/5.5"
2014-11-04T09:12:16.150Z [25381B70 verbose 'Default' opID=D983AFC3-000003E2 user=root] AdapterServer: target='vmodl.
query.PropertyCollector:ha-property-collector', method='waitForUpdates'
2014-11-04T09:12:16.150Z [28580B70 verbose 'Default' opID=hostd-fb4f user=cubit] CloseSession called for session id=
e58547b6-0e56-252d-8fe1-955c4e7cdb60
2014-11-04T09:12:16.150Z [28580B70 info 'Vimsvc.ha-eventmgr' opID=hostd-fb4f user=cubit] Event 37607 : User cubit@10.2.
46.4 logged out (login time: Tuesday, 04 November, 2014 09:11:26, number of API invocations: 0, user agent: VI Perl)
2014-11-04T09:12:16.711Z [28580B70 verbose 'SoapAdapter'] Unrecognized version URI "urn:vim25/test"; using default
handler for "urn:vim25/5.5"
We already raised with the vmware support team.. here is the email discussion:
Hello Rengarajan,
As discussed, since SDK entitlement is not part your account you can post this issue on our communities link.
I will proceed with archiving the SR if you have no further questions.
Thank you for choosing VMware Products.
On 05/11/2014, "VMware Technical Support" <webform@vmware.com> <webform@vmware.com> wrote:
> ** Please do not change the subject line of this email if you wish to
> respond. **
>
> Hello Rengarajan,
>
> My name is Kishore Kumar J and I am taking ownership of the Support
> Request#14550657711.
>
> I understand from your case description that you are getting an error when
> trying to execute a script on vCLI. Correct me if I am wrong.
>
> Please note that for assistance with vCLI scripts you need to speak to our
> SDK support team. SDK support is available if you have SDK entitlement on
> your account.
>
> kindly refer the below URL for details on SDK Support.
>
> https://www.vmware.com/support/sdk.html
>
> https://www.vmware.com/support/services/sdk/sdk-overview.html
>
> You can validate if your account has SDK entitlement by speaking with our
> customer service team@1-877-486-9273.
>
> Let me know if you have any questions.
>
> Regards,
> Kishore kumar J
> ITIL V3 Foundations | CCNA | VCP5
> Technical Support Engineer
> Global Support Services, VMware Inc.
> 1-877-4-VMWARE (1-877-486-9273)
> Office Hours: Monday-Friday 09:00AM – 06:00PM IST.
> Review your Support Requests Online: http://support.vmware.com/selfsupport/
> Existing Service Request: 1-877-4-VMWARE (1-877-486-9273), Option 4 for
> Support, Option 2
> Satisfied customers are our top priority. Please contact my manager, Neha
> Jain: njain@vmware.com , if you would like to provide feedback on your
> support experience.
>
>
> Please visit us at: http://www.vmware.com/support/
> VMware Knowledge Base: http://www.vmware.com/r/knowledgebase.html
> VMware Documentation: http://www.vmware.com/support/pubs/
> ref:_00D409hQR._50080cJpMv:ref
>
On 04/11/2014, VMware Technical Support <webform@vmware.com> wrote:
> ** This is a post-only email. Please do not reply. **
>
> Dear Rengarajan Govindan,
>
> Thank you for requesting support from VMware.
> Your Support Request Number is 14550657711
> Commit Time: 2014-11-05 17:12 IST
> Severity of Support Request: 3 - Medium
>
> If you have not had the opportunity to upload log files related to the
> problem you are experiencing please do so now. This will expedite the
> resolution of your problem. Our knowledge article explains the steps to
> collect and upload log files; http://kb.vmware.com/kb/1008524
>
> A copy of your Support Request is included at the end of this message.
> You may review the status of your Support Request at anytime by accessing:
> http://www.vmware.com/support/sr/sr_history.jsp
>
>
> We also offer several Web-based resources to assist our customers in finding
> answers to their questions quickly. Many issues reported by users are
> addressed and posted in our knowledgebase which you can access at:
> http://www.vmware.com/support/kb/enduser/std_alp.php
>
> Submit Support Requests and Receive Troubleshooting Alerts with vSphere Web
> Client.
>
> You can open support requests, update existing support requests, and
> identify issues in your vSphere environment before outages occur – all
> through your vSphere Web Client. Use vCenter Support Assistant, a free
> vCenter plug-in, to shorten the time needed to submit support requests,
> collect and upload diagnostic support data, and troubleshoot technical
> issues. Support Assistant allows you to open and manage support requests
> directly in the vSphere Web Client. It also automates the process of
> collecting and uploading ESXi and vCenter Server log files and matches this
> data to a continuously updated list of known customer issues to provide you
> with proactive alerts and recommended fixes. To save time and improve your
> support experience, download Support Assistant for free today!
>
> Download here:
> http://www.vmware.com/go/download-vcenter-support-assistant
>
> Learn more here:
> https://www.vmware.com/products/vcenter-support-assistant/overview.html
>
> In addition, VMTN discussion forums are available at:
> http://www.vmware.com/community/index.jspa for the VMware user community to
> share work-arounds, fixes, technical tips, and other valuable information
> about using our products.
>
> Based on the support contract you purchased with your VMware software, you
> are entitled to Basic Support Agreement.
> We will review your Support Request and respond appropriately based on the
> severity of your issue in accordance with our response policy at:
> http://www.vmware.com/support/policies/response.html
>
> Thank you for using VMware software.
>
> Sincerely,
> VMware Customer Service
> ref:_00D409hQR._50080cJpMv:ref
>
> You filed the following Support Request:
>
> Customer Email: rengarajan@collab.net
> Phone: 914442203763
> Contact: Rengarajan Govindan
> Entitlement: Basic Support Agreement
> Region: APJ
> Commit Time: 2014-11-05 17:12 IST
> Severity of Support Request: 3 - Medium
> Description of Support Request: Team,
>
> We are using vmware vsphere cli (5.5/5.5u1)to build boxes in ESXI (5.5 u1).
> ERROR: EsxGuest.status
> SOAP request error - possibly a
> protocol issue: <?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>
> <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj
> type="VirtualMachine">1697</obj><propSet><name>summary.
> config.vmPathName</name><val xsi
> :type="xsd:string">[datastore1]
> cu117.myhost.com/cu117.myhost.com.vmx</val></propSet></returnval><
> returnval><obj type="VirtualMac
> hine">1701</obj><propSet><name>summary.config.vmPathName</name><val
> xsi:type="xsd:string">[datastore1] cu171.myhost.com/cu171.myhost
> .com.vmx</val></propSet></returnval><returnval><obj
> type="VirtualMachine">1854</obj><propSet><name>summary.config.
> vmPa
> Nov 04 02:54:31 [16973] ERROR: VmfsDir.exists failed to verify existence of
> directory '[datastore1] cu003.myhost.com
> Nov 04 02:59:12 [16973] ERROR: EsxGuest.create_new_disk Unable to create
> disk [datastore1] cu003.myhost.com/cu003.
> myhost.com.vmdk: Unable
> to create virtual disk : SOAP request error - possibly a protocol issue:
> <?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>
> <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj
> type="Task">haTask--vim.VirtualDiskManager.
> createVirtualDisk-90007550</obj><propSet><name>availableField</name><val
> xsi:type="ArrayOfCustomFieldDef"></val></
> propSet><propSet><name>info</name><val
> xsi:type="TaskInfo"><key>haTask--vim.VirtualDiskManager.createVirtualDisk-
> 90007550</key><task
> type="Task">haTask--vim.VirtualDiskManager.createVirtualDisk-90007550</task><name>
> CreateVirtualDisk_Task</name><descriptionId>VirtualDiskManager.createVirtualDisk</descriptionId><state>running</state><
> cancelled>false
> Date Entered: 11/4/2014
> Support Request ID: 14550657711
> Preferred Contact Method: Email
>
Can someone please help. Thanks in advance..
That looks like the usual OpenSSL issue with LibWWW. Try downgrading your libwww to 6.03. You can get a bit more information here. If you look around the forums, you'll find other references to Perl and the issues with the SSL libraries from libwww.
Are you actually having an error during the script tool execution? VMware's Perl SDK has used the urn:vim25/test for a while. I believe it just defaults to the current version of the SDK you're targeting on the vCenter API target endpoint side -- this makes it backwards compatible. If you wanted to, you could modify the urn:vim25/test to urn:vim25/5.5 by editing VICommon.pm, but I wouldn't recommend this.
You highlighted the logout event in the log. Are you experiencing an automatic logout and don't want to? That might be because you didn't set your logout_on_disconnect in your script to false, or perhaps your VIM global variable is falling out of scope during your script execution and calling it's deconstructor (which invokes logout unless you disable it with logout_on_disconnect).
Stumpr,
Thanks for your response. I believe I did not give sufficient information for you. Sorry for that,
We are using VMWare ESXI 5.5U1 with VMWare VSphere CLI 5.5 on CentOS 7.
Now when we run the command:
vmkfstools --server cu001.myhost.com -c 20G -a lsilogic -d thin "[datastore1] cu003.myhost.com/cu003.myhost.com.vmdk"
we are getting the following error:
Attempting to create virtual disk [datastore1] cu003.myhost.com/cu003.myhost.com.vmdk
Unable to create virtual disk : SOAP request error - possibly a protocol issue: <?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>
<RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="Task">haTask--vim.VirtualDiskManager.createVirtualDisk-90049320</obj><propSet><name>availableField</name><val xsi:type="ArrayOfCustomFieldDef"></val></propSet><propSet><name>info</name><val xsi:type="TaskInfo"><key>haTask--vim.VirtualDiskManager.createVirtualDisk-90049320</key><task type="Task">haTask--vim.VirtualDiskManager.createVirtualDisk-90049320</task><name>CreateVirtualDisk_Task</name><descriptionId>VirtualDiskManager.createVirtualDisk</descriptionId><state>running</state><cancelled>false
Not sure what is going on.. any ideas..
That looks like the usual OpenSSL issue with LibWWW. Try downgrading your libwww to 6.03. You can get a bit more information here. If you look around the forums, you'll find other references to Perl and the issues with the SSL libraries from libwww.
stumpr,
Thank you for the reply. We tried the initially.. its was not working with libwww-per-6.03. Now tried again with libwww-perl-5.837, its working greatly. Thanks you so much for your time and thoughts.
Thanks for posting back what version worked for you as well.
