From 644a7dc6999b909003d16e602619a92b07f7ec31 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Wed, 8 Jun 2016 16:56:26 +0530 Subject: geo-rep: Error message cleanup If ssh returns 127 that means the remote gsyncd path is wrong or push-pem failed during create. Existing error message was pointing old documentation. Change-Id: Ifbbb4a604fc0ae0fd5cb2746df6363bf28cde1e9 BUG: 1347206 Signed-off-by: Aravinda VK Reviewed-on: http://review.gluster.org/14673 (cherry picked from commit 3b69e25c0f3cf0b958fbd2b8459712ad21239caa) Reviewed-on: http://review.gluster.org/14740 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Kotresh HR --- geo-replication/syncdaemon/syncdutils.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'geo-replication') diff --git a/geo-replication/syncdaemon/syncdutils.py b/geo-replication/syncdaemon/syncdutils.py index 3feadb83f32..9d89a3cd415 100644 --- a/geo-replication/syncdaemon/syncdutils.py +++ b/geo-replication/syncdaemon/syncdutils.py @@ -253,16 +253,19 @@ def log_raise_exception(excont): if hasattr(gconf, 'transport'): gconf.transport.wait() if gconf.transport.returncode == 127: - logging.warn("!!!!!!!!!!!!!") - logging.warn('!!! getting "No such file or directory" ' - "errors is most likely due to " - "MISCONFIGURATION" - ", please consult https://access.redhat.com" - "/site/documentation/en-US/Red_Hat_Storage" - "/2.1/html/Administration_Guide" - "/chap-User_Guide-Geo_Rep-Preparation-" - "Settingup_Environment.html") - logging.warn("!!!!!!!!!!!!!") + logging.error("getting \"No such file or directory\"" + "errors is most likely due to " + "MISCONFIGURATION, please remove all " + "the public keys added by geo-replication " + "from authorized_keys file in slave nodes " + "and run Geo-replication create " + "command again.") + logging.error("If `gsec_create container` was used, then " + "run `gluster volume geo-replication " + " [@]::" + " config remote-gsyncd " + " (Example GSYNCD_PATH: " + "`/usr/libexec/glusterfs/gsyncd`)") gconf.transport.terminate_geterr() elif isinstance(exc, OSError) and exc.errno in (ENOTCONN, ECONNABORTED): -- cgit