Bug 1492582

Summary: [RGW:NFS]: Overwrite to an existing file fails with NFS version 3
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vidushi Mishra <vimishra>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 3.0CC: anharris, cbodley, ceph-eng-bugs, hnallurv, kbader, kdreyer, mbenjamin, owasserm, sweil
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.1-21.el7cp nfs-ganesha-2.5.2-7.el7cp Ubuntu: ceph_12.2.1-24redhat1xenial nfs-ganesha_2.5.2-7redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:44:17 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:

Description Vidushi Mishra 2017-09-18 08:53:25 UTC
Description of problem:
Overwrite to an existing file on the NFS mount fails with operation not permitted error. This is when we mount using NFS version 3.

[root@host mnt2]# cat test1/myfile2
welcome to world of ceph
[root@host mnt2]# echo  welcome to the world of rgw  > test1/myfile2
[root@host mnt2]# cat test1/myfile2
welcome to world of ceph



[root@host mnt2]# dd if=/dev/urandom of=test1/myfile3  bs=10M count=2
2+0 records in
2+0 records out
20971520 bytes (21 MB) copied, 0.765551 s, 27.4 MB/s
[root@host mnt2]# ls -lkh test1
total 40M
-rw-r--r--. 1 root root 20M Sep 18 07:58 myfile1
-rw-r--r--. 1 root root  25 Sep 18 08:41 myfile2
-rw-r--r--. 1 root root 20M Sep 18 08:44 myfile3
[root@host mnt2]# dd if=/dev/urandom of=test1/myfile3  bs=10M count=1
dd: closing output file ‘test1/myfile3’: Operation not permitted
[root@host mnt2]# ls -lkh test1
total 40M
-rw-r--r--. 1 root root 20M Sep 18 07:58 myfile1
-rw-r--r--. 1 root root  25 Sep 18 08:41 myfile2
-rw-r--r--. 1 root root 20M Sep 18 08:44 myfile3
[root@host mnt2]# 



Version-Release number of selected component (if applicable):
ceph version 12.2.0-2.el7cp
nfs-ganesha-rgw-2.5.2-2.el7cp.x86_64
nfs-ganesha-2.5.2-2.el7cp.x86_64

How reproducible:

2/2

Steps to reproduce :
1. Configure NFS server on an RGW  and configure NFS client and mount share with NFSv3.
2. Create few files and write some data.
3. overwrite on the above created files, fails with operation not permitted error.

Actual results:
Already existing file can't be modified with NFS version 3

Expected results:
File should be modified

Comment 15 errata-xmlrpc 2017-12-05 23:44:17 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/RHBA-2017:3387