Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1227618 - [geo-rep]: use_meta_volume config option should be validated for its values
[geo-rep]: use_meta_volume config option should be validated for its values
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: geo-replication (Show other bugs)
3.1
x86_64 Linux
medium Severity medium
: ---
: RHGS 3.1.0
Assigned To: Aravinda VK
storage-qa-internal@redhat.com
:
Depends On:
Blocks: 1202842 1223636 1230090 1230691
  Show dependency treegraph
 
Reported: 2015-06-03 03:04 EDT by Rahul Hinduja
Modified: 2015-07-29 00:55 EDT (History)
7 users (show)

See Also:
Fixed In Version: glusterfs-3.7.1-3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1230090 (view as bug list)
Environment:
Last Closed: 2015-07-29 00:55:26 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 04:26:26 EDT

  None (edit)
Description Rahul Hinduja 2015-06-03 03:04:15 EDT
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 04:28:22 EDT
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 00:55:26 EDT
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.