Bug 1425723

Summary: nfs-ganesha volume export file remains stale in shared_storage_volume when volume is deleted
Product: [Community] GlusterFS Reporter: Jiffin <jthottan>
Component: glusterdAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.10CC: aloganat, amukherj, bugs, jthottan, rhs-bugs, skoduri, storage-qa-internal, vbellur
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.10.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1395989 Environment:
Last Closed: 2017-05-31 20:45:17 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: 1395989, 1442603    

Description Jiffin 2017-02-22 08:50:32 UTC
+++ This bug was initially created as a clone of Bug #1395989 +++

Description of problem:
nfs-ganesha volume export file remains stale in shared_storage_volume when volume is deleted. 

If the export file is not removed, next time when the volume is created with same name the older export file is getting honoured.

Version-Release number of selected component (if applicable):
nfs-ganesha-gluster-2.4.1-1.el7rhgs.x86_64
glusterfs-ganesha-3.8.4-5.el7rhgs.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Create nfs-ganehsa cluster and create volume.
2. Set ganesha.enable to on for that volume.
3. Ensure the volume is exported.
4. Stop and delete the volume.

Actual results:
nfs-ganesha volume export file remains stale in shared_storage_volume when volume is deleted

Expected results:
nfs-ganesha volume export file should get removed when volume is deleted. 

Additional info:

Comment 1 Worker Ant 2017-02-22 08:52:24 UTC
REVIEW: https://review.gluster.org/16707 (glusterd/ganesha : During volume delete remove the ganesha export configuration file) posted (#1) for review on release-3.10 by jiffin tony Thottan (jthottan)

Comment 2 Worker Ant 2017-04-21 10:30:32 UTC
REVIEW: https://review.gluster.org/16707 (glusterd/ganesha : During volume delete remove the ganesha export configuration file) posted (#2) for review on release-3.10 by jiffin tony Thottan (jthottan)

Comment 3 Worker Ant 2017-04-24 10:31:35 UTC
COMMIT: https://review.gluster.org/16707 committed in release-3.10 by Kaleb KEITHLEY (kkeithle) 
------
commit c8e1c2d9382bd57fbdcc491e21fe24be3d4a1252
Author: Jiffin Tony Thottan <jthottan>
Date:   Wed Feb 22 14:20:41 2017 +0530

    glusterd/ganesha : During volume delete remove the ganesha export configuration file
    
    Change-Id: I0363e7f4d7cefd3f1b3c4f91e495767ec52e230e
    BUG: 1425723
    Signed-off-by: Jiffin Tony Thottan <jthottan>
    Reviewed-on: https://review.gluster.org/16707
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: soumya k <skoduri>
    Reviewed-by: Kaleb KEITHLEY <kkeithle>

Comment 5 Worker Ant 2017-05-02 08:38:11 UTC
REVIEW: https://review.gluster.org/17150 (glusterd/ganesha : add proper NULL check in manage_export_config) posted (#1) for review on release-3.10 by jiffin tony Thottan (jthottan)

Comment 6 Worker Ant 2017-05-02 18:33:57 UTC
COMMIT: https://review.gluster.org/17150 committed in release-3.10 by Kaleb KEITHLEY (kkeithle) 
------
commit e5a3aecd2d98339d77f89f51ce9c3a38ccc8a825
Author: Jiffin Tony Thottan <jthottan>
Date:   Tue May 2 14:06:00 2017 +0530

    glusterd/ganesha : add proper NULL check in manage_export_config
    
    Change-Id: I872b2b6b027f04e61f60ad85588f50e1ef2f988c
    BUG: 1425723
    Signed-off-by: Jiffin Tony Thottan <jthottan>
    Reviewed-on: https://review.gluster.org/17150
    Smoke: Gluster Build System <jenkins.org>
    Reviewed-by: soumya k <skoduri>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    Reviewed-by: Kaleb KEITHLEY <kkeithle>
    CentOS-regression: Gluster Build System <jenkins.org>

Comment 7 Raghavendra Talur 2017-05-31 20:45:17 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.2, please open a new bug report.