From b118d38feeac276441f0e1647f6a093a1bb08763 Mon Sep 17 00:00:00 2001 From: ShwethaHP Date: Wed, 30 Aug 2017 16:51:46 +0530 Subject: Do not validate the return code of the 'rebalance status' command when just logging the output Change-Id: I6ff7e363871607c2f9d4272be7198150db59af5d Signed-off-by: ShwethaHP --- glustolibs-gluster/glustolibs/gluster/volume_libs.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'glustolibs-gluster') diff --git a/glustolibs-gluster/glustolibs/gluster/volume_libs.py b/glustolibs-gluster/glustolibs/gluster/volume_libs.py index 8a7806b04..c62839778 100644 --- a/glustolibs-gluster/glustolibs/gluster/volume_libs.py +++ b/glustolibs-gluster/glustolibs/gluster/volume_libs.py @@ -1461,15 +1461,10 @@ def shrink_volume(mnode, volname, subvol_num=None, replica_num=None, bricks_list_to_remove, volname) # remove-brick status - g.log.info("Checking remove-brick status of bricks %s on the volume %s", + g.log.info("Logging remove-brick status of bricks %s on the volume %s", bricks_list_to_remove, volname) - ret, _, _ = remove_brick(mnode, volname, bricks_list_to_remove, - option="status") - if ret != 0: - g.log.error("Failed to get status of remove-brick of bricks %s on " - "volume %s", bricks_list_to_remove, volname) - g.log.info("Successfully got remove-brick status of bricks %s on " - "volume %s", bricks_list_to_remove, volname) + _, _, _ = remove_brick(mnode, volname, bricks_list_to_remove, + option="status") # Wait for rebalance started by remove-brick to complete _rc = False -- cgit