Bug 764330 (GLUSTER-2598) - Volume access option suceeds with any string value
Summary: Volume access option suceeds with any string value
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2598
Product: GlusterFS
Classification: Community
Component: nfs
Version: 3.1.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Gaurav
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-28 09:39 UTC by Gaurav
Modified: 2011-10-03 07:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions: 3.3.0qa12


Attachments (Terms of Use)

Description Gaurav 2011-03-28 09:39:29 UTC
Volume access option in NFS should take only "read-only, read-write" values.

gaurav@gaurav-Vostro-3400:~/new_gluster$ sudo gluster volume set new_vol2 nfs.volume-access aaa
Set volume successful

Comment 1 Vijay Bellur 2011-03-29 08:14:47 UTC
PATCH: http://patches.gluster.com/patch/6613 in master (NFS : Volume access option accepts only valid values.)

Comment 2 Saurabh 2011-04-06 04:22:37 UTC
It's working only for read-only, read-write, 


but correct the suggestion string if the wrong option is provided,


gluster> volume set dist2 nfs.volume-access read-bing
option nfs3.dist-strip1.volume-access read-bing: 'read-bing' is not valid (possible options are read-only, read-write, )


presently the statement finishes with a comma space and then a bracket.

Rather it should be full-stop and closing bracket without space.

Comment 3 Anand Avati 2011-06-20 00:41:32 UTC
PATCH: http://patches.gluster.com/patch/6725 in master (CLI : Display possible options in proper format.)

Comment 4 Saurabh 2011-10-03 04:19:36 UTC
root@Centos-Gurav2 mnt]# 
[root@Centos-Gurav2 mnt]# /opt/glusterfs/3.3.0qa13/sbin/gluster volume set dist-rep nfs.volume-access read-bing
option nfs3.dist-rep.volume-access read-bing: 'read-bing' is not valid (possible options are read-only, read-write.)
Set volume unsuccessful
[root@Centos-Gurav2 mnt]# /opt/glusterfs/3.3.0qa13/sbin/gluster volume set dist-rep nfs.volume-access read     
option nfs3.dist-rep.volume-access read: 'read' is not valid (possible options are read-only, read-write.)
Set volume unsuccessful
[root@Centos-Gurav2 mnt]# /opt/glusterfs/3.3.0qa13/sbin/gluster volume set dist-rep nfs.volume-access read-
option nfs3.dist-rep.volume-access read-: 'read-' is not valid (possible options are read-only, read-write.)
Set volume unsuccessful
[root@Centos-Gurav2 mnt]# /opt/glusterfs/3.3.0qa13/sbin/gluster volume set dist-rep nfs.volume-access wread-only
option nfs3.dist-rep.volume-access wread-only: 'wread-only' is not valid (possible options are read-only, read-write.)
Set volume unsuccessful
[root@Centos-Gurav2 mnt]# 
[root@Centos-Gurav2 mnt]# /opt/glusterfs/3.3.0qa13/sbin/gluster volume set dist-rep nfs.volume-access wread-write1
option nfs3.dist-rep.volume-access wread-write1: 'wread-write1' is not valid (possible options are read-only, read-write.)
Set volume unsuccessful
[root@Centos-Gurav2 mnt]# glusterfs -V
glusterfs 3git built on Jul  5 2011 22:14:42
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2010 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU Affero General Public License.


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