path: root/geo-replication
diff options
authorKotresh HR <>2015-12-22 12:29:32 +0530
committerVenky Shankar <>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 <> Reviewed-on: Tested-by: NetBSD Build System <> Tested-by: Gluster Build System <> Reviewed-by: Aravinda VK <> Reviewed-on:
Diffstat (limited to 'geo-replication')
1 files changed, 4 insertions, 1 deletions
diff --git a/geo-replication/syncdaemon/ b/geo-replication/syncdaemon/
index a7978993035..cabb982349d 100644
--- a/geo-replication/syncdaemon/
+++ b/geo-replication/syncdaemon/
@@ -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)