Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
boot a guest with virtio-scsi CD-ROM normally, after that hot-unplug the virtio-scsi controller, and then hot-plug a virtio-scsi controller and virtio-cd, and the aborted occurs. I do not know whether we support this hot-plug currently, but i think it is worthy to fix this issue.
Version-Release number of selected component (if applicable):
host info:
# uname -r & rpm -q qemu-kvm
2.6.32-246.el6.x86_64
qemu-kvm-0.12.1.2-2.236.el6.x86_64
# rpm -q seabios
seabios-0.6.1.2-8.el6.scsitest.x86_64
guest info:
# uname -r
2.6.32-246.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
1. boot a guest with virtio-scsi CD-ROM normally.
CLI:# /usr/libexec/qemu-kvm -enable-kvm -M rhel6.3.0 -smp 2 -m 2G -usb -device usb-tablet,id=input0 -name RHEL-Server-6.3-64 -uuid 9ff50ce8-5831-4556-b43f-84e9d5145e0b -drive file=/home/RHEL6.3_20120304.n.0_x86_64.qcow2,if=none,id=hd,format=qcow2,cache=none,werror=stop,rerror=stop -device virtio-scsi-pci,id=scsi0 -device scsi-disk,drive=hd,scsi-id=0,lun=0,id=scsi_image,bootindex=1 -netdev tap,script=/etc/qemu-ifup,id=netdev0 -device virtio-net-pci,netdev=netdev0,id=device-net0 -spice port=5910,disable-ticketing -vga qxl -monitor stdio -drive file=/home/RHEL6.0-20100922.1-Server-x86_64-DVD1.iso,if=none,id=cd -device virtio-scsi-pci,id=scsi1 -device scsi-cd,drive=cd,id=scsi_cd
2. check the block in qemu monitor.
(qemu) info block
hd: removable=0 io-status=ok file=/home/RHEL6.3_20120304.n.0_x86_64.qcow2 ro=0 drv=qcow2 encrypted=0
cd: removable=1 locked=0 tray-open=0 io-status=ok file=/home/RHEL6.0-20100922.1-Server-x86_64-DVD1.iso ro=0 drv=raw encrypted=0
3. hot-unplug the virtio-cd and virtio-scsi controller.
(qemu) device_del scsi_cd
(qemu) device_del scsi1
4. hot-plug a virtio-scsi controller.
(qemu) device_add virtio-scsi-pci,id=scsi1
5. hot-plug a virtio-cd.
(qemu) device_add scsi-cd,drive=cd,id=scsi_cd
Actual results:
after the step 4, the aborted occurs as following,
(qemu) device_add virtio-scsi-pci,id=scsi1
qemu-kvm: savevm.c:1190: register_savevm_live: Assertion `!se->compat || se->instance_id == 0' failed.
Aborted
Expected results:
we should hot-plug a virtio-scsi controller and virtio-cd successfully without any fails.
Additional info:
If we do not hot-unplug the virtio-scsi controller, and only hot-unplug virtio-cd in the step 3, and then we could hot-plug the virtio-cd successfully.
In step 4 I get
(qemu) device_add virtio-scsi-pci,id=scsi1
Duplicate ID 'scsi1' for device
If I use scsi2, I can hotplug successfully with
(qemu) __com.redhat_drive_add file=/home/pbonzini/Download/boot-RHEL-6.2.iso,id=cd
(qemu) device_add scsi-cd,drive=cd,id=scsi_cd
So, I suspect that if you used scsi2 it would also go away. Can you try doing the same with libvirt and see if it would fail?
If using scsi2 does not fix the problem, can you please provide a backtrace from gdb?
Moving to 6.4, but it's possible that the patch for bug 800710 fixes it.