URL: https://github.com/freeipa/freeipa/pull/186 Author: pvoborni Title: #186: replicainstall: log ACI and LDAP errors in promotion check Action: opened
PR body: """ to enable debugging of such errors. E.g.: https://fedorahosted.org/freeipa/ticket/5741 """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/186/head:pr186 git checkout pr186
From 178c899fb837bad440095ffc4e21804eb7057e1e Mon Sep 17 00:00:00 2001 From: Petr Vobornik <pvobo...@redhat.com> Date: Thu, 24 Mar 2016 15:24:23 +0100 Subject: [PATCH] replicainstall: log ACI and LDAP errors in promotion check to enable debugging of such errors. E.g.: https://fedorahosted.org/freeipa/ticket/5741 --- 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 6c9f598..d9c61f4 100644 --- a/ipaserver/install/server/replicainstall.py +++ b/ipaserver/install/server/replicainstall.py @@ -14,6 +14,7 @@ import shutil import socket import tempfile +import traceback import six @@ -1316,8 +1317,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:
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code