[Bugs] [Bug 1293256] [Tier]: "Bad file descriptor" on removal of symlink only on tiered volume
bugzilla at redhat.com
bugzilla at redhat.com
Mon Dec 21 09:10:35 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1293256
Mohammed Rafi KC <rkavunga at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |POST
Assignee|bugs at gluster.org |rkavunga at redhat.com
--- Comment #1 from Mohammed Rafi KC <rkavunga at redhat.com> ---
Description of problem:
=======================
rm on symbolic link errors with "Bad file descriptor" from client only on
tiered volume.
[root at dj r1]# touch a
[root at dj r1]# ln -s a b
[root at dj r1]# ls
a b
[root at dj r1]# rm -rf b
rm: cannot remove ‘b’: Bad file descriptor
[root at dj r1]# ls
a
[root at dj r1]#
Brick Log Snippet:
==================
[2015-12-20 19:36:21.565019] E [MSGID: 113005] [posix.c:1700:posix_unlink]
0-vol0-posix: post operation fstat failed on fd=-1 [Bad file descriptor]
[2015-12-20 19:36:21.565125] E [MSGID: 115062]
[server-rpc-fops.c:1097:server_unlink_cbk] 0-vol0-server: 229668: UNLINK /r1/b
(1ad39c8b-623b-455a-9914-6139453f4b31/b) ==> (Bad file descriptor) [Bad file
descriptor]
Version-Release number of selected component (if applicable):
=============================================================
glusterfs-3.7.5-12.el7rhgs.x86_64
How reproducible:
=================
Always
Steps to Reproduce:
===================
1. Create Tier volume
2. Mount the volume on client
3. Create a file
4. Create symlink to the file
5. Remove symlink from client
Actual results:
===============
rm: cannot remove ‘etc.3/xdg/systemd/user’: Bad file descriptor
rm: cannot remove ‘etc.3/rc.d/rc0.d/K50netconsole’: Bad file descriptor
rm: cannot remove ‘etc.3/rc.d/rc0.d/K03rhnsd’: Bad file descriptor
rm: cannot remove ‘etc.3/rc.d/rc0.d/K90network’: Bad file descriptor
rm: cannot remove ‘etc.3/rc.d/rc5.d/S10network’: Bad file descriptor
rm: cannot remove ‘etc.3/rc.d/rc5.d/K50netconsole’: Bad file descriptor
[root at mia ~]# file /etc/xdg/systemd/user
/etc/xdg/systemd/user: symbolic link to `/etc/systemd/user'
[root at mia ~]# file /etc/rc.d/rc0.d/K50netconsole
/etc/rc.d/rc0.d/K50netconsole: symbolic link to `../init.d/netconsole'
[root at mia ~]# file /etc/rc.d/rc0.d/K03rhnsd
/etc/rc.d/rc0.d/K03rhnsd: symbolic link to `../init.d/rhnsd'
[root at mia ~]# ls -l /etc/rc.d/rc0.d/K03rhnsd
lrwxrwxrwx. 1 root root 15 Oct 14 07:17 /etc/rc.d/rc0.d/K03rhnsd ->
../init.d/rhnsd
[root at mia ~]# file /etc/rc.d/rc0.d/K90network
/etc/rc.d/rc0.d/K90network: symbolic link to `../init.d/network'
[root at mia ~]# file /etc/rc.d/rc5.d/S10network
/etc/rc.d/rc5.d/S10network: symbolic link to `../init.d/network'
[root at mia ~]# file /etc/rc.d/rc5.d/K50netconsole
/etc/rc.d/rc5.d/K50netconsole: symbolic link to `../init.d/netconsole'
[root at mia ~]#
Expected results:
=================
Symbolic link should also be removed without errors
Additional info:
================
Removal of symlink file on non-tiered volume is successful
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list