Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1434743 - Boot guest failed with error "virtio_scsi_data_plane_handle_ctrl: Assertion `s->ctx && s->dataplane_started' failed"
Boot guest failed with error "virtio_scsi_data_plane_handle_ctrl: Assertion `...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev (Show other bugs)
7.4
ppc64le Linux
high Severity high
: rc
: ---
Assigned To: David Gibson
Yongxue Hong
: Regression
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-22 05:51 EDT by xianwang
Modified: 2017-08-01 23:39 EDT (History)
14 users (show)

See Also:
Fixed In Version: qemu-kvm-rhev-2.9.0-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-01 23:39:56 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:2392 normal SHIPPED_LIVE Important: qemu-kvm-rhev security, bug fix, and enhancement update 2017-08-01 16:04:36 EDT

  None (edit)
Description xianwang 2017-03-22 05:51:59 EDT
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 03:59:14 EDT
Works on qemu-kvm-rhev-2.8.0-6.el7.ppc64le . this is a regression.
Comment 7 David Gibson 2017-03-24 00:11:10 EDT
I've reproduced the problem on upstream.  Debugging..
Comment 8 David Gibson 2017-03-24 04:16:57 EDT
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 06:48:28 EDT
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-27 20:20:31 EDT
Series mentioned in comment 9 is now merged upstream as:
    3d69f821616a578aeed569b3b56e157922819602
    71407786054cad26de7ef66718b2a57a4bcb49b5
Comment 11 David Gibson 2017-03-27 20:33:49 EDT
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 07:00:33 EDT
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 07:13:14 EDT
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-01 23:39:56 EDT
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.