Bug 1417527

Summary: glusterfind: After glusterfind pre command execution all temporary files and directories /usr/var/lib/misc/glusterfsd/glusterfind/<session>/<volume>/ should be removed
Product: [Community] GlusterFS Reporter: Milind Changire <mchangir>
Component: glusterfindAssignee: Milind Changire <mchangir>
Status: CLOSED CURRENTRELEASE QA Contact: bugs <bugs>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.10CC: ashah, avishwan, bugs, khiremat, rhs-bugs, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.10.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1413526 Environment:
Last Closed: 2017-03-06 17:44:28 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: 1413526    
Bug Blocks:    

Description Milind Changire 2017-01-30 05:39:52 UTC
+++ This bug was initially created as a clone of Bug #1413526 +++

+++ This bug was initially created as a clone of Bug #1413513 +++

Description of problem:

After a glusterfind pre query command execution all temporary files and
directories under /usr/var/lib/misc/glusterfsd/glusterfind/<session>/<volume>/
should be removed. 

It will end-up eating file system.

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

glusterfs-3.8.4-11.el7rhgs.x86_64


How reproducible:

100%


Steps to Reproduce:
1. Create 2*2 distribute replicate volume
2. Do fuse mount and create some files and directories
3. create glusterfind session
4. do some file operation on mount point like create create file, remove files
5. run glusterfind pre command 

Actual results:

temporary files and directories under /usr/var/lib/misc/glusterfsd/glusterfind/<session>/<volume>/ are removed after glusterfind pre command

Expected results:


glusterfind should delete temporary files and directories under /usr/var/lib/misc/glusterfsd/glusterfind/<session>/<volume>/


Additional info:

--- Additional comment from Worker Ant on 2017-01-16 05:03:58 EST ---

REVIEW: http://review.gluster.org/16416 (tools/glusterfind: delete temporary folder) posted (#1) for review on master by Milind Changire (mchangir)

--- Additional comment from Worker Ant on 2017-01-30 00:27:29 EST ---

COMMIT: https://review.gluster.org/16416 committed in master by Aravinda VK (avishwan) 
------
commit 355c1955039a39c820880be72fe77d4e74af0967
Author: Milind Changire <mchangir>
Date:   Mon Jan 16 15:27:09 2017 +0530

    tools/glusterfind: delete temporary folder
    
    Problem:
    Run specific temporary folder created under
    /usr/var/lib/misc/glusterfsd/glusterfind/<session>/<volume>/
    remains undeleted.
    
    Solution:
    Delete the temporary folder from all nodes.
    
    Change-Id: I0edaf868aebb01b15c489434bbb26fe853351384
    BUG: 1413526
    Signed-off-by: Milind Changire <mchangir>
    Reviewed-on: https://review.gluster.org/16416
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Aravinda VK <avishwan>

Comment 1 Worker Ant 2017-01-30 05:42:28 UTC
REVIEW: https://review.gluster.org/16477 (tools/glusterfind: delete temporary folder) posted (#1) for review on release-3.10 by Milind Changire (mchangir)

Comment 2 Worker Ant 2017-02-02 17:38:23 UTC
COMMIT: https://review.gluster.org/16477 committed in release-3.10 by Shyamsundar Ranganathan (srangana) 
------
commit 41c4180437c6dc939b3f94e2fcb50e919c6980fd
Author: Milind Changire <mchangir>
Date:   Mon Jan 16 15:27:09 2017 +0530

    tools/glusterfind: delete temporary folder
    
    Problem:
    Run specific temporary folder created under
    /usr/var/lib/misc/glusterfsd/glusterfind/<session>/<volume>/
    remains undeleted.
    
    Solution:
    Delete the temporary folder from all nodes.
    
    mainline:
    > BUG: 1413526
    > Reviewed-on: https://review.gluster.org/16416
    > Smoke: Gluster Build System <jenkins.org>
    > NetBSD-regression: NetBSD Build System <jenkins.org>
    > CentOS-regression: Gluster Build System <jenkins.org>
    > Reviewed-by: Aravinda VK <avishwan>
    (cherry picked from commit 355c1955039a39c820880be72fe77d4e74af0967)
    
    Change-Id: I0edaf868aebb01b15c489434bbb26fe853351384
    BUG: 1417527
    Signed-off-by: Milind Changire <mchangir>
    Reviewed-on: https://review.gluster.org/16477
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Shyamsundar Ranganathan <srangana>

Comment 3 Shyamsundar 2017-03-06 17:44:28 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.10.0, please open a new bug report.

glusterfs-3.10.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/gluster-users/2017-February/030119.html
[2] https://www.gluster.org/pipermail/gluster-users/