Bug 1834281
Summary: | qemu-img convert abort when converting image with unaligned size | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Xueqiang Wei <xuwei> | |
Component: | qemu-kvm | Assignee: | Kevin Wolf <kwolf> | |
qemu-kvm sub component: | Storage | QA Contact: | Xueqiang Wei <xuwei> | |
Status: | CLOSED ERRATA | Docs Contact: | ||
Severity: | medium | |||
Priority: | medium | CC: | aliang, chayang, coli, ddepaula, jinzhao, juzhang, knoel, kwolf, virt-maint | |
Version: | 8.3 | Keywords: | Regression, Triaged | |
Target Milestone: | rc | |||
Target Release: | 8.3 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-4.2.0-44.module+el8.4.0+9776+c5744f20 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1834646 (view as bug list) | Environment: | ||
Last Closed: | 2021-05-18 15:21:14 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: | ||
Bug Depends On: | 1834646 | |||
Bug Blocks: |
Description
Xueqiang Wei
2020-05-11 12:59:50 UTC
core dumped log: http://fileshare.englab.nay.redhat.com/pub/section2/images_backup/bug1834281/gdb.txt core dumped file: http://fileshare.englab.nay.redhat.com/pub/section2/images_backup/bug1834281/core.qemu-img.0.5b438c5e682d41f9ab1da8d09025a9eb.135324.1589199068000000.lz4 Adjusting dependency order - fix goes into RHEL AV first, then RHEL. Assigned to Ademar for initial triage per bz process and age of bug created or assigned to virt-maint without triage. Not sure if this would be Kevin or Max. If bug 1834646 makes it into RHEL AV 8.2.1, then this bug would pick up change when rebase occurs Tested it on rhel8.4 slow train, hit this issue. Versions: kernel-4.18.0-277.el8.x86_64 qemu-kvm-4.2.0-41.module+el8.4.0+9504+ab2393e6 steps: 1. # mkdir -p /home/kvm_autotest_root/images/ # mount -t nfs -o soft,vers=4.2 10.66.61.132:/home/nfs_server/ /home/kvm_autotest_root/images/ 2. # cd /home/kvm_autotest_root/images/ 3. # truncate -s 11136 test.img 4. # qemu-io -c 'write -P 1 0 10K' test.img -f raw wrote 10240/10240 bytes at offset 0 10 KiB, 1 ops; 00.04 sec (247.197 KiB/sec and 24.7197 ops/sec) 5. # qemu-img convert -f raw -O raw -p -t none -T none test.img tgt.img -o preallocation=falloc qemu-img: block/io.c:1871: bdrv_co_write_req_prepare: Assertion `end_sector <= bs->total_sectors || child->perm & BLK_PERM_RESIZE' failed. Aborted (core dumped) Tested it with qemu-kvm-4.2.0-44.module+el8.4.0+9776+c5744f20, not hit this issue. Versions: kernel-4.18.0-280.el8.x86_64 qemu-kvm-4.2.0-44.module+el8.4.0+9776+c5744f20 steps: 1. # mkdir -p /home/kvm_autotest_root/images/ # mount -t nfs -o soft,vers=4.2 10.66.61.132:/home/nfs_server/ /home/kvm_autotest_root/images/ 2. # cd /home/kvm_autotest_root/images/ 3. # truncate -s 11136 test.img 4. # qemu-io -c 'write -P 1 0 10K' test.img -f raw wrote 10240/10240 bytes at offset 0 10 KiB, 1 ops; 00.03 sec (293.422 KiB/sec and 29.3422 ops/sec) 5. # qemu-img convert -f raw -O raw -p -t none -T none test.img tgt.img -o preallocation=falloc (100.00/100%) # echo $? 0 # qemu-img convert -f raw -O raw -p -t none -T none test.img tgt.img -o preallocation=full (100.00/100%) # echo $? 0 # qemu-img convert -f raw -O raw -p -t none -T none test.img tgt.img -o preallocation=off (100.00/100%) # echo $? 0 Hi Danilo, Shall we add this bug to errata and change it to ON_QA status? Thanks. According to Comment 15, set status to VERIFIED. Thanks. 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 (Moderate: virt:rhel and virt-devel:rhel security, bug fix, and enhancement 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-2021:1762 |