Bug 1402369

Summary: Getting the warning message while erasing the gluster "glusterfs-server" package.
Product: [Community] GlusterFS Reporter: Milind Changire <mchangir>
Component: glusterfindAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact: bugs <bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, ashah, avishwan, bsrirama, 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: 1402334
: 1402671 1402672 (view as bug list) Environment:
Last Closed: 2017-03-06 17:38:27 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:    
Bug Blocks: 1402334, 1402671, 1402672    

Comment 1 Milind Changire 2016-12-07 11:56:27 UTC
Problem:
gluster volume delete causes the "post delete" glusterfind hook script to run. The "post delete" script mistakenly deletes the .keys directory under /var/lib/glusterd/glusterfind which may cause SSH keys to be deleted if there were glusterfind sessions created on the node.

Although the issue has become evident as part of erasing RPMs, the problem is not related to packaging.

Comment 2 Worker Ant 2016-12-07 12:17:15 UTC
REVIEW: http://review.gluster.org/16052 (tools/glusterfind: avoid deleting keys directory) posted (#1) for review on master by Milind Changire (mchangir)

Comment 3 Worker Ant 2016-12-08 06:05:54 UTC
COMMIT: http://review.gluster.org/16052 committed in master by Aravinda VK (avishwan) 
------
commit 2b4b928ed350286192b63b10b18f85c669b741f8
Author: Milind Changire <mchangir>
Date:   Wed Dec 7 17:27:02 2016 +0530

    tools/glusterfind: avoid deleting keys directory
    
    Problem:
    gluster volume delete mistakenly deletes the .keys directory under
    /var/lib/glusterd/glusterfind.
    
    Solution:
    Check for ".keys" directory and avoid deleting it.
    
    Change-Id: Ia595c8bf3f423c1ad5d6faa183a29598c07a11f9
    BUG: 1402369
    Signed-off-by: Milind Changire <mchangir>
    Reviewed-on: http://review.gluster.org/16052
    Reviewed-by: Aravinda VK <avishwan>
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>

Comment 4 Shyamsundar 2017-03-06 17:38:27 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/