Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1418201

Summary: nfs-ganesha crashed when same file is copied from 2 different clients to the same mountpoint
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Hemanth Kumar <hyelloji>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.2CC: cbodley, ceph-eng-bugs, hnallurv, kbader, mbenjamin, owasserm, sweil, tserlin, uboppana, vakulkar
Target Milestone: rc   
Target Release: 2.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: nfs-ganesha-2.4.2-4.el7cp Ubuntu: nfs-ganesha_2.4.2-4redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1420328 (view as bug list) Environment:
Last Closed: 2017-03-14 15:48:45 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:    
Bug Blocks: 1420328    

Description Hemanth Kumar 2017-02-01 09:28:54 UTC
Description of problem:
------------------------
Copied same file to the mountpoint from 2 different client leads to nfs-ganesha crash.


Version-Release number of selected component (if applicable):
------------------------------
# rpm -qa | grep ganesha
nfs-ganesha-rgw-2.4.2-1.el7cp.x86_64
nfs-ganesha-2.4.2-1.el7cp.x86_64

# rpm -qa | grep ceph
ceph-radosgw-10.2.5-12.el7cp.x86_64

How reproducible:
------------------
100%

Steps to Reproduce:
1. Create a nfs share and mount from 2 different linux clients
2. downloaded a rhel iso on both the clients
3. copied the downloaded ISO file to the mounted share from both the clients at same time and it leads to a crash..

Actual results:
---------------
nfs-ganesha crashed

Expected results:
-----------------
Should avoid copying and these kind of scenarios should be handled by locking mechanism.

------------------------------------------------------------------------------
     0> 2017-01-31 15:13:49.178306 7f828cf81700 -1 *** Caught signal (Segmentation fault) **
 in thread 7f828cf81700 thread_name:ganesha.nfsd

 ceph version 10.2.5-12.el7cp (8614488f8c3e7a9be34e58fb1aaf23416156152c)
 1: (()+0x56dc0a) [0x7f8429b3dc0a]
 2: (()+0xf370) [0x7f8436392370]
 3: (rgw_getattr()+0x4) [0x7f8429ad3d24]
 4: (rgw_fsal_open2()+0x7a6) [0x7f843322cbb6]
 5: (mdcache_open2()+0x34f) [0x7f8437ed314f]
 6: (fsal_open2()+0x1fb) [0x7f8437e07cfb]
 7: (()+0x2b386) [0x7f8437df3386]
 8: (nfs4_op_open()+0xaa9) [0x7f8437e3b8a9]
 9: (nfs4_Compound()+0x63d) [0x7f8437e2dded]
 10: (nfs_rpc_execute()+0x5bc) [0x7f8437e1ef9c]
 11: (()+0x585fa) [0x7f8437e205fa]
 12: (()+0xe2289) [0x7f8437eaa289]
 13: (()+0x7dc5) [0x7f843638adc5]
 14: (clone()+0x6d) [0x7f8435a5973d]
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

Comment 12 Hemanth Kumar 2017-02-08 13:16:11 UTC
Closing the BZ as suggested since nfs crash was not seen again on latest builds  and have opened a new BZ :1420328 to track the IO errors.

Comment 14 errata-xmlrpc 2017-03-14 15:48:45 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://rhn.redhat.com/errata/RHBA-2017-0514.html