From 06fbf4b312777751085f3dcfeff456b037ee2737 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka 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. Reviewed-By: Martin Basti --- 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 cb08ad3b9..15e45e0a2 100755 --- a/install/tools/ipa-replica-conncheck +++ b/install/tools/ipa-replica-conncheck @@ -586,7 +586,8 @@ def main(): finally: if api.Backend.rpcclient.isconnected(): api.Backend.rpcclient.disconnect() - except Exception: + except Exception as e: + logger.debug("RPC connection failed: %s", e) logger.info("Retrying using SSH...") # Ticket 5812 Always qualify requests for admin