Bug 1171662
| Summary: | libgfapi crashes in glfs_fini for RDMA type volumes | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Anoop C S <anoopcs> | ||||
| Component: | samba | Assignee: | Ira Cooper <ira> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Nag Pavan Chilakam <nchilaka> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rhgs-3.0 | CC: | annair, anoopcs, bugs, jthottan, nlevinki, pgurusid, rgowdapp, rjoseph, rkavunga, rtalur, skoduri, storage-qa-internal, vagarwal | ||||
| Target Milestone: | --- | Keywords: | Triaged | ||||
| Target Release: | RHGS 3.1.0 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | gfapi | ||||||
| Fixed In Version: | glusterfs-3.7.1-1 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 1153610 | Environment: | |||||
| Last Closed: | 2015-07-29 04:37: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: | 1153610 | ||||||
| Bug Blocks: | 1202842 | ||||||
| Attachments: |
|
||||||
|
Description
Anoop C S
2014-12-08 10:30:01 UTC
Fixed this as a part of fixing bug-1104039 patch merged @https://code.engineering.redhat.com/gerrit/#/c/42957/ Moving it to ON_QA I ran the steps which caused the bug, and found that it is fixed.Hence moving to verified Steps: 1)identified machines to be used for server and clients which have rdma cards. Also, I installed gluster-devel and gluster-devel-api packages on client and server. 2)enabled RDMA on both server and client using http://fpaste.org/245970/73750811/ 3)create a volume with one-brick with transport type as RDMA and started it. For the brick i had used RDMA IP 4)now copied the c program gfapi_perf_test.c to the client(avaialble on the parent bug, from which this bug was cloned) 5.Compile the above C program that uses libgfapi gcc -pthread -g -O0 -Wall --pedantic -o gfapi_perf_test -I /usr/include/glusterfs/api gfapi_perf_test.c -lgfapi -lrt 6. Do the following exports by issuing the command on cli of client as it is: export GFAPI_HOSTNAME=<server ip>(rdma IP of the server node) export GFAPI_TRANSPORT=rdma export GFAPI_VOLNAME=<volume name> 7. Create a directory "tmp" under /mnt as the program requires this directory 8.Run the compiled output as GFAPI_FILES=1 GFAPI_RECSZ=1024 GFAPI_FSZ=1048576 ./gfapi_perf_test 9. Mount the volume to see that files are created by the c program under /mnt/tmp Behavior before the bug was fixed: =================================== Segmentation fault (core dumped) Fixed behavior: ============== Program executes successfully. Version of test where QA found the issue fixed: [root@rhs-client21 rdma_new]# cat /etc/redhat-* Red Hat Enterprise Linux Server release 6.7 (Santiago) Red Hat Gluster Storage Server 3.1 [root@rhs-client21 rdma_new]# rpm -qa|grep gluster gluster-nagios-common-0.2.0-1.el6rhs.noarch gluster-nagios-addons-0.2.4-2.el6rhs.x86_64 glusterfs-3.7.1-10.el6rhs.x86_64 glusterfs-cli-3.7.1-10.el6rhs.x86_64 python-gluster-3.7.1-10.el6rhs.x86_64 glusterfs-libs-3.7.1-10.el6rhs.x86_64 glusterfs-client-xlators-3.7.1-10.el6rhs.x86_64 glusterfs-fuse-3.7.1-10.el6rhs.x86_64 glusterfs-server-3.7.1-10.el6rhs.x86_64 glusterfs-rdma-3.7.1-10.el6rhs.x86_64 glusterfs-ganesha-3.7.1-10.el6rhs.x86_64 vdsm-gluster-4.16.20-1.2.el6rhs.noarch glusterfs-api-3.7.1-10.el6rhs.x86_64 glusterfs-geo-replication-3.7.1-10.el6rhs.x86_64 nfs-ganesha-gluster-2.2.0-5.el6rhs.x86_64 [root@rhs-client21 rdma_new]# gluster --version glusterfs 3.7.1 built on Jul 15 2015 10:20:49 Repository revision: git://git.gluster.com/glusterfs.git Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com> GlusterFS comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GlusterFS under the terms of the GNU General Public License. [root@rhs-client21 rdma_new]# (For information)QE sosreports for verification at qe-admin@rhsqe-repo:/home/repo/sosreports/bug.1171662 CLI logs: Latest results on successful run [root@rhs-client36 ~]# mount -t glusterfs 192.168.44.124:/rdma_new /mnt/ [root@rhs-client36 ~]# ls /mnt/ [root@rhs-client36 ~]# mkdir /mnt/tmp [root@rhs-client36 ~]# umount /mnt/ [root@rhs-client36 ~]# GFAPI_FILES=1 GFAPI_RECSZ=1024 GFAPI_FSZ=1048576 ./gfapi_perf_test GLUSTER: volume=rdma_new transport=rdma host=192.168.44.124 port=24007 fuse?No trace level=0 start timeout=60 WORKLOAD: type = seq-wr threads/proc = 1 base directory = /tmp prefix=f file size = 1048576 KB file count = 1 record size = 1024 KB files/dir=1000 fsync-at-close? No thread 0: files written = 1 files done = 1 I/O (record) transfers = 1024 total bytes = 1073741824 elapsed time = 1.85 sec throughput = 554.35 MB/sec IOPS = 554.35 (sequential write) aggregate: files written = 1 files done = 1 I/O (record) transfers = 1024 total bytes = 1073741824 elapsed time = 1.85 sec throughput = 554.35 MB/sec IOPS = 554.35 (sequential write) [root@rhs-client36 ~]# mount -t glusterfs 192.168.44.124:/rdma_new /mnt/ [root@rhs-client36 ~]# ls /mnt/tmp/ thrd000-d0000 [root@rhs-client36 ~]# ls /mnt/tmp/thrd000-d0000/ f.0000000 Created attachment 1053839 [details]
gfapi_perf_test.c
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://rhn.redhat.com/errata/RHSA-2015-1495.html |