Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 181285

Failed to create DataStore

$
0
0

Hello

 

I want to create datastore by using the SDK CreateVmfsDatastore, But when I run it I got the soap error :

<SOAP-ENV:Envelope xmlns:ns0="urn:vim25" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">   <SOAP-ENV:Header/>   <ns1:Body>      <ns0:CreateVmfsDatastore>         <ns0:_this type="HostDatastoreSystem">datastoreSystem-5406</ns0:_this>         <ns0:spec>            <ns0:diskUuid>0000000000766d686261313a313a30</ns0:diskUuid>            <ns0:partition/>            <ns0:vmfs>               <ns0:extent>                  <ns0:diskName>mpx.vmhba1:C0:T1:L0</ns0:diskName>                  <ns0:partition/>               </ns0:extent>               <ns0:majorVersion>5</ns0:majorVersion>               <ns0:volumeName>datastore_name</ns0:volumeName>            </ns0:vmfs>         </ns0:spec>      </ns0:CreateVmfsDatastore>   </ns1:Body></SOAP-ENV:Envelope>
suds.client: DEBUG: http failed:<?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><soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring>A specified parameter was not correct. </faultstring><detail><InvalidArgumentFault xmlns="urn:vim25" xsi:type="InvalidArgument"></InvalidArgumentFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
xsf.virt.vmware.client.utils: DEBUG: execute CreateVmfsDatastore took 0:00:00.504896 to run

Any idea what is wrong with the soap request?


Viewing all articles
Browse latest Browse all 181285

Trending Articles