Bug 1065640 - gluster compression: gluster volume compression for network.compression option doesnt check the acceptable values
Summary: gluster compression: gluster volume compression for network.compression optio...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: cli
Version: pre-release
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Prashanth Pai
QA Contact:
URL:
Whiteboard:
: 1065655 1065658 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-15 10:35 UTC by ssamanta
Modified: 2015-06-11 01:08 UTC (History)
5 users (show)

Fixed In Version: glusterfs-3.6.0beta1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-11 08:27:53 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description ssamanta 2014-02-15 10:35:25 UTC
Description of problem:
 gluster volume set network.compression option doesnot verify the valid values.

Version-Release number of selected component (if applicable):
[root@desktop8 test1]# gluster --version
glusterfs 3.5.0beta3 built on Feb 11 2014 20:23:54
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.
[root@desktop8 test1]# 


How reproducible:


Steps to Reproduce:
1. Create a replica volume with replica-count=2
2. Use volume set <VOLNAME> network.compression <invalid value>
3.

Actual results:
The gluster volume set command passed without any error.


Expected results:
gluster volume set command should have failed.


Additional info:
[root@desktop8 test1]# gluster volume set gv0 network compression on
Usage: volume set <VOLNAME> <KEY> <VALUE>
[root@desktop8 test1]# gluster volume set gv0 network.compression on
volume set: success
[root@desktop8 test1]# gluster volume set gv0 network.compression off
volume set: success
[root@desktop8 test1]# gluster volume info
 
Volume Name: gv0
Type: Replicate
Volume ID: 8d9fb681-6968-455a-8638-7a3a23e1ce5d
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: 192.168.0.8:/brick1/test1
Brick2: 192.168.0.81:/brick1/test1
Options Reconfigured:
network.compression.mode: server
network.compression: off
[root@desktop8 test1]# gluster volume set gv0 network.compression on
volume set: success
[root@desktop8 test1]# gluster volume info
 
Volume Name: gv0
Type: Replicate
Volume ID: 8d9fb681-6968-455a-8638-7a3a23e1ce5d
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: 192.168.0.8:/brick1/test1
Brick2: 192.168.0.81:/brick1/test1
Options Reconfigured:
network.compression.mode: server
network.compression: on
[root@desktop8 test1]# gluster volume set gv0 network.compression osdds
volume set: success
[root@desktop8 test1]# gluster volume info
 
Volume Name: gv0
Type: Replicate
Volume ID: 8d9fb681-6968-455a-8638-7a3a23e1ce5d
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: 192.168.0.8:/brick1/test1
Brick2: 192.168.0.81:/brick1/test1
Options Reconfigured:
network.compression.mode: server
network.compression: osdds
[root@desktop8 test1]#

Comment 1 Anand Avati 2014-02-18 05:37:24 UTC
REVIEW: http://review.gluster.org/7024 (feature/compress: Validate option and enable doc) posted (#1) for review on master by Prashanth Pai (ppai)

Comment 2 Anand Avati 2014-02-18 08:06:48 UTC
REVIEW: http://review.gluster.org/7024 (feature/compress: Validate option and enable doc) posted (#2) for review on master by Prashanth Pai (ppai)

Comment 3 Prashanth Pai 2014-02-19 10:00:49 UTC
Patch on review: http://review.gluster.org/7024
Fixes BUGs: 1065658, 1065640, 1065655

Comment 4 Anand Avati 2014-02-26 10:20:01 UTC
REVIEW: http://review.gluster.org/7024 (feature/compress: Validate option and enable doc) posted (#3) for review on master by Prashanth Pai (ppai)

Comment 5 Anand Avati 2014-02-26 17:18:56 UTC
COMMIT: http://review.gluster.org/7024 committed in master by Vijay Bellur (vbellur) 
------
commit f69e85511645fcbd0526e38ca88dd3e5bf0ed917
Author: Prashanth Pai <ppai>
Date:   Mon Feb 17 20:42:42 2014 +0530

    feature/compress: Validate option and enable doc
    
    * Validate network.compression option
    * Enable descriptions of xlator configurable options
    * Improve indentation in code
    * Make network.compression.mode not configurable by user.
      This is similar to "iam-self-heal-daemon" option in AFR xlator.
    
    Fixes BUGs: 1065658, 1065640, 1065655
    
    Change-Id: I99d82b574ee0e5c8c2baf5f5d52dbf8d015d330a
    BUG: 1065640
    Signed-off-by: Prashanth Pai <ppai>
    Reviewed-on: http://review.gluster.org/7024
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Vijay Bellur <vbellur>

Comment 6 Niels de Vos 2014-07-11 18:56:25 UTC
*** Bug 1065655 has been marked as a duplicate of this bug. ***

Comment 7 Niels de Vos 2014-07-11 19:02:10 UTC
*** Bug 1065658 has been marked as a duplicate of this bug. ***

Comment 8 Niels de Vos 2014-09-22 12:35:59 UTC
A beta release for GlusterFS 3.6.0 has been released. Please verify if the release solves this bug report for you. In case the glusterfs-3.6.0beta1 release does not have a resolution for this issue, leave a comment in this bug and move the status to ASSIGNED. If this release fixes the problem for you, leave a note and change the status to VERIFIED.

Packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update (possibly an "updates-testing" repository) infrastructure for your distribution.

[1] http://supercolony.gluster.org/pipermail/gluster-users/2014-September/018836.html
[2] http://supercolony.gluster.org/pipermail/gluster-users/

Comment 9 Niels de Vos 2014-11-11 08:27:53 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.6.1, please reopen this bug report.

glusterfs-3.6.1 has been announced [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://supercolony.gluster.org/pipermail/gluster-users/2014-November/019410.html
[2] http://supercolony.gluster.org/mailman/listinfo/gluster-users


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