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 1434743 - Boot guest failed with error "virtio_scsi_data_plane_handle_ctrl: Assertion `s->ctx && s->dataplane_started' failed"
Summary: Boot guest failed with error "virtio_scsi_data_plane_handle_ctrl: Assertion `...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.4
Hardware: ppc64le
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: David Gibson
QA Contact: Yongxue Hong
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-22 09:51 UTC by xianwang
Modified: 2017-08-02 03:39 UTC (History)
14 users (show)

Fixed In Version: qemu-kvm-rhev-2.9.0-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-02 03:39:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:2392 0 normal SHIPPED_LIVE Important: qemu-kvm-rhev security, bug fix, and enhancement update 2017-08-01 20:04:36 UTC

Description xianwang 2017-03-22 09:51:59 UTC
Description of problem:
Boot a guest with qemu cli including "-object iothread", booting failed and qemu prompt error information.

Version-Release number of selected component (if applicable):
RHEL-7.4-20170317.n.0 Server ppc64le
kernel-3.10.0-623.el7
qemu-kvm-rhev-2.9.0-0.el7.mrezanin201703210848.ppc64le
SLOF-20170303-1.git66d250e.el7.noarch

How reproducible:
3/3

Steps to Reproduce:
1.Boot a guest with qemu cli:
/usr/libexec/qemu-kvm -object iothread,id=iothread0 -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=09,iothread=iothread0 -drive id=drive_image1,if=none,snapshot=off,aio=threads,cache=unsafe,format=qcow2,file=/root/test.qcow2 -device scsi-hd,id=image1,drive=drive_image1,bus=virtio_scsi_pci0.0,bootindex=0
2.
3.

Actual results:
Boot guest failed and qemu prompt error message as following:

VNC server running on ::1:5900
qemu-kvm: /builddir/build/BUILD/qemu-2.9.0/hw/scsi/virtio-scsi-dataplane.c:66: virtio_scsi_data_plane_handle_ctrl: Assertion `s->ctx && s->dataplane_started' failed.
Aborted


Expected results:
Boot guest sccessfully and vm works well 

Additional info:

Comment 4 Zhengtong 2017-03-23 07:59:14 UTC
Works on qemu-kvm-rhev-2.8.0-6.el7.ppc64le . this is a regression.

Comment 7 David Gibson 2017-03-24 04:11:10 UTC
I've reproduced the problem on upstream.  Debugging..

Comment 8 David Gibson 2017-03-24 08:16:57 UTC
Looks to be a race condition - just occasionally the assert() doesn't trip.  This is making a bisect difficult.

Comment 9 Paolo Bonzini 2017-03-24 10:48:28 UTC
Upstream patch series:

[Qemu-devel] [PATCH for-2.9 v3 0/2] virtio-scsi: Fix assertion failure on dataplane handlers

Comment 10 David Gibson 2017-03-28 00:20:31 UTC
Series mentioned in comment 9 is now merged upstream as:
    3d69f821616a578aeed569b3b56e157922819602
    71407786054cad26de7ef66718b2a57a4bcb49b5

Comment 11 David Gibson 2017-03-28 00:33:49 UTC
Those patches have gone into 2.9, so we should get a fix for this in a subsequent 2.9 rebase.

Comment 12 Yongxue Hong 2017-04-12 11:00:33 UTC
This bug is fixed in quemu 2.9.0-rc2.The following is the step of verification:

The version:
kernel tree:RHEL-7.4-20170330.1-Server-ppc64le
host:3.10.0-643.el7.ppc64le
guest:3.10.0-643.el7.ppc64le
qemu:qemu-kvm-rhev-2.9.0-0.el7.patchwork201703291116
slof:20170303-1.git66d250e.el7

The verification of cli:
/usr/libexec/qemu-kvm \
-name need-info \
-M pseries-rhel7.4.0 \
-m 8G \
-nodefaults \
-smp 4,sockets=4,cores=1,threads=1 \
-boot menu=on,order=cd \
-device VGA,id=vga0 \
-device nec-usb-xhci,id=xhci \
-device usb-tablet,id=usb-tablet0 \
-device usb-kbd,id=usb-kbd0 \
-object iothread,id=iothread0 \
-device virtio-scsi-pci,id=virtio_scsi_pci1 \
-device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=09,iothread=iothread0 \
-drive id=drive_image1,if=none,snapshot=off,aio=threads,cache=unsafe,format=qcow2,file=/root/test.qcow2 \
-device scsi-hd,id=image1,drive=drive_image1,bus=virtio_scsi_pci0.0,bootindex=0 \
-netdev tap,id=hostnet0,script=/etc/qemu-ifup \
-device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=40:f2:e9:5d:9c:01 \
-monitor stdio \
-serial unix:./sock1,server,nowait \
-qmp tcp:0:3001,server,nowait \
-vnc :1

Actual results:
Boot guest sccessfully and vm works well ,there is no error info.

Comment 14 Yongxue Hong 2017-04-27 11:13:14 UTC
Verification:

Version:
kernel tree:RHEL-7.4-20170330.1-Server-ppc64le
host:3.10.0-656.el7.ppc64le
qemu:qemu-kvm-rhev-2.9.0-1.el7
SLOF:SLOF.noarch 20170303-1.git66d250e.el7

The step of verification is same to the Comment 12.

Actual results:
Boot guest sccessfully and the vm works well,there is no error info.
So the bug is fixed in the version of qemu-kvm-rhev-2.9.0-1.el7 and change the status to verified.

Comment 16 errata-xmlrpc 2017-08-02 03:39:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:2392


Note You need to log in before you can comment on or make changes to this bug.