summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--geo-replication/syncdaemon/monitor.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/geo-replication/syncdaemon/monitor.py b/geo-replication/syncdaemon/monitor.py
index 3e0360332bd..ee3c91f3e9f 100644
--- a/geo-replication/syncdaemon/monitor.py
+++ b/geo-replication/syncdaemon/monitor.py
@@ -35,7 +35,12 @@ def get_slave_bricks_status(host, vol):
stdout=PIPE, stderr=PIPE)
vix = po.stdout.read()
po.wait()
- po.terminate_geterr()
+ po.terminate_geterr(fail_on_err=False)
+ if po.returncode != 0:
+ logging.info("Volume status command failed, unable to get "
+ "list of up nodes of %s, returning empty list: %s" %
+ (vol, po.returncode))
+ return []
vi = XET.fromstring(vix)
if vi.find('opRet').text != '0':
logging.info("Unable to get list of up nodes of %s, "