diff options
author | Sanju Rakonde <srakonde@redhat.com> | 2019-02-04 15:07:14 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2019-02-05 14:40:25 +0000 |
commit | 90922d20f55e26b23bfab0fbc4e179e305c38037 (patch) | |
tree | 912264bbf362649b6f5dce9bdb43f19e897f726a /tests/bugs/glusterfs-server | |
parent | a9b51f2d1fd3a8be6496b62b989b6838b542936b (diff) |
glusterd: get-state command should not fail if any brick is gone badv7dev
Problem: get-state command will error out, if any of the underlying
brick(s) of volume(s) in the cluster go bad.
It is expected that get-state command should not error out, but
should generate an output successfully.
Solution: In glusterd_get_state(), a statfs call is made on the
brick path for every bricks of the volumes to calculate the total
and free memory available. If any of statfs call fails on any
brick, we should not error out and should report total memory and free
memory of that brick as 0.
This patch also handles a statfs failure scenario in
glusterd_store_retrieve_bricks().
fixes: bz#1672205
Change-Id: Ia9e8a1d8843b65949d72fd6809bd21d39b31ad83
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'tests/bugs/glusterfs-server')
0 files changed, 0 insertions, 0 deletions