Bug 1230090 - [geo-rep]: use_meta_volume config option should be validated for its values
Summary: [geo-rep]: use_meta_volume config option should be validated for its values
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: geo-replication
Version: mainline
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Aravinda VK
QA Contact:
URL:
Whiteboard:
Depends On: 1227618
Blocks: 1223636 1230691
TreeView+ depends on / blocked
 
Reported: 2015-06-10 08:46 UTC by Aravinda VK
Modified: 2016-06-16 13:10 UTC (History)
9 users (show)

Fixed In Version: glusterfs-3.8rc2
Clone Of: 1227618
: 1230691 (view as bug list)
Environment:
Last Closed: 2016-06-16 13:10:41 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Aravinda VK 2015-06-10 08:46:23 UTC
+++ This bug was initially created as a clone of Bug #1227618 +++

Description of problem:
=======================

use_meta_volume config option should be True/False, On/Off, 0/1, enable/disable. But currently it accepts all the values for example:


[root@georep1 scripts]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume xyz
geo-replication config updated successfully
[root@georep1 scripts]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume
xyz
[root@georep1 scripts]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume 0123
geo-replication config updated successfully
[root@georep1 scripts]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume
0123
[root@georep1 scripts]# gluster volume geo-replication master 10.70.46.154::slave config \!use_meta_volume 
geo-replication config updated successfully
[root@georep1 scripts]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume
[root@georep1 scripts]# 


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

glusterfs-3.7.0-3.el6rhs.x86_64

How reproducible:
=================

Always


Steps to Reproduce:
===================
1. gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume xyz

Actual results:
===============

[root@georep1 scripts]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume xyz
geo-replication config updated successfully
[root@georep1 scripts]#

Expected results:
=================


[root@georep1 scripts]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume xyz
Invalid value(xyz) for option use_meta_volume
geo-replication command failed
[root@georep1 scripts]#

Comment 1 Aravinda VK 2015-06-10 08:49:47 UTC
Upstream patch sent
http://review.gluster.org/#/c/11156/

Comment 2 Anand Avati 2015-06-10 16:45:04 UTC
REVIEW: http://review.gluster.org/11156 (geo-rep: Validate use_meta_volume option) posted (#2) for review on master by Aravinda VK (avishwan)

Comment 3 Anand Avati 2015-06-11 06:40:51 UTC
REVIEW: http://review.gluster.org/11156 (geo-rep: Validate use_meta_volume option) posted (#3) for review on master by Aravinda VK (avishwan)

Comment 4 Anand Avati 2015-06-12 10:02:59 UTC
COMMIT: http://review.gluster.org/11156 committed in master by Vijay Bellur (vbellur) 
------
commit 57ecbbd6ce5b682a9e69c775ace48588d6535396
Author: Aravinda VK <avishwan>
Date:   Wed Jun 10 14:14:25 2015 +0530

    geo-rep: Validate use_meta_volume option
    
    Added validation for use_meta_volume option.
    
    Change-Id: I64cd9cb4bf383c7267638cab3837fd0cf89071c7
    Signed-off-by: Aravinda VK <avishwan>
    BUG: 1230090
    Reviewed-on: http://review.gluster.org/11156
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Kotresh HR <khiremat>

Comment 5 Nagaprasad Sathyanarayana 2015-10-25 14:43:54 UTC
Fix for this BZ is already present in a GlusterFS release. You can find clone of this BZ, fixed in a GlusterFS release and closed. Hence closing this mainline BZ as well.

Comment 6 Niels de Vos 2016-06-16 13:10:41 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.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [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://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


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