Bug 1236153

Summary: setting enable-shared-storage without mentioning the domain, doesn't enables shared storage
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: glusterdAssignee: Gaurav Kumar Garg <ggarg>
Status: CLOSED ERRATA QA Contact: Byreddy <bsrirama>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: amukherj, ashah, bmohanra, bsrirama, byarlaga, ggarg, mlawrenc, nlevinki, rjoseph, sankarshan, smohan, vbellur
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.2   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: glusterfs-3.7.5-0.3 Doc Type: Bug Fix
Doc Text:
Previously while creating the shared storage it only accepted the "cluster.enable-shared-storage" key without accepting enable-shared-storage. With this fix, GlusterFS will accept key with or without domain name while creating shared storage.
Story Points: ---
Clone Of:
: 1238224 1319658 (view as bug list) Environment:
Last Closed: 2016-03-01 05:26:43 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: 1216951, 1238224, 1260783    

Description SATHEESARAN 2015-06-26 17:27:07 UTC
Description of problem:
-----------------------
Setting the option, enable-shared-storage, without mentioning the domain 'cluster' doesn't creates the gluster_shared_storage volume

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
glusterfs-3.7.1-5.el6rhs

How reproducible:
------------------
Always

Steps to Reproduce:
--------------------
1. Create a volume of any type
2. Enable enable-shared-storage on the volume, without mentioning the domain
(i.e) gluster volume set all enable-shared-storage enable

Actual results:
---------------
Setting enabling the option enable-shared-storage doesn't created the shared gluster volume by name gluster_shared_storage

Expected results:
-----------------
gluster_shared_storage should be created when enable-shared-storage is enabled

Additional info:
----------------
RCA is here.
The hook script '/var/lib/glusterd/hooks/1/set/post/S32gluster_enable_shared_storage.sh' checks for the key 'cluster.enable-shared-storage' and exits when the key is 'enable-shared-storage'

<snip_from_hook_script>
if [ "$key" != "cluster.enable-shared-storage" ]; then
    exit;
fi
</snip_from_hook_script>

Comment 2 SATHEESARAN 2015-07-10 07:06:21 UTC
Marking this bug for a known-issue

Comment 3 Gaurav Kumar Garg 2015-07-13 10:28:51 UTC
upstream patch available http://review.gluster.org/11491 . will clone to downstream.

Comment 4 monti lawrence 2015-07-22 20:53:47 UTC
Doc text is edited. Please sign off to be included in Known Issues.

Comment 5 Gaurav Kumar Garg 2015-07-27 05:34:49 UTC
hi monti,

this doc text looks good to me.

Comment 6 rjoseph 2015-07-27 09:14:31 UTC
Slightly modified the text.

Comment 7 Anand Nekkunti 2015-10-05 05:51:21 UTC
upstream patch merged: http://review.gluster.org/11491

Comment 10 Byreddy 2015-10-21 06:17:55 UTC
with the fix, Able to create the shared storage with/without mentioning the domain (cluster) that is,
>>gluster volume set all cluster.enable-shared-storage enable
(OR)
>>gluster volume set all enable-shared-storage enable

RHGS version used is = glusterfs-3.7.5-0.3.

With above details moving this bug to verified state.

Comment 12 errata-xmlrpc 2016-03-01 05:26:43 UTC
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.

https://rhn.redhat.com/errata/RHBA-2016-0193.html