Bug 1012687

Summary: RFE: Request for automatic creation of samba mounts in RHS2.1 when gluster volume is started.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Balaji <bjayavel>
Component: sambaAssignee: Jose A. Rivera <jarrpa>
Status: CLOSED WONTFIX QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1CC: ira, rjoseph
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: config
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 09:23: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:
Attachments:
Description Flags
Modified hook script for Gluster Volume start none

Description Balaji 2013-09-26 21:44:57 UTC
Created attachment 803611 [details]
Modified hook script for Gluster Volume start

Description of problem:
RFE:
The samba mounts no longer get created automatically when the gluster volume is started in RHS2.1. This used to exist in RHS2.0. When the samba vfs plugin for glusterFS was introduced that uses libgdfapi, this feature was no longer required for a standard operation. However this is still required when RHS is integrated with Active Directory for authentication. This can be easily fixed by adding a few lines in the hook scripts and left commented out to be used if required:

/var/lib/glusterd/hooks/1/start/post/S30samba-start.sh (While starting Gluster Volume)
/var/lib/glusterd/hooks/1/stop/pre/S30samba-stop.sh (While stopping Gluster Volume)

These modifications will append an entry in /etc/fstab file and mount the samba mount for start script. Also it will do the opposite for stop script. Please see attachment with highlighted changes.


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


How reproducible:
"df -h" and the content of the /etc/fstab will indicate that the gluster volume info is missing. 

Upon modifying the hook script:/var/lib/glusterd/hooks/1/start/post/S30samba-start.sh and restarting the gluster volume, the volume will be visible as a samba mount /mnt/samba/gluster-vol-name as well as in the /etc/fstab.

Steps to Reproduce:
1.Stop an existing gluster volume
2.replace "/var/lib/glusterd/hooks/1/start/post/S30samba-start.sh" script with the attached script. 
3.Restart the gluster volume to display the samba mount. 

Actual results:


Expected results:


Additional info:

Comment 2 Ira Cooper 2014-09-03 12:08:35 UTC
We should make a script that wraps up all this functionality, and hides the fact that we use a FUSE mount.  It should also not modify /etc/fstab unless we need to, to mount the volume.

Comment 3 Ira Cooper 2016-02-18 09:23:28 UTC
This release is out of support.

Even given that, this is not something that we would do, it is a workaround for the real issue, where we can't set ACLs from Linux.

If you wish to address that, please file a RFE against the latest release.

Thanks,

-Ira