qemu-server/PVE
Fiona Ebner 853757ccec fix #2816: restore: remove timeout when allocating disks
10 minutes is not long enough when disks are large and/or network
storages are used when preallocation is not disabled. The default is
metadata preallocation for qcow2, so there are still reports of the
issue [0][1]. If allocation really does not finish like the comment
describing the timeout feared, just let the user cancel it.

Also note that when restoring a PBS backup, there is no timeout for
disk allocation, and there don't seem to be any user complaints yet.

The 5 second timeout for receiving the config from vma is kept,
because certain corruptions in the VMA header can lead to the
operation hanging there.

There is no need for the $tmp variable before setting back the old
timeout, because that is at least one second, so we'll always be able
to set the $oldtimeout variable to undef in time in practice.
Currently, there shouldn't even be an outer timeout in the first
place, because the only call path leading to here is via the create
API (also used by qmrestore), both of which don't set a timeout.

[0]: https://forum.proxmox.com/threads/126825/
[1]: https://forum.proxmox.com/threads/128093/

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2023-09-15 16:27:44 +02:00
..
API2 migration: alloc nbd disks: fix fall-back for remote live migration 2023-07-27 10:05:20 +02:00
CLI qm: remote migration: improve error when storage cannot be found 2023-06-09 09:49:40 +02:00
QemuServer drive: Fix typo in description of efitype 2023-09-06 11:55:11 +02:00
VZDump vzdump: pbs: factor out getting and checking encryption keys 2023-07-06 17:44:18 +02:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm qemuserver: foreach_volid: always include pending disks 2023-06-21 12:48:11 +02:00
QemuMigrate.pm migration: fix issue with qcow2 cloudinit disk live migration 2023-06-21 12:48:11 +02:00
QemuServer.pm fix #2816: restore: remove timeout when allocating disks 2023-09-15 16:27:44 +02:00
QMPClient.pm remove left-over mentions of to-be-dropped, outdated QMP commands 2023-06-07 19:36:45 +02:00