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 1991913 - qemu will crash after creating a mirror target and reset
Summary: qemu will crash after creating a mirror target and reset
Keywords:
Status: CLOSED DUPLICATE of bug 1950192
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: qemu-kvm
Version: 9.0
Hardware: s390x
OS: Linux
urgent
urgent
Target Milestone: beta
: ---
Assignee: Virtualization Maintenance
QA Contact: virt-qe-z
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-10 11:43 UTC by bfu
Modified: 2021-08-24 10:24 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-24 10:23:49 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-93007 0 None None None 2021-08-10 11:55:44 UTC

Description bfu 2021-08-10 11:43:01 UTC
Description of problem:
qemu crashed after creating a mirror target and reset system

Version-Release number of selected component (if applicable):
host kernel:5.14.0-0.rc4.35.el9.s390x
guest kernel:5.14.0-0.rc4.35.el9.s390x
qemu version:qemu-kvm-6.0.0-10.el9.s390x

How reproducible:
100%

Steps to Reproduce:
1.boot up guest with:
/usr/libexec/qemu-kvm \
    -name 'avocado-vt-vm1'  \
    -sandbox on  \
    -machine s390-ccw-virtio,memory-backend=mem-machine_mem  \
    -nodefaults  \
    -vga none \
    -m 11264 \
    -object memory-backend-ram,size=11264M,id=mem-machine_mem  \
    -smp 6,maxcpus=6,cores=3,threads=1,sockets=2  \
    -cpu 'host' \
    -chardev socket,id=chardev_serial0,server,path=/tmp/bfu,nowait \
    -device sclpconsole,id=serial0,chardev=chardev_serial0 \
    -device virtio-scsi-ccw,id=virtio_scsi_ccw0 \
    -blockdev node-name=file_image1,driver=file,auto-read-only=on,discard=unmap,aio=threads,filename=/home/bfu/kar/vt_test_images/rhel900-s390x-virtio-scsi.qcow2,cache.direct=on,cache.no-flush=off \
    -blockdev node-name=drive_image1,driver=qcow2,read-only=off,cache.direct=on,cache.no-flush=off,file=file_image1 \
    -device scsi-hd,id=image1,drive=drive_image1,write-cache=on \
    -device virtio-net-ccw,mac=9a:1f:b6:33:89:1c,id=ida57wsr,netdev=id6wg5Ut  \
    -netdev tap,id=id6wg5Ut,vhost=on  \
    -nographic  \
    -rtc base=utc,clock=host,driftfix=slew \
    -boot strict=on \
    -enable-kvm \
    -device virtio-mouse-ccw,id=input_mouse1 \
    -device virtio-keyboard-ccw,id=input_keyboard1 \
    -qmp stdio
2. create mirror through qmp
    1.{"execute": "qmp_capabilities", "id": "0xTEDyx6"}
    2.{"execute": "blockdev-create", "arguments": {"options": {"driver": "file", "filename": "/root/avocado/data/avocado-vt/mirror1.qcow2", "size": 21474836480}, "job-id": "file_mirror1"}, "id": "drLZogLG"}
    3.{"execute": "blockdev-add", "arguments": {"node-name": "file_mirror1", "driver": "file", "filename": "/root/avocado/data/avocado-vt/mirror1.qcow2", "aio": "threads", "auto-read-only": true, "discard": "unmap"}, "id": "b1HVgVKt"}
    4.{"execute": "blockdev-create", "arguments": {"options": {"driver": "qcow2", "file": "file_mirror1", "size": 21474836480}, "job-id": "drive_mirror1"}, "id": "ZtDGcR9l"}
    5. {"execute": "blockdev-add", "arguments": {"node-name": "drive_mirror1", "driver": "qcow2", "file": "file_mirror1", "read-only": false}, "id": "fgX2iuWj"}
    6. {"execute": "blockdev-mirror", "arguments": {"sync": "full", "device": "drive_image1", "target": "drive_mirror1", "job-id": "drive_image1_gDYP"}, "id": "xyAnKPcW"}
 
3.reset system through qmp
    {"execute": "system_reset", "id": "lezv4Z6B"}

Actual results:
qemu-kvm: ../util/qemu-coroutine-lock.c:57: qemu_co_queue_wait_impl: Assertion `qemu_in_coroutine()' failed.
test.sh: line 25: 201818 Aborted                 (core dumped) /usr/libexec/qemu-kvm -name 'avocado-vt-vm1' -sandbox on -machine s390-ccw-virtio,memory-backend=mem-machine_mem -nodefaults -vga none -m 11264 -object memory-backend-ram,size=11264M,id=mem-machine_mem -smp 6,maxcpus=6,cores=3,threads=1,sockets=2 -cpu 'host' -chardev socket,id=chardev_serial0,server,path=/tmp/bfu,nowait -device sclpconsole,id=serial0,chardev=chardev_serial0 -device virtio-scsi-ccw,id=virtio_scsi_ccw0 -blockdev node-name=file_image1,driver=file,auto-read-only=on,discard=unmap,aio=threads,filename=/home/bfu/kar/vt_test_images/rhel900-s390x-virtio-scsi.qcow2,cache.direct=on,cache.no-flush=off -blockdev node-name=drive_image1,driver=qcow2,read-only=off,cache.direct=on,cache.no-flush=off,file=file_image1 -device scsi-hd,id=image1,drive=drive_image1,write-cache=on -device virtio-net-ccw,mac=9a:1f:b6:33:89:1c,id=ida57wsr,netdev=id6wg5Ut -netdev tap,id=id6wg5Ut,vhost=on -nographic -rtc base=utc,clock=host,driftfix=slew -boot strict=on -enable-kvm -device virtio-mouse-ccw,id=input_mouse1 -device virtio-keyboard-ccw,id=input_keyboard1 -qmp stdio

Expected results:
{"execute": "system_reset", "id": "h8wQhuwI"}
{"return": {}, "id": "h8wQhuwI"}

{"execute": "query-jobs", "id": "rAmtkiGM"}
{"return": [{"current-progress": 21486239744, "status": "ready", "total-progress": 21486239744, "type": "mirror", "id": "drive_image1_e6k6"}], "id": "rAmtkiGM"}
Additional info:

Comment 1 Gu Nini 2021-08-10 23:22:06 UTC
This is in fact the issue recorded in https://bugzilla.redhat.com/show_bug.cgi?id=1950192#c12, we found it during the early testing of qemu-kvm-6.0.0 on RHEL9.0.0. It should be the same cause of bz1950192 since the core dump info is the same.

Comment 2 Thomas Huth 2021-08-11 06:35:27 UTC
(In reply to Gu Nini from comment #1)
> This is in fact the issue recorded in
> https://bugzilla.redhat.com/show_bug.cgi?id=1950192#c12, we found it during
> the early testing of qemu-kvm-6.0.0 on RHEL9.0.0. It should be the same
> cause of bz1950192 since the core dump info is the same.

I agree, this is likely a duplicate ... to be sure, bfu, could you please double-check whether you could trigger this issue with the Clang build of qemu-kvm, too?

Comment 3 bfu 2021-08-24 10:23:49 UTC
Version-Release number of selected component (if applicable):
host kernel:5.14.0-0.rc4.35.el9.s390x
qemu version: qemu-kvm-6.0.0-12.el9.s390x
guest kernel: 5.14.0-0.rc4.35.el9.s390x

As the test result of PASS 1-Host_RHEL.m9.u0.nographic.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.0.0.s390x.io-github-autotest-qemu.blockdev_mirror_vm_reboot.s390-virtio, close this bug as duplicate since the root cause is same as https://bugzilla.redhat.com/show_bug.cgi?id=1950192

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


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