siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
6.59k stars 527 forks source link

ova cannot be imported into vsphere #8672

Open Martin-Lierschof opened 5 months ago

Martin-Lierschof commented 5 months ago

Bug Report

Version: 1.7.0 and version 1.6.7 ova cannot be imported into vcenter/vsphere

Description

Downloading the file first locally: https://github.com/siderolabs/talos/releases/download/v1.7.0/vmware-amd64.ova https://github.com/siderolabs/talos/releases/download/v1.6.7/vmware-amd64.ova https://github.com/siderolabs/talos/releases/download/v1.6.5/vmware-amd64.ova

When importing via govc:

Same behavior is when importing it via the web ui of vsphere. 1.6.6 not tested.

Logs

400 Bad Request: {"type":"com.vmware.vapi.std.errors.not_allowed_in_current_state","value":{"error_type":"NOT_ALLOWED_IN_CURRENT_STATE","messages":[{"args":["complete","ERROR","Error transferring file disk.vmdk to ds:///xxxx. Reason: IO error during transfer of ds:///xxx: Pipe closed"],"default_message":"The operation complete can not be invoked when the import session is in the ERROR state. Reason: Error transferring file disk.vmdk to ds:///xxx. Reason: IO error during transfer of ds:///xxx: Pipe closed","id":"com.vmware.vdcs.cls-main.update_session_invalid_state_for_operation_reason"}]}}

Environment

smira commented 5 months ago

There were similar bugreports already, but there were no changes in the way VMWare images are built. Can you please gather some more logs from VMWare / contact VMWare support to figure out the problem?

We're happy to fix, but we have zero idea on what is wrong.

soulwhisper commented 4 months ago

As far as I know, this is an error for vmware, not talos. I am using script uploading image to vsphere like this govc library.import -n talos-drbd-170 k8s-talos "./talos-drbd-170.ova". Image tested from v1.6.0 to v1.7.1, all good.