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@redhat.com>
Reviewed-on: https://review.gluster.org/16416
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Aravinda VK <avishwan@redhat.com>
This commit is contained in:
Milind Changire 2017-01-16 15:27:09 +05:30 committed by Aravinda VK
parent f2406fa615
commit 355c195503

View File

@ -587,7 +587,7 @@ def mode_query(session_dir, args):
except (IOError, OSError):
pass
run_cmd_nodes("cleanup", args)
run_cmd_nodes("cleanup", args, tmpfilename=gtmpfilename)
sys.stdout.write("Generated output file %s\n" % args.outfile)
@ -646,7 +646,7 @@ def mode_pre(session_dir, args):
except (IOError, OSError):
pass
run_cmd_nodes("cleanup", args)
run_cmd_nodes("cleanup", args, tmpfilename=gtmpfilename)
with open(status_file_pre, "w", buffering=0) as f:
f.write(str(endtime_to_update))