From 074158e7081ff0118c719aac7cf1bcde92ee8f7d Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Tue, 22 Dec 2015 12:29:32 +0530 Subject: geo-rep: Fix getting subvol count Tiering doesn't support disperse volume as hot tier, hence xml output doesn't give 'hotdisperseCount'. Remove the usage of 'hotdisperseCount' in geo-rep and return 0 instead. Change-Id: I736e29257de085a25e38eb02959caad3465ebcda BUG: 1292084 Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/13062 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Vivek Reviewed-by: Aravinda VK --- geo-replication/syncdaemon/monitor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'geo-replication') diff --git a/geo-replication/syncdaemon/monitor.py b/geo-replication/syncdaemon/monitor.py index 63c8e3365ca..2b570a9f4fc 100644 --- a/geo-replication/syncdaemon/monitor.py +++ b/geo-replication/syncdaemon/monitor.py @@ -145,7 +145,10 @@ class Volinfo(object): def disperse_count(self, tier, hot): if (tier and hot): - return int(self.get('hotBricks/hotdisperseCount')[0].text) + # Tiering doesn't support disperse volume as hot brick, + # hence no xml output, so returning 0. In case, if it's + # supported later, we should change here. + return 0 elif (tier and not hot): return int(self.get('coldBricks/colddisperseCount')[0].text) else: -- cgit