Bug 1293237
| Summary: | [Tier]: "Bad file descriptor" on removal of symlink only on tiered volume | |||
|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Rahul Hinduja <rhinduja> | |
| Component: | tier | Assignee: | Bug Updates Notification Mailing List <rhs-bugs> | |
| Status: | CLOSED ERRATA | QA Contact: | Rahul Hinduja <rhinduja> | |
| Severity: | urgent | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | rhgs-3.1 | CC: | dlambrig, nchilaka, rcyriac, rhs-bugs, rkavunga, rmekala, sankarshan, storage-qa-internal | |
| Target Milestone: | --- | Keywords: | Regression, ZStream | |
| Target Release: | RHGS 3.1.2 | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | glusterfs-3.7.5-13 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1293256 (view as bug list) | Environment: | ||
| Last Closed: | 2016-03-01 06:04:44 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: | ||||
| Bug Depends On: | 1293903, 1293963, 1295360 | |||
| Bug Blocks: | 1295347 | |||
|
Description
Rahul Hinduja
2015-12-21 07:49:00 UTC
upstream pach : http://review.gluster.org/13034 Note: the directory fails to get deleted due to this issue, if there is symlinks in the directory Workaround: retry delete of the directory once all files are deleted. Verified with build: glusterfs-3.7.5-14.el7rhgs.x86_64
Removal of symbolic and hardlink from tiervolume is successful without any errors. Moving this bug to verified state
[root@dj ~]# mkdir /mnt/fuse
[root@dj ~]# mount -t glusterfs 10.70.37.165:/tiervolume /mnt/fuse/
[root@dj ~]# cd /mnt/fuse/
[root@dj fuse]#
[root@dj fuse]# touch a
[root@dj fuse]# ls
a
[root@dj fuse]# ll
total 0
-rw-r--r--. 1 root root 0 Jan 6 04:36 a
[root@dj fuse]# ln -s a b
[root@dj fuse]# ll
total 0
-rw-r--r--. 1 root root 0 Jan 6 04:36 a
lrwxrwxrwx. 1 root root 1 Jan 6 2016 b -> a
[root@dj fuse]# rm -rf b
[root@dj fuse]# ll
total 0
-rw-r--r--. 1 root root 0 Jan 6 04:36 a
[root@dj fuse]# ln -s a c
[root@dj fuse]# ll
total 0
-rw-r--r--. 1 root root 0 Jan 6 04:36 a
lrwxrwxrwx. 1 root root 1 Jan 6 2016 c -> a
[root@dj fuse]# rm c
rm: remove symbolic link ‘c’? y
[root@dj fuse]# ll
total 0
-rw-r--r--. 1 root root 0 Jan 6 04:36 a
[root@dj fuse]#
[root@dj fuse]#
[root@dj fuse]# for i in {1..3}; do cp -rf /etc etc.$i ; done
[root@dj fuse]#
[root@dj fuse]# ll
total 336
-rw-r--r--. 1 root root 0 Jan 6 04:36 a
drwxr-xr-x. 80 root root 65536 Jan 6 2016 etc.1
drwxr-xr-x. 80 root root 65536 Jan 6 2016 etc.2
drwxr-xr-x. 80 root root 65536 Jan 6 2016 etc.3
[root@dj fuse]# ln -s a d
[root@dj fuse]# ln a e
[root@dj fuse]# ll
total 336
-rw-r--r--. 2 root root 0 Jan 6 04:36 a
lrwxrwxrwx. 1 root root 1 Jan 6 2016 d -> a
-rw-r--r--. 2 root root 0 Jan 6 04:36 e
drwxr-xr-x. 80 root root 65536 Jan 6 2016 etc.1
drwxr-xr-x. 80 root root 65536 Jan 6 2016 etc.2
drwxr-xr-x. 80 root root 65536 Jan 6 2016 etc.3
[root@dj fuse]#
[root@dj fuse]# rm -rf *
[root@dj fuse]# ll
total 0
[root@dj fuse]# ls
[root@dj fuse]#
[root@dj fuse]# touch {1..9}
[root@dj fuse]# for i in {1..9}; do ln -s $i sym.$i ; done
[root@dj fuse]# for i in {1..9}; do ln $i hard.$i ; done
[root@dj fuse]# ls
1 2 3 4 5 6 7 8 9 hard.1 hard.2 hard.3 hard.4 hard.5 hard.6 hard.7 hard.8 hard.9 sym.1 sym.2 sym.3 sym.4 sym.5 sym.6 sym.7 sym.8 sym.9
[root@dj fuse]# ll
total 0
-rw-r--r--. 2 root root 0 Jan 6 04:44 1
-rw-r--r--. 2 root root 0 Jan 6 04:44 2
-rw-r--r--. 2 root root 0 Jan 6 04:44 3
-rw-r--r--. 2 root root 0 Jan 6 04:44 4
-rw-r--r--. 2 root root 0 Jan 6 04:44 5
-rw-r--r--. 2 root root 0 Jan 6 04:44 6
-rw-r--r--. 2 root root 0 Jan 6 04:44 7
-rw-r--r--. 2 root root 0 Jan 6 04:44 8
-rw-r--r--. 2 root root 0 Jan 6 04:44 9
-rw-r--r--. 2 root root 0 Jan 6 04:44 hard.1
-rw-r--r--. 2 root root 0 Jan 6 04:44 hard.2
-rw-r--r--. 2 root root 0 Jan 6 04:44 hard.3
-rw-r--r--. 2 root root 0 Jan 6 04:44 hard.4
-rw-r--r--. 2 root root 0 Jan 6 04:44 hard.5
-rw-r--r--. 2 root root 0 Jan 6 04:44 hard.6
-rw-r--r--. 2 root root 0 Jan 6 04:44 hard.7
-rw-r--r--. 2 root root 0 Jan 6 04:44 hard.8
-rw-r--r--. 2 root root 0 Jan 6 04:44 hard.9
lrwxrwxrwx. 1 root root 1 Jan 6 2016 sym.1 -> 1
lrwxrwxrwx. 1 root root 1 Jan 6 2016 sym.2 -> 2
lrwxrwxrwx. 1 root root 1 Jan 6 2016 sym.3 -> 3
lrwxrwxrwx. 1 root root 1 Jan 6 2016 sym.4 -> 4
lrwxrwxrwx. 1 root root 1 Jan 6 2016 sym.5 -> 5
lrwxrwxrwx. 1 root root 1 Jan 6 2016 sym.6 -> 6
lrwxrwxrwx. 1 root root 1 Jan 6 2016 sym.7 -> 7
lrwxrwxrwx. 1 root root 1 Jan 6 2016 sym.8 -> 8
lrwxrwxrwx. 1 root root 1 Jan 6 2016 sym.9 -> 9
[root@dj fuse]# rm -rf *
[root@dj fuse]# ll
total 0
[root@dj fuse]# ls
[root@dj fuse]# mount | grep tiervolume
10.70.37.165:/tiervolume on /mnt/fuse type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072)
[root@dj fuse]#
*** Bug 1293798 has been marked as a duplicate of this bug. *** 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-2016-0193.html |