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 1489452

Summary: [RGW:NFS]: Forceful deletion of directories fails for the first time with "directory not empty error" and passes the second time
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vidushi Mishra <vimishra>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Vidushi Mishra <vimishra>
Severity: urgent Docs Contact:
Priority: high    
Version: 3.0CC: anharris, cbodley, ceph-eng-bugs, hnallurv, kbader, kdreyer, mbenjamin, owasserm, rperiyas, sweil, tserlin, vimishra
Target Milestone: rcKeywords: Regression
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.1-23.el7cp nfs-ganesha-2.5.2-12.el7cp Ubuntu: ceph_12.2.1-25redhat1xenial nfs-ganesha_2.5.2-12redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:42:56 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-07 13:24:24 UTC
Description of problem:

Mounted NFS share on the client. Created a directory with random files of different sizes in 10*10 directory structure. Then tried to forceful delete the directory, it fails for the first time with "Directory not empty" error and passes the next time.


Version-Release number of selected component (if applicable):
ceph version: 12.2.0-1.el7cp

How reproducible:

2/2

Steps to Reproduce:

1.Configure nfs-ganesha on RGW server . Mount export on the client.
2.Create a directory with random size files with -b 10 -d 10 -n 1000 where n is number of files that created at each directory level. 
3.List the directory levels and check for the file count per level.
(Example: ls level05/level15/level25/ )
4.Forceful remove the directory (rm -rf /home/ubuntu/mnt1/nfs4)
5.Deletion fails for the first time, as shown.
rm: cannot remove ‘nfs4/level01/level11/level21/level31/level41/level51/level61/level71/level81/level91’: Directory not empty
6.List the directory levels:
(Example: ls level05/level15/level25/ ). There is an increase in the count of files for each level. 
7.Forceful remove the directory again. (rm -rf /home/ubuntu/mnt1/nfs4).
8.Directory /home/ubuntu/mnt1/nfs4 is removed.

 
Actual results:
Directory is not removed

Expected results:
Directory should be removed in the first time

Additional info:
Use crefi tool "crefi --multi -b 10 -d 10 -n 1000 --size=100 <mount_point>")

Comment 39 errata-xmlrpc 2017-12-05 23:42:56 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