URL: https://github.com/freeipa/freeipa/pull/932
Author: stlaz
 Title: #932: replica-conncheck: log when failed to RPC connect
Action: opened

PR body:
"""
It's nearly impossible to find out what happened when doing
replica connection check and it fails during the RPC phase.
The error is now logged.
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/932/head:pr932
git checkout pr932
From e5ab61df956a007c31a42888a611d8dd8df7f996 Mon Sep 17 00:00:00 2001
From: Stanislav Laznicka <slazn...@redhat.com>
Date: Wed, 26 Jul 2017 15:51:52 +0200
Subject: [PATCH] replica-conncheck: log when failed to RPC connect

It's nearly impossible to find out what happened when doing
replica connection check and it fails during the RPC phase.
The error is now logged.
---
 install/tools/ipa-replica-conncheck | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/install/tools/ipa-replica-conncheck b/install/tools/ipa-replica-conncheck
index 1a50c4b7eb..4e0bd1fa40 100755
--- a/install/tools/ipa-replica-conncheck
+++ b/install/tools/ipa-replica-conncheck
@@ -589,7 +589,8 @@ def main():
                     finally:
                         if api.Backend.rpcclient.isconnected():
                             api.Backend.rpcclient.disconnect()
-            except Exception:
+            except Exception as e:
+                logger.warning("RPC connection failed: {err}".format(err=e))
                 logger.info("Retrying using SSH...")
 
                 # Ticket 5812 Always qualify requests for admin
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to