Unable to vm_guest.upload_file when targeting vCenter Server
flands opened this issue · 0 comments
vm_guest.upload_file /vcs.local/dc/vms/vm -u /tmp/test -l /tmp/test -o
Request:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">env:Body<_this type="PropertyCollector">propertyCollector</_this>ManagedEntitynamegroup-d11FolderchildEntity/env:Body/env:Envelope
Response (in 0.042 s)
<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
datacenter-2namedc
/soapenv:Body
/soapenv:Envelope
Request:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">env:Body<_this type="PropertyCollector">propertyCollector</_this>DatacentervmFolderdatastoreFoldernetworkFolderhostFolderdatacenter-2/env:Body/env:Envelope
Response (in 0.042 s)
<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
datacenter-2datastoreFoldergroup-s5hostFoldergroup-h4networkFoldergroup-n6vmFoldergroup-v3
/soapenv:Body
/soapenv:Envelope
Request:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">env:Body<_this type="SearchIndex">SearchIndex</_this>group-v3vm/env:Body/env:Envelope
Response (in 0.042 s)
<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
vm-131
/soapenv:Body
/soapenv:Envelope
Request:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">env:Body<_this type="PropertyCollector">propertyCollector</_this>GuestOperationsManagerfileManagerguestOperationsManager/env:Body/env:Envelope
Response (in 0.041 s)
<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
guestOperationsManagerfileManagerguestOperationsFileManager
/soapenv:Body
/soapenv:Envelope
Request:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">env:Body<_this type="GuestFileManager">guestOperationsFileManager</_this>vm-1310rootvmware/tmp/test38114981/env:Body/env:Envelope
Response (in 0.081 s)
<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
https://10.16.16.70:443/guestFile?id=8&token=52ae4d94-bd0a-a4f9-7161-5ef65d1857cc8
/soapenv:Body
/soapenv:Envelope
uploading 3811498/3811498 bytes (100%)
RVC::Util::UserError: upload failed: Bad Request
/Users/flands/.rvm/gems/ruby-1.9.3-p362/gems/rvc-1.7.0/lib/rvc/util.rb:56:in err' /Users/flands/.rvm/gems/ruby-1.9.3-p362/gems/rvc-1.7.0/lib/rvc/util.rb:309:in
block in http_upload'
/Users/flands/.rvm/gems/ruby-1.9.3-p362/gems/rvc-1.7.0/lib/rvc/util.rb:290:in open' /Users/flands/.rvm/gems/ruby-1.9.3-p362/gems/rvc-1.7.0/lib/rvc/util.rb:290:in
http_upload'
/Users/flands/.rvm/gems/ruby-1.9.3-p362/gems/rvc-1.7.0/lib/rvc/modules/vm_guest.rb:313:in upload_file' /Users/flands/.rvm/gems/ruby-1.9.3-p362/gems/rvc-1.7.0/lib/rvc/command.rb:42:in
invoke'
/Users/flands/.rvm/gems/ruby-1.9.3-p362/gems/rvc-1.7.0/lib/rvc/shell.rb:124:in eval_command' /Users/flands/.rvm/gems/ruby-1.9.3-p362/gems/rvc-1.7.0/lib/rvc/shell.rb:73:in
eval_input'
/Users/flands/.rvm/gems/ruby-1.9.3-p362/gems/rvc-1.7.0/bin/rvc:160:in <top (required)>' /Users/flands/.rvm/gems/ruby-1.9.3-p362/bin/rvc:19:in
load'
/Users/flands/.rvm/gems/ruby-1.9.3-p362/bin/rvc:19:in <main>' /Users/flands/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in
eval'
/Users/flands/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `
The same command works if targeting an ESXi host.