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
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