Bug 998904 - quota: rename fails
Summary: quota: rename fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterd
Version: 2.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Raghavendra Bhat
QA Contact: Saurabh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-20 10:23 UTC by Saurabh
Modified: 2016-01-19 06:12 UTC (History)
8 users (show)

Fixed In Version: glusterfs-3.4.0.33rhs
Doc Type: Bug Fix
Doc Text:
Previously, on a quota enabled volume, renames performed on a directory with quota limits set, may fail due to an accounting logic error. Now with this update, the accounting logic handles rename operations correctly, and the rename operations work as expected.
Clone Of:
Environment:
Last Closed: 2013-11-27 15:31:40 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1769 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #1 2013-11-27 20:17:39 UTC

Description Saurabh 2013-08-20 10:23:47 UTC
Description of problem:
trying to rename a file fails.

Version-Release number of selected component (if applicable):
glusterfs-server-3.4.0.20rhsquota1-1.el6.x86_64
glusterfs-fuse-3.4.0.20rhsquota1-1.el6.x86_64
glusterfs-3.4.0.20rhsquota1-1.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. create a 6x2 volume, start it
2. enable quota
3. set limit on the root of the volume
4. mount the volume over nfs
5. touch "filename"
6. mv "filename" ""newname

Actual results:

[root@rhsauto036 nfs-test]# touch a
[root@rhsauto036 nfs-test]# mv a a-rename
mv: cannot move `a' to `a-rename': No such file or directory

from nfs.log

[2013-08-20 07:34:33.013760] W [client-rpc-fops.c:2385:client3_3_rename_cbk] 0-dist-rep2-client-3: remote operation failed: No such file or directory
[2013-08-20 07:34:33.014422] W [client-rpc-fops.c:2385:client3_3_rename_cbk] 0-dist-rep2-client-2: remote operation failed: No such file or directory
[2013-08-20 07:34:33.014472] W [dht-rename.c:517:dht_rename_cbk] 0-dist-rep2-dht: /a: rename on dist-rep2-replicate-1 failed (No such file or directory)
[2013-08-20 07:34:33.020142] W [nfs3.c:3663:nfs3svc_rename_cbk] 0-nfs: a1b73eec: rename /a -> /a-rename => -1 (No such file or directory)
[2013-08-20 07:34:33.021379] W [client-rpc-fops.c:1529:client3_3_inodelk_cbk] 0-dist-rep2-client-3: remote operation failed: No such file or directory
[2013-08-20 07:34:33.021501] W [client-rpc-fops.c:1529:client3_3_inodelk_cbk] 0-dist-rep2-client-2: remote operation failed: No such file or directory
[2013-08-20 07:34:33.022432] W [client-rpc-fops.c:1529:client3_3_inodelk_cbk] 0-dist-rep2-client-2: remote operation failed: No such file or directory
[2013-08-20 07:34:33.023641] W [client-rpc-fops.c:1529:client3_3_inodelk_cbk] 0-dist-rep2-client-3: remote operation failed: No such file or directory
[2013-08-20 07:34:33.024371] I [afr-lk-common.c:1085:afr_lock_blocking] 0-dist-rep2-replicate-1: unable to lock on even one child
[2013-08-20 07:34:33.024463] I [afr-transaction.c:1063:afr_post_blocking_inodelk_cbk] 0-dist-rep2-replicate-1: Blocking inodelks failed.
[2013-08-20 07:34:33.024556] E [dht-linkfile.c:287:dht_linkfile_setattr_cbk] 0-dist-rep2-dht: setattr of uid/gid on /a :<gfid:00000000-0000-0000-0000-000000000000> failed (No such file or directory)

Expected results:
rename should happen, and gfid should not be returned as "zero value" for an existing file.

Additional info:

Comment 3 Raghavendra G 2013-08-23 04:09:05 UTC
Are there sos reports for this? I need brick and quotad logs in particular.

regards,
Raghavendra.

Comment 6 Raghavendra Bhat 2013-09-24 09:35:48 UTC
https://code.engineering.redhat.com/gerrit/12179 in rhs-2.1 branch fixes the issue.

Comment 7 Gowrishankar Rajaiyan 2013-09-24 11:21:27 UTC
"Fixed In Version" please.

Comment 8 shylesh 2013-09-25 15:38:28 UTC
verified on glusterfs-3.4.0.33rhs . Now rename happens successfully

Comment 9 errata-xmlrpc 2013-11-27 15:31:40 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.

http://rhn.redhat.com/errata/RHBA-2013-1769.html


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