summaryrefslogtreecommitdiffstats
path: root/geo-replication
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2015-12-22 12:29:32 +0530
committerVenky Shankar <vshankar@redhat.com>2016-01-03 22:07:05 -0800
commitbeca3d718bbb0851ffa0d07199a4779f50d19fdc (patch)
treec152639740fe77ac7236466125838dda26d5270a /geo-replication
parentfd26e57537316da736768f32c12058e1e01123ce (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. BUG: 1293309 Change-Id: I3f50d21cb51db91e31faebf69af4f72360420b73 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: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/13068
Diffstat (limited to 'geo-replication')
-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 a7978993035..cabb982349d 100644
--- a/geo-replication/syncdaemon/monitor.py
+++ b/geo-replication/syncdaemon/monitor.py
@@ -146,7 +146,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: