Why qemu-kvm is crashing with error "scsi_target_emulate_report_luns: Assertion `i == n + 8' failed"
Issue
- The qemu-kvm is getting crashed with the error below if the VM is requesting a
REPORT LUNS
and if any of the disks were hot plugged/unplugged during the same time.
qemu-kvm: hw/scsi/scsi-bus.c:415: scsi_target_emulate_report_luns: Assertion `i == n + 8' failed.
2020-08-06 04:03:04.940+0000: shutting down, reason=crashed
- The issue is observed in the backup vendor's agent VMs in RHV where there will be lot of disk hot plugging/unplugging happening while doing the backup of VMs.
Environment
- Red Hat Virtualization 4.3.
- Red Hat Enterprise Linux 7.8.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.