Bug 1822235

Summary: Add support for newer glusterfs [rhel-7.8.z]
Product: Red Hat Enterprise Linux 7 Reporter: RAD team bot copy to z-stream <autobot-eus-copy>
Component: qemu-kvmAssignee: Miroslav Rezanina <mrezanin>
Status: CLOSED ERRATA QA Contact: Xueqiang Wei <xuwei>
Severity: high Docs Contact:
Priority: high    
Version: 7.9CC: coli, jinzhao, juzhang, mlevitsk, mrezanin, mtessun, virt-maint
Target Milestone: rcKeywords: RFE, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-1.5.3-173.el7_8.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1802215 Environment:
Last Closed: 2020-05-12 18:40:15 UTC Type: ---
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: 1802215    
Bug Blocks:    

Description RAD team bot copy to z-stream 2020-04-08 14:26:44 UTC
This bug has been copied from bug #1802215 and has been proposed to be backported to 7.8 z-stream (EUS).

Comment 6 Xueqiang Wei 2020-04-15 12:23:49 UTC
I tried to verify this bug as below. Not hit any issue, so set this bug as verified. Thanks.


Tested with:
kernel-3.10.0-1127.5.1.el7.x86_64
qemu-kvm-1.5.3-173.el7_8.3


# rpm -qa | grep glusterfs
glusterfs-libs-6.0-29.el7.x86_64
glusterfs-client-xlators-6.0-29.el7.x86_64
glusterfs-devel-6.0-29.el7.x86_64
samba-vfs-glusterfs-4.10.4-10.el7.x86_64
glusterfs-cloudsync-plugins-6.0-29.el7.x86_64
glusterfs-6.0-29.el7.x86_64
glusterfs-api-6.0-29.el7.x86_64
glusterfs-api-devel-6.0-29.el7.x86_64
uwsgi-plugin-glusterfs-2.0.17.1-2.el7.x86_64
glusterfs-rdma-6.0-29.el7.x86_64
glusterfs-debuginfo-6.0-29.el7.x86_64
glusterfs-fuse-6.0-29.el7.x86_64
glusterfs-cli-6.0-29.el7.x86_64




1. Create images with different formats.

qcow2:

# qemu-img create -f qcow2 gluster://10.73.196.181/gv0/test1.qcow2 20G

Formatting 'gluster://10.73.196.181/gv0/test1.qcow2', fmt=qcow2 size=21474836480 encryption=off cluster_size=65536 lazy_refcounts=off debug=0 
[2020-04-15 08:15:06.616119] E [MSGID: 108006] [afr-common.c:5313:__afr_handle_child_down_event] 0-gv0-replicate-0: All subvolumes are down. Going offline until at least one of them comes back up.
[2020-04-15 08:15:06.616320] I [io-stats.c:4027:fini] 0-gv0: io-stats translator unloaded
[2020-04-15 08:15:08.654627] E [MSGID: 108006] [afr-common.c:5313:__afr_handle_child_down_event] 0-gv0-replicate-0: All subvolumes are down. Going offline until at least one of them comes back up.
[2020-04-15 08:15:08.654815] I [io-stats.c:4027:fini] 0-gv0: io-stats translator unloaded
[2020-04-15 08:15:10.524953] E [MSGID: 108006] [afr-common.c:5313:__afr_handle_child_down_event] 0-gv0-replicate-0: All subvolumes are down. Going offline until at least one of them comes back up.
[2020-04-15 08:15:10.525142] I [io-stats.c:4027:fini] 0-gv0: io-stats translator unloaded

# qemu-img info gluster://10.73.196.181/gv0/test1.qcow2 
[2020-04-15 08:18:20.927449] E [MSGID: 108006] [afr-common.c:5313:__afr_handle_child_down_event] 0-gv0-replicate-0: All subvolumes are down. Going offline until at least one of them comes back up.
[2020-04-15 08:18:20.927645] I [io-stats.c:4027:fini] 0-gv0: io-stats translator unloaded
image: gluster://10.73.196.181/gv0/test1.qcow2
file format: qcow2
virtual size: 20G (21474836480 bytes)
disk size: 193K
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false


raw:
# qemu-img create -f raw gluster://10.73.196.181/gv0/test1.raw 2G
Formatting 'gluster://10.73.196.181/gv0/test1.raw', fmt=raw size=2147483648 debug=0 
[2020-04-15 08:20:30.273613] I [io-stats.c:4027:fini] 0-gv0: io-stats translator unloaded

# qemu-img info gluster://10.73.196.181/gv0/test1.raw
[2020-04-15 08:21:14.742075] E [MSGID: 108006] [afr-common.c:5313:__afr_handle_child_down_event] 0-gv0-replicate-0: All subvolumes are down. Going offline until at least one of them comes back up.
[2020-04-15 08:21:14.742308] I [io-stats.c:4027:fini] 0-gv0: io-stats translator unloaded
image: gluster://10.73.196.181/gv0/test1.raw
file format: raw
virtual size: 2.0G (2147483648 bytes)
disk size: 0



2.  Install guest over a image with qcow2 format, reboot, and shutdown.

/usr/libexec/qemu-kvm \
        -name 'guest-rhel' \
        -machine pc \
        -nodefaults \
        -vga qxl \
        -drive id=drive_cd1,if=none,snapshot=off,aio=threads,cache=unsafe,media=cdrom,file=/home/RHEL-7.8-20200225.1-Server-x86_64-dvd1.iso  \
        -device ide-cd,id=cd1,drive=drive_cd1,bus=ide.0,unit=0 \
        -drive id=drive_image1,if=none,snapshot=off,aio=threads,cache=none,format=qcow2,file=gluster://10.73.196.181/gv0/test1.qcow2 \
        -device virtio-blk-pci,id=virtio_blk_pci0,drive=drive_image1,addr=05 \
        -vnc :0 \
        -monitor stdio \
        -m 8192 \
        -smp 8 \
        -device virtio-net-pci,mac=9a:b5:b6:b1:b2:b3,id=idMmq1jH,vectors=4,netdev=idxgXAlm,addr=0x9  \
        -netdev tap,id=idxgXAlm \
        -chardev socket,id=qmp_id_qmpmonitor1,path=/var/tmp/timao/monitor-qmpmonitor1-20180220-094308-h9I6hRsI,server,nowait \
        -mon chardev=qmp_id_qmpmonitor1,mode=control  \


Result:
Creation works fine, and install,reboot, shutdown all work fine.

Comment 8 errata-xmlrpc 2020-05-12 18:40:15 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/RHEA-2020:2099