Bug 1321978 - [RFE] Prevent creation of volume with volume name 'gluster_shared_storage'
Summary: [RFE] Prevent creation of volume with volume name 'gluster_shared_storage'
Keywords:
Status: CLOSED EOL
Alias: None
Product: GlusterFS
Classification: Community
Component: glusterd
Version: 3.7.9
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Samikshan Bairagya
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-29 13:48 UTC by SATHEESARAN
Modified: 2017-03-08 10:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-08 10:56:10 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description SATHEESARAN 2016-03-29 13:48:22 UTC
Description of problem:
------------------------
The internal shared storage for gluster was named as - 'gluster_shared_storage'.
This shared storage is created by enabling enable_shared_storage option.

This volume shouldn't get created by hand

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
gluster 3.7.9

How reproducible:
-----------------
N/A

Actual results:
---------------
One can create a volume with the volume name as - 'gluster_shared_storage'

Expected results:
------------------
Creation of volume with volume name - 'gluster_shared_storage' should be prevented

Additional info:
----------------
1. creation of volume name by name 'all' is prevented, as 'all' will be used by gluster to refer to all the volumes. None can create a volume by name 'all'

Consequence now is that, I created a volume by name 'gluster_shared_storage' and while stopping such a volume, gluster thinks that it is the gluster internal volume and throws warning, which is incorrect

[root@ ~ ]# gluster volume create gluster_shared_storage host1:/brick/brick1
[root@ ~ ]# gluster volume start gluster_shared_storage
[root@ ~ ]# gluster volume stop gluster_shared_storage
Stopping the shared storage volume(gluster_shared_storage), will affect features like snapshot scheduler, geo-replication and NFS-Ganesha. Do you still want to continue? (y/n) n

Comment 2 Vijay Bellur 2016-06-07 11:36:40 UTC
REVIEW: http://review.gluster.org/14664 (Prevent creation of volume with name 'gluster_shared_storage') posted (#1) for review on master by Samikshan Bairagya (samikshan)

Comment 3 Vijay Bellur 2016-06-08 05:14:15 UTC
REVIEW: http://review.gluster.org/14664 (Prevent creation of volume with name 'gluster_shared_storage') posted (#2) for review on master by Samikshan Bairagya (samikshan)

Comment 4 Vijay Bellur 2016-06-08 08:46:03 UTC
REVIEW: http://review.gluster.org/14664 (Prevent creation of volume with name 'gluster_shared_storage') posted (#3) for review on master by Samikshan Bairagya (samikshan)

Comment 5 Kaushal 2017-03-08 10:56:10 UTC
This bug is getting closed because GlusteFS-3.7 has reached its end-of-life.

Note: This bug is being closed using a script. No verification has been performed to check if it still exists on newer releases of GlusterFS.
If this bug still exists in newer GlusterFS releases, please reopen this bug against the newer release.


Note You need to log in before you can comment on or make changes to this bug.