Bug 1084409

Summary: [SNAPSHOT]: Output correction in gluster snapshot config snap-max-soft-limit
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Rahul Hinduja <rhinduja>
Component: snapshotAssignee: Sachin Pandit <spandit>
Status: CLOSED ERRATA QA Contact: Rahul Hinduja <rhinduja>
Severity: low Docs Contact:
Priority: medium    
Version: rhgs-3.0CC: asengupt, nsathyan, rhs-bugs, rjoseph, senaik, spandit, ssamanta, storage-qa-internal, vagarwal
Target Milestone: ---   
Target Release: RHGS 3.0.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: SNAPSHOT
Fixed In Version: glusterfs-3.6.0-3.0.el6rhs Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-22 19:34:53 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: 1098093    
Bug Blocks:    

Description Rahul Hinduja 2014-04-04 09:27:33 UTC
Description of problem:
=======================

Expected range to set the snapshot config snap-max-soft-limit is between 1 -100. But the output mistakenly displays Expected range between 0 - 100.

[root@snapshot-09 ~]# gluster snapshot config snap-max-soft-limit 101
Changing snapshot-max-soft-limit will lead to deletion of snapshots if they exceed the new limit.
Do you want to continue? (y/n) y
Snapshot Config : failed: Invalid snap-max-soft-limit 0. Expected range 0 - 100
Snapshot command failed
[root@snapshot-09 ~]# 



Version-Release number of selected component (if applicable):
=============================================================
glusterfs-3.4.1.7.snap.mar27.2014git-1.el6.x86_64


How reproducible:
=================
1/1


Steps to Reproduce:
===================
1. Set the config value to >100

Actual results:
===============
[root@snapshot-09 ~]# gluster snapshot config snap-max-soft-limit 101
Changing snapshot-max-soft-limit will lead to deletion of snapshots if they exceed the new limit.
Do you want to continue? (y/n) y
Snapshot Config : failed: Invalid snap-max-soft-limit 0. Expected range 0 - 100
Snapshot command failed
[root@snapshot-09 ~]# 



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

[root@snapshot-09 ~]# gluster snapshot config snap-max-soft-limit 101
Changing snapshot-max-soft-limit will lead to deletion of snapshots if they exceed the new limit.
Do you want to continue? (y/n) y
Snapshot Config : failed: Invalid snap-max-soft-limit 0. Expected range 1 - 100
Snapshot command failed
[root@snapshot-09 ~]#

Comment 3 Nagaprasad Sathyanarayana 2014-04-21 06:18:22 UTC
Marking snapshot BZs to RHS 3.0.

Comment 4 Sachin Pandit 2014-05-06 07:20:49 UTC
The patch which fixes this bug can be found in http://review.gluster.org/#/c/7457/

Comment 5 Nagaprasad Sathyanarayana 2014-05-19 10:56:33 UTC
Setting flags required to add BZs to RHS 3.0 Errata

Comment 6 senaik 2014-05-20 11:03:55 UTC
Marking it as dependant of bz 1098093, as there is going to be some changes in the config output message which is not present in the current build.

Comment 8 errata-xmlrpc 2014-09-22 19:34:53 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.

http://rhn.redhat.com/errata/RHEA-2014-1278.html