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 983819 - drive-mirroring: offset decreased after after "offset" eq "len"
Summary: drive-mirroring: offset decreased after after "offset" eq "len"
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Paolo Bonzini
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-12 02:46 UTC by Xu Tian
Modified: 2013-12-13 13:45 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-13 13:45:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
qmp commands log (67.34 KB, text/plain)
2013-07-12 02:48 UTC, Xu Tian
no flags Details

Description Xu Tian 2013-07-12 02:46:04 UTC
Description of problem:

drive mirroring offset decreased after copy offset equal image length when do io stress in guest:

more details please refer to qmp monitor in attachment; 


Version-Release number of selected component (if applicable):

qemu-kvm-1.5.0-2.el7.x86_64

How reproducible:
about 1/4

Steps to Reproduce:

1. boot a win7 guest with qcow3 image
cmd line:
qemu-kvm \
    -S \
    -name 'virt-tests-vm1' \
    -nodefaults \
    -chardev socket,id=qmp_id_qmpmonitor1,path=/tmp/monitor-qmpmonitor1-20130711-200813-XAXV6XoS,server,nowait \
    -mon chardev=qmp_id_qmpmonitor1,mode=control \
    -chardev socket,id=serial_id_serial1,path=/tmp/serial-serial1-20130711-200813-XAXV6XoS,server,nowait \
    -device isa-serial,chardev=serial_id_serial1 \
    -chardev socket,id=seabioslog_id_20130711-200813-XAXV6XoS,path=/tmp/seabios-20130711-200813-XAXV6XoS,server,nowait \
    -device isa-debugcon,chardev=seabioslog_id_20130711-200813-XAXV6XoS,iobase=0x402 \
    -device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=0x4 \
    -drive file='/root/autotest-devel/client/tests/virt/shared/data/images/win7-64-virtio.qcow2',if=none,id=drive-virtio-disk1,media=disk,cache=none,snapshot=off,format=qcow2,aio=native \
    -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,bootindex=0 \
    -device virtio-net-pci,netdev=id3QT2rt,mac='9a:69:6a:6b:6c:6d',bus=pci.0,addr=0x3,id='idFtI5cJ' \
    -netdev tap,id=id3QT2rt,vhost=on,fd=24 \
    -m 4096 \
    -smp 4,maxcpus=4,cores=2,threads=1,sockets=2 \
    -cpu 'SandyBridge',,hv_relaxed \
    -M pc \
    -drive file='/root/autotest-devel/client/tests/virt/shared/data/isos/windows/winutils.iso',if=none,id=drive-ide0-0-0,media=cdrom,format=raw \
    -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0 \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \
    -vnc :0 \
    -vga std \
    -rtc base=localtime,clock=host,driftfix=slew  \
    -boot order=cdn,once=c,menu=off  \
    -enable-kvm


2. load stress in guest
"heavyload /CPU /MEMORY /START"(heavyload is a stress tool for windows)

3. mirror block device to new qcow2 images
qmp cmd:
{"execute": "drive-mirror", "arguments": {"device": "drive-virtio-disk1", "mode": "absolute-paths", "format": "qcow2", "target": "/root/autotest-devel/client/tests/virt/shared/data/images/target1.qcow2", "sync": "full"}, "id": "vUdvHsnl"}
4. monitor block jobs info:
qmp cmd:
{"execute": "query-block-jobs", "id": "fyWemTXl"}


Actual results:

offset decrease after offset equal image length

Expected results:

offset not decrease after offset equal image length

Additional info:

Comment 2 Xu Tian 2013-07-12 02:48:36 UTC
Created attachment 772525 [details]
qmp commands log

Post qmp commands and ouput log here, hope it helpful to analyses this defeat;

Comment 3 Paolo Bonzini 2013-12-13 13:45:19 UTC
This is not a bug.  It's just a corner case.

The offset is guaranteed not to decrease only after the BLOCK_JOB_READY event is emitted.  Here the offset was = length but the event had not been emitted yet.


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