Bug 1422875 - [NFS:RGW]: While deleting Files in NFS directory, command passes without any error but files still available.
Summary: [NFS:RGW]: While deleting Files in NFS directory, command passes without any ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 2.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 2.2
Assignee: Matt Benjamin (redhat)
QA Contact: Ramakrishnan Periyasamy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-16 12:45 UTC by Ramakrishnan Periyasamy
Modified: 2022-02-21 18:42 UTC (History)
9 users (show)

Fixed In Version: RHEL: ceph-10.2.5-29.el7cp, nfs-ganesha-2.4.2-6.el7cp Ubuntu: ceph_10.2.5-21redhat1xenial, nfs-ganesha_2.4.2-6redhat1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-14 15:49:35 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-3527 0 None None None 2022-02-21 18:42:14 UTC
Red Hat Product Errata RHBA-2017:0514 0 normal SHIPPED_LIVE Red Hat Ceph Storage 2.2 bug fix and enhancement update 2017-03-21 07:24:26 UTC

Description Ramakrishnan Periyasamy 2017-02-16 12:45:06 UTC
Description of problem:
Removing files in a directory using "rm -rf *" command is passing but files still exists in NFS mount.

[ubuntu@host003 nfs]$ 
[ubuntu@host003 nfs]$ cd client1_run5

Each file is of 297M and it is created 3 days before, after creation updated cluster and NFS to latest build.
[ubuntu@magna003 client1_run5]$ ll -h
total 290G
-rw-rw-rw-. 1 root root 297M Feb 13 14:25 wedJan171601328
-rw-rw-rw-. 1 root root 297M Feb 13 14:25 wedJan171601329
-rw-rw-rw-. 1 root root 297M Feb 13 14:25 wedJan171601330

Total number of files in folder 1001, it took 4 min to get the details which was slow.
[ubuntu@host003 client1_run5]$ time ll -h | wc -l
1001

real	4m3.449s
user	0m0.009s
sys	0m0.026s

[ubuntu@host003 client1_run5]$ rm -rf *
[ubuntu@host003 client1_run5]$ ls
wedJan171601328  wedJan171601419  wedJan171601510  wedJan171601601  wedJan171601692  wedJan171601783  wedJan171601874  wedJan171601965  wedJan171602056  wedJan171602147  wedJan171602238
wedJan171601329  wedJan171601420  wedJan171601511  wedJan171601602  wedJan171601693  wedJan171601784  wedJan171601875  wedJan171601966  wedJan171602057  wedJan171602148  wedJan171602239
wedJan171601330  wedJan171601421  wedJan171601512  wedJan171601603  wedJan171601694  wedJan171601785  wedJan171601876  wedJan171601967  wedJan171602058  wedJan171602149  wedJan171602240
wedJan171601331  wedJan171601422  wedJan171601513  wedJan171601604  wedJan171601695  wedJan171601786  wedJan171601877  wedJan171601968  wedJan171602059  wedJan171602150  wedJan171602241
wedJan171601332  wedJan171601423  wedJan171601514  wedJan171601605  wedJan171601696  wedJan171601787  wedJan171601878  wedJan171601969  wedJan171602060  wedJan171602151  wedJan171602242
wedJan171601333  wedJan171601424  wedJan171601515  wedJan171601606  wedJan171601697  wedJan171601788  wedJan171601879  wedJan171601970  wedJan171602061  wedJan171602152  wedJan171602243
wedJan171601334  wedJan171601425  wedJan171601516  wedJan171601607  wedJan171601698  wedJan171601789  wedJan171601880  wedJan171601971  wedJan171602062  wedJan171602153  wedJan171602244
wedJan171601335  wedJan171601426  wedJan171601517  wedJan171601608  wedJan171601699  wedJan171601790

The directory was created long back(a month before), in-between updated 2 cluster builds.
[ubuntu@host003 nfs]$ ll -h
total 0
drwxrwxrwx. 3 root   root   0 Jan  1  1970 bigbucket
drwxrwxrwx. 3 root   root   0 Jan  1  1970 client1
drwxrwxrwx. 3 root   root   0 Jan  1  1970 client1_run4
drwxrwxrwx. 3 root   root   0 Jan  1  1970 client1_run5
drwxrwxrwx. 3 root   root   0 Jan  1  1970 client2_run1
drwxrwxrwx. 3 root   root   0 Jan  1  1970 client2_run2
drwxrwxr-x. 3 ubuntu ubuntu 0 Feb  2 09:56 comp

Version-Release number of selected component (if applicable):
ceph: 10.2.5-26.el7cp
NFS: nfs-ganesha-rgw-2.4.2-5.el7cp.x86_64

How reproducible:
2/2

Steps to Reproduce:
1. Configure Cluster with RGW and NFS
2. Create some directories with data using S3 and directory on NFS mount.
3. Perform RW IO to folders and buckets using different interface(S3 and kernel mount)
4. Update the packages, unmount NFS, reboot the machine and remount it.
5. Delete all the files in the directory

Actual results:
Command passes but files not deleted

Expected results:
Files should be deleted.

Additional info:
N/A

Comment 14 Ramakrishnan Periyasamy 2017-02-22 10:05:15 UTC
Moving this bug to verified state.

paste bin location which has the verified command output
http://pastebin.test.redhat.com/457851

Verified in ceph: 10.2.5-29.el7cp, rgw: nfs-ganesha-2.4.2-6.el7cp.x86_64

Comment 16 errata-xmlrpc 2017-03-14 15:49:35 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


Note You need to log in before you can comment on or make changes to this bug.