Am 23.06.25 um 11:12 schrieb DERUMIER, Alexandre via pve-devel: >>> + my $blockdev = >>> PVE::QemuServer::Blockdev::generate_drive_blockdev($storecfg, >>> $device, {}); >>> + mon_cmd($vmid, 'blockdev-add', %$blockdev, timeout => 60); >>> + >>> + return 1; > > should we handle error here ? (I don't known if a blockdev-add can > fail , and if it need 60s timeout like drive-add, as I think that the > blockdev open is done in device-add)
Yes, we could remove the throttle group again if it fails. qmp_blockdev_add() calls bds_tree_init() which calls bdrv_open(). So I think using 60 seconds here like for "drive_add" is a sensible choice. Note that "device_add" currently only uses the default timeout of 5 seconds. I'm not aware about reports about failure there directly. I had sent a patch to increase that a while ago [0] because of a report with "netdev_add". But probably would be good to take in too. [0]: https://lore.proxmox.com/pve-devel/20241212100247.20926-1-f.eb...@proxmox.com/ _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel