Bug 1861682

Summary: qemu-img convert uses possibly slow pre-zeroing on block storage [rhel-8.2.1.z]
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: Oneata Mircea Teodor <toneata>
Component: qemu-kvmAssignee: Kevin Wolf <kwolf>
qemu-kvm sub component: Storage QA Contact: Tingting Mao <timao>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: medium CC: chayang, coli, ddepaula, ehadley, jen, jinzhao, juzhang, kwolf, mtessun, nsoffer, rjones, virt-maint, xuwei, yama, ymankad, zixchen
Version: 8.2Keywords: ZStream
Target Milestone: rc   
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-4.2.0-29.module+el8.2.1+7668+93a32c6b.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1847192 Environment:
Last Closed: 2020-09-01 09:38:55 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: 1847192    
Bug Blocks: 1855250, 1857815    

Comment 5 Xueqiang Wei 2020-08-13 10:31:25 UTC
Kevin,

This bug was reported against rhel-8.2.1 z-stream, but the version is qemu-kvm-5.1.0-2.module+el8.3.0+7652+b30e6901 in "Fixed In Version".


Is it correct? Please help update it. Many thanks.

Comment 6 Kevin Wolf 2020-08-13 15:28:41 UTC
(In reply to Xueqiang Wei from comment #5)
> This bug was reported against rhel-8.2.1 z-stream, but the version is
> qemu-kvm-5.1.0-2.module+el8.3.0+7652+b30e6901 in "Fixed In Version".

Danilo, can you please check this? It looks inconsistent to me.

Comment 7 Danilo de Paula 2020-08-13 23:20:00 UTC
Yes, the ITR flag should be striped on ZStream clones. This wasn't, which ended up in a query to move all BZs fixed by the rebase to ON_QA.

Thanks for spoting this.

Comment 11 Danilo de Paula 2020-08-17 20:33:36 UTC
Is it possible to test/verify it without the errata?

Comment 15 Xueqiang Wei 2020-08-21 02:19:38 UTC
Tested with qemu-kvm-4.2.0-29.module+el8.2.1+7668+93a32c6b.1, not hit this issue. So set status to VERIFIED.

Versions:
kernel-4.18.0-229.el8.x86_64
qemu-kvm-4.2.0-29.module+el8.2.1+7668+93a32c6b.1


1. create a 2G iamge
# qemu-img create -f raw test.img 2G
Formatting 'test.img', fmt=raw size=2147483648

2. covert it to full allocation
# qemu-img convert -p -f raw -O raw -S 0 test.img test.img 
    (100.00/100%)
# qemu-img info test.img 
image: test.img
file format: raw
virtual size: 2 GiB (2147483648 bytes)
disk size: 2 GiB

3. create lvm on block device
# pvcreate /dev/mapper/mpatha
# vgcreate vgtest /dev/mapper/mpatha
# lvcreate -L 20G -n lvtest vgtest

4. convert the image to block device
# time qemu-img convert -f raw -O raw -t none -T none -W /home/test.img /dev/vgtest/lvtest -p
    (100.00/100%)

real	0m26.060s
user	0m0.587s
sys	0m1.301s

Comment 17 errata-xmlrpc 2020-09-01 09:38:55 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 (Important: virt:8.2 and virt-devel:8.2 security and bug fix update), 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-2020:3586