summaryrefslogtreecommitdiffstats
path: root/geo-replication/syncdaemon/monitor.py
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2015-12-22 12:29:32 +0530
committerVenky Shankar <vshankar@redhat.com>2015-12-22 07:06:46 -0800
commit074158e7081ff0118c719aac7cf1bcde92ee8f7d (patch)
treefb7694a4bcdf7fbad6795bf887ac45671e1259d9 /geo-replication/syncdaemon/monitor.py
parentd3fd13688f850e58bfa517a4c2d17e8fa4343dcf (diff)
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 <khiremat@redhat.com> Reviewed-on: http://review.gluster.org/13062 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vivek Reviewed-by: Aravinda VK <avishwan@redhat.com>
Diffstat (limited to 'geo-replication/syncdaemon/monitor.py')
-rw-r--r--geo-replication/syncdaemon/monitor.py5
1 files changed, 4 insertions, 1 deletions
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: