Description of problem: ======================= gluster snapshot config does accept the following 1. Decimal values like (1.1.1.1) => It converts into 1% 2. 0112 is converted into 74% (Binary to decimal conversion) 3. 0XA is converted into 10% (Hexadecimal to decimal conversion) but 0XAB fails. In my opinion we should only expect the whole integer value between 1-100 rest all should fail with proper message. Version-Release number of selected component (if applicable): ============================================================== glusterfs-devel-3.4.1.7.snap.mar27.2014git-1.el6.x86_64 How reproducible: ================= 1/1 Steps to Reproduce: 1. Set the config value with 1.1.1 , 0112, 0XA Actual results: =============== Setting values is successful. Expected results: ================= It should fail with proper message
Marking snapshot BZs to RHS 3.0.
The patch which fixes this bug can be found in http://review.gluster.org/#/c/7457/
Setting flags required to add BZs to RHS 3.0 Errata
version : glusterfs-3.6.0.4-1.el6 gluster snapshot config snap-max-soft-limit 1.1.1.1 Please enter an integer value greater than zero for snap-max-soft-limit Usage: snapshot config [volname] [snap-max-hard-limit <count>] [snap-max-soft-limit <percent>] gluster snapshot config snap-max-soft-limit 0112 snap-max-soft-limit value cannot be more than 100 Usage: snapshot config [volname] [snap-max-hard-limit <count>] [snap-max-soft-limit <percent>] gluster snapshot config snap-max-soft-limit 0XA Please enter an integer value greater than zero for snap-max-soft-limit Usage: snapshot config [volname] [snap-max-hard-limit <count>] [snap-max-soft-limit <percent>] Marking the bug as 'Verified'
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