Bug 797042

Summary: clearing posix locks always fails with Invalid argument
Product: [Community] GlusterFS Reporter: Shwetha Panduranga <shwetha.h.panduranga>
Component: locksAssignee: krishnan parthasarathi <kparthas>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: amarts, gluster-bugs, nsathyan, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:51:05 UTC Type: ---
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:    
Bug Blocks: 817967    

Description Shwetha Panduranga 2012-02-24 06:01:24 UTC
Description of problem:
gluster volume clear-locks <Volume_name> <path_to_file> kind all posix always fails with "clear-locks getxattr command failed. Reason: Invalid argument" 

Version-Release number of selected component (if applicable):
mainline

How reproducible:
often

Actual results:
[root@APP-SERVER1 glusterfs]# gluster volume clear-locks dist / kind all posix
Volume clear-locks unsuccessful
clear-locks getxattr command failed. Reason: Invalid argument

[root@APP-SERVER1 glusterfs]# gluster volume clear-locks dist /file1 kind all posix
Volume clear-locks unsuccessful
clear-locks getxattr command failed. Reason: Invalid argument

Glusterd log:-
--------------

[2012-02-24 16:50:02.602921] I [glusterd-volume-ops.c:1783:glusterd_op_clearlocks_volume] 0-management: Received clear-locks request for volume dist with kind all type posix and options (null)
[2012-02-24 16:50:02.646580] E [glusterd-volume-ops.c:1834:glusterd_op_clearlocks_volume] 0-management: clear-locks getxattr command failed. Reason: Invalid argument
[2012-02-24 16:50:02.657537] E [glusterd-op-sm.c:1808:glusterd_op_ac_send_commit_op] 0-: Commit failed

Comment 1 Anand Avati 2012-02-27 12:39:40 UTC
CHANGE: http://review.gluster.com/2812 (locks/glusterd: Fixed clearing of posix locks from failing always.) merged in master by Vijay Bellur (vijay)

Comment 2 Shwetha Panduranga 2012-05-04 07:12:30 UTC
Bug is fixed . verified on 3.3.0qa39