a3470f
From 8216bddb4f563823a2e7cf046646b3b92239924d Mon Sep 17 00:00:00 2001
a3470f
From: Aravinda VK <avishwan@redhat.com>
a3470f
Date: Thu, 28 Dec 2017 15:17:34 +0530
a3470f
Subject: [PATCH 117/128] geo-rep: Log message improvements
a3470f
a3470f
>upstream mainline patch: https://review.gluster.org/19103
a3470f
a3470f
BUG: 1468972
a3470f
Change-Id: If4775ed9886990c0e1bcf4e44c7dfef95cc4f0c3
a3470f
Signed-off-by: Aravinda VK <avishwan@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/126634
a3470f
Tested-by: RHGS Build Bot <nigelb@redhat.com>
a3470f
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
a3470f
---
a3470f
 geo-replication/syncdaemon/gsyncd.py     | 2 +-
a3470f
 geo-replication/syncdaemon/master.py     | 8 ++++----
a3470f
 geo-replication/syncdaemon/repce.py      | 2 +-
a3470f
 geo-replication/syncdaemon/resource.py   | 4 ++--
a3470f
 geo-replication/syncdaemon/syncdutils.py | 2 +-
a3470f
 5 files changed, 9 insertions(+), 9 deletions(-)
a3470f
a3470f
diff --git a/geo-replication/syncdaemon/gsyncd.py b/geo-replication/syncdaemon/gsyncd.py
a3470f
index 932e37d..d77b90f 100644
a3470f
--- a/geo-replication/syncdaemon/gsyncd.py
a3470f
+++ b/geo-replication/syncdaemon/gsyncd.py
a3470f
@@ -796,7 +796,7 @@ def main_i():
a3470f
             remote.connect_remote(go_daemon='done')
a3470f
     local.connect()
a3470f
     if ffd:
a3470f
-        logging.info("Closing feedback fd, waking up the monitor")
a3470f
+        logging.info("Worker spawn successful. Acknowledging back to monitor")
a3470f
         os.close(ffd)
a3470f
     local.service_loop(*[r for r in [remote] if r])
a3470f
 
a3470f
diff --git a/geo-replication/syncdaemon/master.py b/geo-replication/syncdaemon/master.py
a3470f
index 4c1a529..e484692 100644
a3470f
--- a/geo-replication/syncdaemon/master.py
a3470f
+++ b/geo-replication/syncdaemon/master.py
a3470f
@@ -1639,8 +1639,8 @@ class GMasterXsyncMixin(GMasterChangelogMixin):
a3470f
             if isinstance(xtr_root, int):
a3470f
                 if xtr_root != ENOENT:
a3470f
                     logging.warn(lf("slave cluster not returning the "
a3470f
-                                    "correct xtime for root",
a3470f
-                                    xtime=xtr_root))
a3470f
+                                    "xtime for root",
a3470f
+                                    error=xtr_root))
a3470f
                 xtr_root = self.minus_infinity
a3470f
         xtl = self.xtime(path)
a3470f
         if isinstance(xtl, int):
a3470f
@@ -1649,9 +1649,9 @@ class GMasterXsyncMixin(GMasterChangelogMixin):
a3470f
         if isinstance(xtr, int):
a3470f
             if xtr != ENOENT:
a3470f
                 logging.warn(lf("slave cluster not returning the "
a3470f
-                                "correct xtime",
a3470f
+                                "xtime for dir",
a3470f
                                 path=path,
a3470f
-                                xtime=xtr))
a3470f
+                                error=xtr))
a3470f
             xtr = self.minus_infinity
a3470f
         xtr = max(xtr, xtr_root)
a3470f
         zero_zero = (0, 0)
a3470f
diff --git a/geo-replication/syncdaemon/repce.py b/geo-replication/syncdaemon/repce.py
a3470f
index 0ac1449..8db7d9e 100644
a3470f
--- a/geo-replication/syncdaemon/repce.py
a3470f
+++ b/geo-replication/syncdaemon/repce.py
a3470f
@@ -203,7 +203,7 @@ class RepceClient(object):
a3470f
             meth, *args, **{'cbk': lambda rj, res: rj.wakeup(res)})
a3470f
         exc, res = rjob.wait()
a3470f
         if exc:
a3470f
-            logging.error(lf('call failed on peer',
a3470f
+            logging.error(lf('call failed',
a3470f
                              call=repr(rjob),
a3470f
                              method=meth,
a3470f
                              error=str(type(res).__name__)))
a3470f
diff --git a/geo-replication/syncdaemon/resource.py b/geo-replication/syncdaemon/resource.py
a3470f
index 0ca023c..22aaf85 100644
a3470f
--- a/geo-replication/syncdaemon/resource.py
a3470f
+++ b/geo-replication/syncdaemon/resource.py
a3470f
@@ -834,8 +834,8 @@ class Server(object):
a3470f
                                     except OSError as e:
a3470f
                                         if e.errno == ENOTEMPTY:
a3470f
                                             logging.error(
a3470f
-                                                lf("Unable to delete directory"
a3470f
-                                                   ", Both Old and New"
a3470f
+                                                lf("Directory Rename failed. "
a3470f
+                                                   "Both Old and New"
a3470f
                                                    " directories exists",
a3470f
                                                    old=entry,
a3470f
                                                    new=en))
a3470f
diff --git a/geo-replication/syncdaemon/syncdutils.py b/geo-replication/syncdaemon/syncdutils.py
a3470f
index 2187ecd..269f301 100644
a3470f
--- a/geo-replication/syncdaemon/syncdutils.py
a3470f
+++ b/geo-replication/syncdaemon/syncdutils.py
a3470f
@@ -321,7 +321,7 @@ def log_raise_exception(excont):
a3470f
                 gconf.transport.terminate_geterr()
a3470f
         elif isinstance(exc, OSError) and exc.errno in (ENOTCONN,
a3470f
                                                         ECONNABORTED):
a3470f
-            logging.error(lf('glusterfs session went down',
a3470f
+            logging.error(lf('Gluster Mount process exited',
a3470f
                              error=errorcode[exc.errno]))
a3470f
         else:
a3470f
             logtag = "FAIL"
a3470f
-- 
a3470f
1.8.3.1
a3470f