Bug 1227618 - [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 ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: geo-replication
Version: rhgs-3.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: RHGS 3.1.0
Assignee: Aravinda VK
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1202842 1223636 1230090 1230691
TreeView+ depends on / blocked
 
Reported: 2015-06-03 07:04 UTC by Rahul Hinduja
Modified: 2015-07-29 04:55 UTC (History)
7 users (show)

Fixed In Version: glusterfs-3.7.1-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1230090 (view as bug list)
Environment:
Last Closed: 2015-07-29 04:55:26 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 0 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 08:26:26 UTC

Description Rahul Hinduja 2015-06-03 07:04:15 UTC
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 5 Rahul Hinduja 2015-06-18 08:28:22 UTC
Verified with build: glusterfs-3.7.1-3.el6rhs.x86_64

Command fails for invalid input. Marking the bug to verified 


[root@georep1 ~]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume
true
[root@georep1 ~]# 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 ~]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume 123
Invalid value(123) for option use_meta_volume
geo-replication command failed
[root@georep1 ~]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume -1
Invalid value(-1) for option use_meta_volume
geo-replication command failed
[root@georep1 ~]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume 0
geo-replication config updated successfully
[root@georep1 ~]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume
0
[root@georep1 ~]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume 1
geo-replication config updated successfully
[root@georep1 ~]# gluster volume geo-replication master 10.70.46.154::slave config use_meta_volume
1
[root@georep1 ~]#

Comment 6 errata-xmlrpc 2015-07-29 04:55:26 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/RHSA-2015-1495.html


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