Bug 1004801

Summary: cluster.nufa :- cluster.nufa option should accept only 2 values - on or off
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Rachana Patel <racpatel>
Component: glusterfsAssignee: Bug Updates Notification Mailing List <rhs-bugs>
Status: CLOSED WONTFIX QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1CC: mzywusko, rhs-bugs, spalai, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-27 12:10:25 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:

Description Rachana Patel 2013-09-05 13:58:02 UTC
Description of problem:
cluster.nufa :- cluster.nufa option should accept only 2 values - on or off

Version-Release number of selected component (if applicable):
3.4.0.30rhs-2.el6_4.x86_64

How reproducible:
always

Steps to Reproduce:
[root@DHT3 ~]# gluster volume set nufa cluster.nufa om
volume set: success
[root@DHT3 ~]# gluster volume info nufa
Volume Name: nufa
Type: Distribute
Volume ID: dd08d0e3-3b71-4d1b-8102-fd6067ecc263
Status: Started
Number of Bricks: 3
Transport-type: tcp
Bricks:
Brick1: 10.70.37.195:/rhs/brick2/n1
Brick2: 10.70.37.66:/rhs/brick2/n1
Brick3: 10.70.37.98:/rhs/brick2/n1
Options Reconfigured:
cluster.nufa: om
[root@DHT3 ~]# gluster volume set nufa cluster.nufa 55
volume set: success
[root@DHT3 ~]# gluster volume info nufa
Volume Name: nufa
Type: Distribute
Volume ID: dd08d0e3-3b71-4d1b-8102-fd6067ecc263
Status: Started
Number of Bricks: 3
Transport-type: tcp
Bricks:
Brick1: 10.70.37.195:/rhs/brick2/n1
Brick2: 10.70.37.66:/rhs/brick2/n1
Brick3: 10.70.37.98:/rhs/brick2/n1
Options Reconfigured:
cluster.nufa: 55
[root@DHT3 ~]# gluster volume set nufa cluster.nufa anything
volume set: success
[root@DHT3 ~]# gluster volume info nufa
Volume Name: nufa
Type: Distribute
Volume ID: dd08d0e3-3b71-4d1b-8102-fd6067ecc263
Status: Started
Number of Bricks: 3
Transport-type: tcp
Bricks:
Brick1: 10.70.37.195:/rhs/brick2/n1
Brick2: 10.70.37.66:/rhs/brick2/n1
Brick3: 10.70.37.98:/rhs/brick2/n1
Options Reconfigured:
cluster.nufa: anything

Actual results:
user is able to set any value for that option

Expected results:
cluster.nufa option should accept only 2 values - on or off

Additional info: