From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 0EF7A1FF0AF for ; Thu, 10 Sep 2026 13:08:41 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 4A8FB2162C; Thu, 10 Sep 2026 13:08:37 +0200 (CEST) From: Dominik Csapak To: pve-devel@lists.proxmox.com Subject: [PATCH qemu-server 4/6] tests: hotplug: add test case for adding scsi14 on qemu 11.1 Date: Thu, 10 Sep 2026 13:00:31 +0200 Message-ID: <20260910110832.2822954-5-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260910110832.2822954-1-d.csapak@proxmox.com> References: <20260910110832.2822954-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.488 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: LIK4KKYPQP3I3GSEVM5OUSEMX7WMF3NZ X-Message-ID-Hash: LIK4KKYPQP3I3GSEVM5OUSEMX7WMF3NZ X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: this logic changed recently so that we add the necessary bridge by default, check this behavior. Signed-off-by: Dominik Csapak --- .../hotplug/disk-add-scsi14-qemu11.1.conf | 15 ++++++++++++ .../disk-add-scsi14-qemu11.1.conf.expected | 24 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 src/test/hotplug/disk-add-scsi14-qemu11.1.conf create mode 100644 src/test/hotplug/disk-add-scsi14-qemu11.1.conf.expected diff --git a/src/test/hotplug/disk-add-scsi14-qemu11.1.conf b/src/test/hotplug/disk-add-scsi14-qemu11.1.conf new file mode 100644 index 00000000..76344b41 --- /dev/null +++ b/src/test/hotplug/disk-add-scsi14-qemu11.1.conf @@ -0,0 +1,15 @@ +# TEST: hotplugging a SCSI disk whose new LSI controller needs a hotplugged PCI bridge fails +# QEMU_VERSION: 11.1.0 +bootdisk: scsi0 +cores: 2 +memory: 2048 +name: hotplug +net0: virtio=A2:C0:43:77:08:A0,bridge=vmbr0 +ostype: l26 +scsi0: local:8006/vm-8006-disk-0.qcow2,size=32G +smbios1: uuid=7b10d7af-b932-4c66-b2c3-3996152ec465 +sockets: 1 +vmgenid: c773c261-d800-4348-9f5d-167fadd53cf8 + +[PENDING] +scsi14: local:8006/vm-8006-disk-1.qcow2,size=32G diff --git a/src/test/hotplug/disk-add-scsi14-qemu11.1.conf.expected b/src/test/hotplug/disk-add-scsi14-qemu11.1.conf.expected new file mode 100644 index 00000000..c4f81c7a --- /dev/null +++ b/src/test/hotplug/disk-add-scsi14-qemu11.1.conf.expected @@ -0,0 +1,24 @@ +# recorded actions +storage activate_volumes ["local:8006/vm-8006-disk-1.qcow2"] +hmp device_add driver=lsi,id=scsihw2,bus=pci.4,addr=0x1 +qmp object-del {"id":"throttle-drive-scsi14"} +qmp object-add {"id":"throttle-drive-scsi14","limits":{},"qom-type":"throttle-group"} +qmp blockdev-add {"detect-zeroes":"on","discard":"ignore","driver":"throttle","file":{"cache":{"direct":true,"no-flush":false},"detect-zeroes":"on","discard":"ignore","driver":"qcow2","file":{"aio":"io_uring","cache":{"direct":true,"no-flush":false},"detect-zeroes":"on","discard":"ignore","driver":"file","filename":"/var/lib/vz/images/8006/vm-8006-disk-1.qcow2","node-name":"efa063c24a1f5d262b573eeb1ba16a3","read-only":false},"node-name":"ffa063c24a1f5d262b573eeb1ba16a3","read-only":false},"node-name":"drive-scsi14","read-only":false,"throttle-group":"throttle-drive-scsi14"} +hmp device_add driver=scsi-hd,bus=scsihw2.0,scsi-id=0,drive=drive-scsi14,id=scsi14,device_id=drive-scsi14,write-cache=on + +# hotplug errors + +# differences to a freshly started VM + +# resulting config +bootdisk: scsi0 +cores: 2 +memory: 2048 +name: hotplug +net0: virtio=A2:C0:43:77:08:A0,bridge=vmbr0 +ostype: l26 +scsi0: local:8006/vm-8006-disk-0.qcow2,size=32G +scsi14: local:8006/vm-8006-disk-1.qcow2,size=32G +smbios1: uuid=7b10d7af-b932-4c66-b2c3-3996152ec465 +sockets: 1 +vmgenid: c773c261-d800-4348-9f5d-167fadd53cf8 -- 2.47.3