Description of problem: Lifecycle hooks for Gluster-SMB and RHSC use different values. RHSC sets user.cifs to "on" and hooks look for "enable" and "disable". Version-Release number of selected component (if applicable): RHS 2.1 (glusterfs 3.4.0.17rhs built on Aug 6 2013 13:47:26) RHSC bb1 (from http://jenkins.lab.eng.blr.redhat.com/rhsc/bb1/) How reproducible: Any time a gluster volume is started, stopped, or user.cifs is set from RHSC (or command line). Steps to Reproduce: 1. Create a gluster volume from RHSC. 2. Note default value for user.cifs is "on" 3. Note lifecycle scripts in /var/lib/glusterd/hooks/1/{set,start,stop} use "disable" and "enable" as values for user.cifs. Actual results: RHSC and hooks need to use same values, or hooks do not trigger. S30samba-set.sh will not work with "on" or "off" as RHSC default value suggests. Expected results: All scripts should trigger appropriately, RHSC needs to set default appropriately, AND/OR RHSC Volume "Edit Option" dialog needs to indicate what the supported values are. Additional info: start/post/S30samba-start.sh works because it only checks the value is NOT "disable". stop/pre/S30samba-stop.sh doesn't check these values so it always works. set/post/S30samba-set.sh doesn't work unless user knows what values to use i.e. enable/disable, which are dissimilar to RHSC default of "on". Additionally gluster does not do any value checking on user.cifs, any string is accepted.
Additional information: Un-checking CIFS box in "Create Volume" dialog sets user.cifs to "off" which is also ignored by all lifecycle hooks.
Kanagaraj, During volume creation, user.cifs value needs to be changed to enable/disable depending on the checkbox value
Verified as fixed in bb9 user.cifs value is now changed to enable/disable in RHS-C [root@vm03 ~]# gluster vol info Volume Name: vol1 Type: Distribute Volume ID: 556b7c28-3a6e-4f53-974e-18c221aad271 Status: Started Number of Bricks: 1 Transport-type: tcp Bricks: Brick1: vm03.lab.eng.blr.redhat.com:/tmp/1 Options Reconfigured: auth.allow: * user.cifs: enable nfs.disable: off Volume Name: vol2 Type: Replicate Volume ID: 82d79a89-756b-49d2-8d7d-eb6d7998ffd2 Status: Started Number of Bricks: 1 x 2 = 2 Transport-type: tcp Bricks: Brick1: vm03.lab.eng.blr.redhat.com:/tmp/22 Brick2: vm03.lab.eng.blr.redhat.com:/tmp/33 Options Reconfigured: auth.allow: * user.cifs: disable nfs.disable: off
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1262.html