vmware-archive / vcloud-rest

Unofficial ruby bindings for VMware vCloud Director®
Apache License 2.0
29 stars 37 forks source link

OVF upload fails #23

Closed tarak closed 10 years ago

tarak commented 10 years ago

See astratto/knife-vcloud#3:

Trying to upload an OVF file to our vCloud at work I got the following:

tarak@taraks_host > knife vc ovf upload testVDC testCatalog testApp "Example OVF upload" /var/folders/h6/b8sv_g295t9csx6v404g34qh0000gp/T/tmp.80HYgKktAF.ovf
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
Uploading OVF...
E, [2014-01-20T14:53:23.676689 #20301] ERROR -- : Exception detected: /var/folders/h6/b8sv_g295t9csx6v404g34qh0000gp/T/https://www.xx.yy.zz:443/transfer/b08af8f6-6854-4091-b56e-f41140551e27/descriptor.ovf not found..
ERROR: IOError: /var/folders/h6/b8sv_g295t9csx6v404g34qh0000gp/T/https://82.192.193.254:443/transfer/b08af8f6-6854-4091-b56e-f41140551e27/descriptor.ovf not found.

I use Mac OS X with Chef 11.8 on ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-darwin11.2.0] with knife-vcloud (1.1.0), knife-windows (0.5.14) and vcloud-rest (1.1.1).

I've created a log file as requested, please see:

https://gist.github.com/tarak/8537287

astratto commented 10 years ago

@tarak can you check out the commit I've just pushed (branch _ovffix) and let me know if it works for you?

Thanks

tarak commented 10 years ago

The OVF file must have been uploaded, but now the disk file cannot be found:

tarak@host> knife vc ovf upload testVDC testCatalog testApp "Example OVF upload" /Volumes/Untitled/Virtual Machines.localized/out.ovf
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
Uploading OVF...
E, [2014-01-27T10:17:07.979061 #7191] ERROR -- : Exception detected: /Volumes/Untitled/Virtual Machines.localized/https://VCLOUD_FQDN:443/transfer/2532ca58-2be0-4289-b40b-a0a0123ab0b1/out-disk1.vmdk not found..
ERROR: IOError: /Volumes/Untitled/Virtual Machines.localized/https://VCLOUD_FQDN:443/transfer/2532ca58-2be0-4289-b40b-a0a0123ab0b1/out-disk1.vmdk not found.

The disk file's path is

/Volumes/Untitled/Virtual Machines.localized/out-disk1.vmdk
astratto commented 10 years ago

@tarak ok, I should've fixed that as well. Please update your clone and let me know.

tarak commented 10 years ago

Works! Upload is running...

astratto commented 10 years ago

Fixed in 323b876fe9a81350e817df79706b3ec4faaa810e

Thanks!