]> git.proxmox.com Git - qemu-server.git/commitdiff
nbd-stop: increase timeout to 25s
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 29 Sep 2023 08:28:58 +0000 (10:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Nov 2023 18:45:55 +0000 (19:45 +0100)
This can seemingly need a bit longer than expected, and better than
erroring out on migration is to wait a bit longer.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm

index 0568b2bc00af615dfcecb8b3c84dd720f30070ed..dbcd568570b982c19ca460b60a4226a6a4aa8616 100644 (file)
@@ -8268,7 +8268,7 @@ sub generate_smbios1_uuid {
 sub nbd_stop {
     my ($vmid) = @_;
 
-    mon_cmd($vmid, 'nbd-server-stop');
+    mon_cmd($vmid, 'nbd-server-stop', timeout => 25);
 }
 
 sub create_reboot_request {