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