Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Unable to vm_guest.upload_file when targeting vCenter Server #76

Open
flands opened this issue Feb 28, 2013 · 0 comments
Open

Unable to vm_guest.upload_file when targeting vCenter Server #76

flands opened this issue Feb 28, 2013 · 0 comments

Comments

@flands
Copy link
Contributor

flands commented Feb 28, 2013

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&amp;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:inblock 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:inhttp_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:ininvoke'
/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:ineval_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:inload'
/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:ineval'
/Users/flands/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `

'

The same command works if targeting an ESXi host.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant