From d0c17b4d9afb95db2abcd93096fa6626fd61870e Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 24 Mar 2016 15:24:23 +0100 Subject: replicainstall: log ACI and LDAP errors in promotion check to enable debugging of such errors. E.g.: https://fedorahosted.org/freeipa/ticket/5741 Reviewed-By: Martin Basti --- ipaserver/install/server/replicainstall.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py index 27d4dbb40..683dfb508 100644 --- a/ipaserver/install/server/replicainstall.py +++ b/ipaserver/install/server/replicainstall.py @@ -14,6 +14,7 @@ import os import shutil import socket import tempfile +import traceback import six @@ -1315,8 +1316,10 @@ def promote_check(installer): broadcast_ip_address_warning(config.ips) except errors.ACIError: + root_logger.debug(traceback.format_exc()) raise ScriptError("\nInsufficient privileges to promote the server.") except errors.LDAPError: + root_logger.debug(traceback.format_exc()) raise ScriptError("\nUnable to connect to LDAP server %s" % config.master_host_name) finally: -- cgit