Bug 1161111

Summary: gluster vol set testvol features.uss command accepts invalid random values
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Anil Shah <ashah>
Component: snapshotAssignee: Gaurav Kumar Garg <ggarg>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.0CC: amukherj, asrivast, bmohanra, ggarg, rhs-bugs, sasundar, smohan, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.0.4   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.6.0.44-1 Doc Type: Bug Fix
Doc Text:
Previously, a non-boolean value would get set for the "features.uss" option in the volume option table. This caused the failure of subsequent volume set operation as the "features.uss" option did not contain a valid boolean value. With this fix, the "features.uss" option only accepts boolean values.
Story Points: ---
Clone Of:
: 1179175 (view as bug list) Environment:
Last Closed: 2015-03-26 06:34:51 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: 1179175    
Bug Blocks: 1182947    

Description Anil Shah 2014-11-06 12:02:47 UTC
Description of problem:

gluster v set testvol features.uss  command accepts invalid random values
which are irrelevant.

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

[root@rhsauto017 yum.repos.d]# rpm -qa | grep glusterfs
glusterfs-libs-3.6.0.31-1.el6rhs.x86_64
glusterfs-cli-3.6.0.31-1.el6rhs.x86_64
glusterfs-3.6.0.31-1.el6rhs.x86_64
glusterfs-fuse-3.6.0.31-1.el6rhs.x86_64
glusterfs-server-3.6.0.31-1.el6rhs.x86_64
glusterfs-rdma-3.6.0.31-1.el6rhs.x86_64
samba-glusterfs-3.6.509-169.1.el6rhs.x86_64
glusterfs-api-3.6.0.31-1.el6rhs.x86_64
glusterfs-geo-replication-3.6.0.31-1.el6rhs.x86_64

How reproducible:

100%

Steps to Reproduce:

1. [root@rhsauto017 yum.repos.d]# gluster v set testvol  features.uss  fdhfdlkfadlkf
volume set: success

2. [root@rhsauto017 yum.repos.d]# gluster v info
 
Volume Name: testvol
Type: Distributed-Replicate
Volume ID: 6c43e6df-3981-43eb-b9b2-422616775a49
Status: Started
Snap Volume: no
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.36.247:/rhs/brick1
Brick2: 10.70.36.248:/rhs/brick1
Brick3: 10.70.36.250:/rhs/brick1
Brick4: 10.70.36.251:/rhs/brick1
Options Reconfigured:
features.uss: fdhfdlkfadlkf
performance.readdir-ahead: on
snap-max-hard-limit: 256
snap-max-soft-limit: 90
auto-delete: disable

Actual results:
gluster command accepts invalid values and gives success message
stdout:volume set: success

Expected results:
gluster command should only accepts valid values like enable or disable 

Additional info:


Document URL: 

Section Number and Name: 

Describe the issue: 

Suggestions for improvement: 

Additional information:

Comment 2 Atin Mukherjee 2015-01-21 05:17:58 UTC
This bug is identified as a MUST_FIX under 3.0.4 bucket and hence setting the target milestone to 3.0.4.

Comment 3 SATHEESARAN 2015-01-21 05:51:24 UTC
Providing the qa_ack for this bug as this could be verified within the release timeline

Comment 4 SATHEESARAN 2015-02-12 11:46:53 UTC
Verified with glusterfs-3.6.0.44-1.el6rhs

Comment 6 Bhavana 2015-03-22 19:11:18 UTC
Hi Gaurav,

The doc text is updated. Please review the same and sign off if it looks ok.

Comment 7 Gaurav Kumar Garg 2015-03-24 10:53:52 UTC
Hi Bhavana,

This doc text looks good to me.

Comment 9 errata-xmlrpc 2015-03-26 06:34:51 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-2015-0682.html