vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.27k stars 899 forks source link

govc import ova template failing with version v0.38.0 #3483

Open abhinandanbaheti opened 3 days ago

abhinandanbaheti commented 3 days ago

Following command to upload vmtemplate fails with the latest released version of govc - v0.38.0, while it works with previous version and it successfully uploads the vm template to vCenter. govc import.ova -ds=${DATA_STORE} -host=${ESXI_HOST} -options=${TEMPLATE}.json ${TEMPLATE}.ova

Following error observed govc: The device or operation specified at index '1' is not supported for the existing virtual machine platform.

Could it be related to any configuration issue or incompatibility with the VM template and the vCenter ?

github-actions[bot] commented 3 days ago

Howdy 🖐   abhinandanbaheti ! Thank you for your interest in this project. We value your feedback and will respond soon.

If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.

dougm commented 1 day ago

Not aware of any related issues. Can you add the -trace flag, run with a govc version that works and with 0.38, then attach the 2 logs? We can take a look at the difference and the trace may also include more details on the fault.

govc import.ova -trace ... 2> import-ova-fails.log
abhinandanbaheti commented 7 hours ago

Error trace (IP is masked) `<?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">

1session[527671da-b1b9-5e78-8093-7ed4e9e0016e]5229a095-a215-0e76-6f11-629445a043f0entersession[527671da-b1b9-5e78-8093-7ed4e9e0016e]52d852bf-f672-c0aa-987e-f41593df0c66errorassigninfoassignstateassigninitializing POST /sdk HTTP/1.1^M Host: *.*.*.*^M Content-Type: text/xml; charset="utf-8"^M Soapaction: urn:vim25/8.0.3.0^M User-Agent: govc/0.38.0^M`