[Bugs] [Bug 1315170] New: Wrong interpretation of disk size in gverify.sh script

bugzilla at redhat.com bugzilla at redhat.com
Mon Mar 7 06:48:17 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1315170

            Bug ID: 1315170
           Summary: Wrong interpretation of disk size in gverify.sh script
           Product: GlusterFS
           Version: 3.7.9
         Component: geo-replication
          Assignee: bugs at gluster.org
          Reporter: sarumuga at redhat.com
                CC: bugs at gluster.org
        Depends On: 1305839



+++ This bug was initially created as a clone of Bug #1305839 +++

Description of problem:

Run gverify script as below:
#/usr/local/libexec/glusterfs/gverify.sh  tv1 root gfvm4 tv2 22 /tmp/test.log 

Testing_Passwordless_SSH
/usr/local/libexec/glusterfs/gverify.sh: line 206: [: 1-blocks: integer
expression expected

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


How reproducible:
This bug is not easily reproducible, as it is not returning any error.

If the script is executed standalone, then only it can be reproduced.

Steps to Reproduce:
1. Setup geo-replication
2. Run gverify script


Actual results:
Throws error "integer expression expected"

Expected results:
Should not throw any error. 
returns 0 for success, can be verified as echo $? after executing the script.


Additional info:

--- Additional comment from Vijay Bellur on 2016-02-09 06:33:10 EST ---

REVIEW: http://review.gluster.org/13407 (geo-rep: Fix invalid disk size in
gverify.sh) posted (#2) for review on master by Saravanakumar Arumugam
(sarumuga at redhat.com)

--- Additional comment from Vijay Bellur on 2016-03-01 02:57:24 EST ---

COMMIT: http://review.gluster.org/13407 committed in master by Jeff Darcy
(jdarcy at redhat.com) 
------
commit a35bfdaa6279a981a84e8831d65702496f1e478e
Author: Saravanakumar Arumugam <sarumuga at redhat.com>
Date:   Tue Feb 9 16:44:03 2016 +0530

    geo-rep: Fix invalid disk size in gverify.sh

    Problem:
            Due to the wrong interpretation of disk size, gverify.sh script
    exits in between with error "integer expression expected".
    This error can be observed, only if gverify.sh is run standalone.

    Solution:
            Fix the interpretation of disk size.

    Also, verify that master and slave's gluster version are same.

    Change-Id: Id095dfffd07a93a535a380f617ad215230979870
    BUG: 1305839
    Signed-off-by: Saravanakumar Arumugam <sarumuga at redhat.com>
    Reviewed-on: http://review.gluster.org/13407
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Aravinda VK <avishwan at redhat.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    Reviewed-by: Kotresh HR <khiremat at redhat.com>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1305839
[Bug 1305839] Wrong interpretation of disk size in gverify.sh script
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list