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.

Bug 1333294

Summary: qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/hw/virtio-scsi.c:623: virtio_scsi_push_event: Assertion `event == 0' failed
Product: Red Hat Enterprise Linux 6 Reporter: Yanan Fu <yfu>
Component: qemu-kvmAssignee: Fam Zheng <famz>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: chayang, jen, mkenneth, rbalakri, virt-maint, yfu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-26 00:56:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1359965    
Attachments:
Description Flags
debug log for this bug none

Description Yanan Fu 2016-05-05 08:41:51 UTC
Created attachment 1154128 [details]
debug log for this bug

Description of problem:
Hit this bug when run virtual_block test with autotest.
python ConfigTest.py --category=virtual_block_device --guestname=RHEL.6.4 --platform=x86_64 --nicmodel=virtio_net --driveformat=virtio_blk,virtio_scsi --imageformat=qcow2 --display=spice --vcpu=8 --mem=8192

case: multi_disk_random_hotplug.parallel.single_type




Version:

Host kernel: 2.6.32-358.71.1.el6.x86_64
Guest kernel: 2.6.32-358.71.1.el6.x86_64
Qemu-kvm: qemu-kvm-0.12.1.2-2.355.el6_4.9.1.x86_64

How reproducible:


Steps to Reproduce:
1.boot guest with 4 qmp and 2 hmp monitor.
2.create 20 image in host, sg0,sg1,...sg19
3.6 thread to do device add/del
Th0: works with ['drive_stg0', 'stg0', 'drive_stg6', 'stg6', 'drive_stg12', 'stg12', 'drive_stg18', 'stg18'] devices

Th1: works with ['drive_stg1', 'stg1', 'drive_stg7', 'stg7', 'drive_stg13', 'stg13', 'drive_stg19', 'stg19'] devices

Th2: works with ['drive_stg2', 'stg2', 'drive_stg8', 'stg8', 'drive_stg14', 'stg14'] devices

Th3: works with ['drive_stg3', 'stg3', 'drive_stg9', 'stg9', 'drive_stg15', 'stg15'] devices

Th4: works with ['drive_stg4', 'stg4', 'drive_stg10', 'stg10', 'drive_stg16', 'stg16'] devices

Th5: works with ['drive_stg5', 'stg5', 'drive_stg11', 'stg11', 'drive_stg17', 'stg17'] devices

during device_add:
[qemu output] qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/hw/virtio-scsi.c:623: virtio_scsi_push_event: Assertion `event == 0' failed.

qemu crash, got core file.

Actual results:


Expected results:


Additional info:

CLI:
/usr/libexec/qemu-kvm \
    -S  \
    -name 'virt-tests-vm1' \
    -machine pc  \
    -nodefaults  \
    -vga qxl \
    -device AC97,bus=pci.0,addr=03  \
    -chardev socket,id=qmp_id_qmpmonitor1,path=/tmp/monitor-qmpmonitor1-20160428-171524-zTDJm6B8,server,nowait \
    -mon chardev=qmp_id_qmpmonitor1,mode=control  \
    -chardev socket,id=hmp_id_TestHMP1,path=/tmp/monitor-TestHMP1-20160428-171524-zTDJm6B8,server,nowait \
    -mon chardev=hmp_id_TestHMP1,mode=readline  \
    -chardev socket,id=hmp_id_TestHMP2,path=/tmp/monitor-TestHMP2-20160428-171524-zTDJm6B8,server,nowait \
    -mon chardev=hmp_id_TestHMP2,mode=readline  \
    -chardev socket,id=qmp_id_TestQMP1,path=/tmp/monitor-TestQMP1-20160428-171524-zTDJm6B8,server,nowait \
    -mon chardev=qmp_id_TestQMP1,mode=control  \
    -chardev socket,id=qmp_id_TestQMP2,path=/tmp/monitor-TestQMP2-20160428-171524-zTDJm6B8,server,nowait \
    -mon chardev=qmp_id_TestQMP2,mode=control  \
    -chardev socket,id=qmp_id_catch_monitor,path=/tmp/monitor-catch_monitor-20160428-171524-zTDJm6B8,server,nowait \
    -mon chardev=qmp_id_catch_monitor,mode=control  \
    -chardev socket,id=serial_id_serial0,path=/tmp/serial-serial0-20160428-171524-zTDJm6B8,server,nowait \
    -device isa-serial,chardev=serial_id_serial0  \
    -chardev socket,id=seabioslog_id_20160428-171524-zTDJm6B8,path=/tmp/seabios-20160428-171524-zTDJm6B8,server,nowait \
    -device isa-debugcon,chardev=seabioslog_id_20160428-171524-zTDJm6B8,iobase=0x402 \
    -device ich9-usb-ehci1,id=usb1,addr=1d.7,multifunction=on,bus=pci.0 \
    -device ich9-usb-uhci1,id=usb1.0,multifunction=on,masterbus=usb1.0,addr=1d.0,firstport=0,bus=pci.0 \
    -device ich9-usb-uhci2,id=usb1.1,multifunction=on,masterbus=usb1.0,addr=1d.2,firstport=2,bus=pci.0 \
    -device ich9-usb-uhci3,id=usb1.2,multifunction=on,masterbus=usb1.0,addr=1d.4,firstport=4,bus=pci.0 \
    -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=04 \
    -drive id=drive_image1,if=none,cache=none,snapshot=off,aio=native,format=qcow2,file=/home/autotest/client/tests/virt/shared/data/images/rhel64-64-virtio-scsi.qcow2 \
    -device scsi-hd,id=image1,drive=drive_image1,bootindex=0 \
    -device virtio-net-pci,mac=9a:d5:d6:d7:d8:d9,id=idZhcTDo,vectors=4,netdev=idb7ZYbY,bus=pci.0,addr=05  \
    -netdev tap,id=idb7ZYbY,vhost=on,vhostfd=23,fd=22  \
    -m 8192  \
    -smp 8,maxcpus=8,cores=4,threads=1,sockets=2  \
    -cpu 'SandyBridge' \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1  \
    -spice port=3000,password=123456,addr=0,image-compression=auto_glz,zlib-glz-wan-compression=auto,streaming-video=all,agent-mouse=on,playback-compression=on,ipv4  \
    -rtc base=utc,clock=host,driftfix=slew  \
    -boot order=cdn,once=c,menu=off \
    -enable-kvm

Comment 6 Fam Zheng 2016-10-26 00:56:09 UTC

*** This bug has been marked as a duplicate of bug 1333697 ***