Bug 1728657

Summary: 'qemu-io write' to a raw image over libgfapi fails
Product: Red Hat Enterprise Linux 8 Reporter: Tingting Mao <timao>
Component: qemu-kvmAssignee: Stefano Garzarella <sgarzare>
Status: CLOSED ERRATA QA Contact: Tingting Mao <timao>
Severity: medium Docs Contact:
Priority: medium    
Version: ---CC: areis, coli, jinzhao, juzhang, mrezanin, ngu, qzhang, rbalakri, virt-maint, zhenyzha
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-2.12.0-82.module+el8.1.0+3738+0d8c0249 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 20:51:02 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: 1678575    
Bug Blocks:    

Description Tingting Mao 2019-07-10 11:22:10 UTC
Description of problem:
'qemu-io write' to a raw image over libgfapi fails.


Version-Release number of selected component (if applicable):
qemu-kvm-2.12.0-81.module+el8.1.0+3619+dfe1ae01
kernel-4.18.0-112.el8.x86_64

Gluster server:
Version: glusterfs-server-3.12.2-43.el7rhgs
Volume info:
# gluster volume info vol
 
Volume Name: vol
Type: Distribute
Volume ID: 6b299573-ffed-49c6-8b0f-68602c389085
Status: Started
Snapshot Count: 0
Number of Bricks: 1
Transport-type: tcp
Bricks:
Brick1: gluster-virt-qe-01.lab.eng.pek2.redhat.com:/data/brick1/gv2
Options Reconfigured:
transport.address-family: inet
nfs.disable: on


How reproducible:
100%


Steps to Reproduce:
1.Create a raw image over libgfapi
# qemu-img create -f raw gluster://gluster-virt-qe-01.lab.eng.pek2.redhat.com/vol/test.img 5G

2. Write data in it via 'qemu-io write'
# qemu-io -c 'write 0 1G' -f raw gluster://gluster-virt-qe-01.lab.eng.pek2.redhat.com/vol/test.img
[2019-07-10 11:18:48.190841] E [rpc-clnt.c:346:saved_frames_unwind] (--> /lib64/libglusterfs.so.0(_gf_log_callingfn+0x12f)[0x7fb64f8c9f0f] (--> /lib64/libgfrpc.so.0(+0xdad4)[0x7fb64f66dad4] (--> /lib64/libgfrpc.so.0(+0xdbf2)[0x7fb64f66dbf2] (--> /lib64/libgfrpc.so.0(rpc_clnt_connection_cleanup+0xc5)[0x7fb64f66ebd5] (--> /lib64/libgfrpc.so.0(+0xf7b8)[0x7fb64f66f7b8] ))))) 0-vol-client-0: forced unwinding frame type(GlusterFS 3.3) op(WRITE(13)) called at 2019-07-10 11:18:48.189231 (xid=0xc)
[2019-07-10 11:18:52.063952] I [io-stats.c:4027:fini] 0-vol: io-stats translator unloaded
write failed: Transport endpoint is not connected


Actual results:
Write fails as above.


Expected results:
Write data successfully.



Additional info:
1. For qcow2, write data successfully.
# qemu-img create -f qcow2 gluster://gluster-virt-qe-01.lab.eng.pek2.redhat.com/vol/tt.qcow2 5G
# qemu-io -c 'write 0 1G' gluster://gluster-virt-qe-01.lab.eng.pek2.redhat.com/vol/tt.qcow2
wrote 1073741824/1073741824 bytes at offset 0
1 GiB, 1 ops; 0:00:19.74 (51.869 MiB/sec and 0.0507 ops/sec)
[2019-07-10 11:21:23.416252] I [io-stats.c:4027:fini] 0-vol: io-stats translator unloaded

Comment 1 Tingting Mao 2019-07-10 11:26:03 UTC
In fast train, it works normally.

Tested with:
qemu-kvm-4.0.0-5.module+el8.1.0+3622+5812d9bf


Write data to the same image as comment 0:
# qemu-io -c 'write 0 1G' -f raw gluster://gluster-virt-qe-01.lab.eng.pek2.redhat.com/vol/test.img
wrote 1073741824/1073741824 bytes at offset 0
1 GiB, 1 ops; 0:00:23.48 (43.598 MiB/sec and 0.0426 ops/sec)
[2019-07-10 11:25:01.475868] I [io-stats.c:4027:fini] 0-vol: io-stats translator unloaded
# echo $?
0

Comment 9 Tingting Mao 2019-07-24 03:18:52 UTC
Verify this issue as below;

Tested with:
qemu-kvm-2.12.0-82.module+el8.1.0+3738+0d8c0249
kernel-4.18.0-112.el8.x86_64


Steps:
# qemu-img create -f raw gluster://gluster-virt-qe-01.lab.eng.pek2.redhat.com/vol/test.img 5G

# qemu-io -c 'write 0 1G' -f raw gluster://gluster-virt-qe-01.lab.eng.pek2.redhat.com/vol/test.img
wrote 1073741824/1073741824 bytes at offset 0
1 GiB, 1 ops; 0:00:24.99 (40.964 MiB/sec and 0.0400 ops/sec)
[2019-07-24 03:18:22.085910] I [io-stats.c:4027:fini] 0-vol: io-stats translator unloaded

# echo $?
0

Comment 11 errata-xmlrpc 2019-11-05 20:51:02 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, 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-2019:3345