Bug 1764119

Summary: gluster rebalance status doesn't show detailed information when a node is rebooted
Product: [Community] GlusterFS Reporter: Sanju <srakonde>
Component: glusterdAssignee: Sanju <srakonde>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, bmekala, bugs, nchilaka, rhs-bugs, storage-qa-internal, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1761326 Environment:
Last Closed: 2019-11-12 06:17:42 UTC Type: ---
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: 1761326    
Bug Blocks:    

Comment 1 Sanju 2019-10-22 09:40:12 UTC
Description of problem:
=================
when a rebalance is in progress, we can see the detailed info as below
[root@rhs-gp-srv11 glusterfs]# gluster v rebal ctime-distrep-rebal status
                                    Node Rebalanced-files          size       scanned      failures       skipped               status  run time in h:m:s
                               ---------      -----------   -----------   -----------   -----------   -----------         ------------     --------------
                                server2                0        0Bytes             0             0             0          in progress        0:00:00
                                server3              6744        73.7MB         48580             0             0          in progress        0:04:41
                               localhost             6209        97.5MB         45174             0             0          in progress        0:04:41
The estimated time for rebalance to complete will be unavailable for the first 10 minutes.
volume rebalance: ctime-distrep-rebal: success


However, while a node is rebooted, we are unable to see above such info, it only displays as below
[root@rhs-gp-srv11 glusterfs]# gluster v rebal ctime-distrep-rebal status
volume rebalance: ctime-distrep-rebal: success


This is a problem if a user wants to know the exact files that have got rebalanced and how many have failed

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

How reproducible:
=============
consistent

Steps to Reproduce:
1. create a 3x3 volume
2. do some IOs from client
3. issue a remove-brick to make it 2x3
4. while rebalance is happening do a reboot of one of the nodes

Actual results:
================
reblance status doesnt show detailed info

Expected results:
=============
need detailed info even if a node is rebooted

Comment 2 Worker Ant 2019-10-22 11:29:25 UTC
REVIEW: https://review.gluster.org/23588 (cli: display detailed rebalance info) posted (#1) for review on master by Sanju Rakonde

Comment 3 Worker Ant 2019-11-12 06:17:42 UTC
REVIEW: https://review.gluster.org/23588 (cli: display detailed rebalance info) merged (#4) on master by Atin Mukherjee