From 009454de29d6653e07ac090af1c5d233c7150dd4 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Tue, 6 Dec 2016 12:11:35 +0530 Subject: geo-rep: Use Host UUID to find local Gluster node To spawn workers for each local brick, Geo-rep was collecting all the machine IPs based on hostname and finds based on the connectivity. With this patch, Geo-rep finds local brick if host UUID matches with UUID of the brick from Volume info. BUG: 1401801 Change-Id: Ic83c65df89e43cb86346e3ede227aa84d17ffd79 Signed-off-by: Aravinda VK Reviewed-on: http://review.gluster.org/16035 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Kotresh HR --- geo-replication/syncdaemon/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'geo-replication/syncdaemon/monitor.py') diff --git a/geo-replication/syncdaemon/monitor.py b/geo-replication/syncdaemon/monitor.py index d9a9c338579..d23d4542fd6 100644 --- a/geo-replication/syncdaemon/monitor.py +++ b/geo-replication/syncdaemon/monitor.py @@ -480,7 +480,7 @@ def distribute(*resources): workerspex = [] for idx, brick in enumerate(mvol.bricks): - if is_host_local(brick['host']): + if is_host_local(brick['uuid']): is_hot = mvol.is_hot(":".join([brick['host'], brick['dir']])) workerspex.append((brick, slaves[idx % len(slaves)], -- cgit