This patch addresses ticket https://fedorahosted.org/freeipa/ticket/3990


Ana Krivokapic
Associate Software Engineer
FreeIPA team
Red Hat Inc.

From 2ec44821d5f422c6ab20202fcdc9e1f1eaad7ab1 Mon Sep 17 00:00:00 2001
From: Ana Krivokapic <akriv...@redhat.com>
Date: Thu, 24 Oct 2013 17:43:21 +0200
Subject: [PATCH] Do not roll back failed client installation on server

In case of a failed enrollment, IPA client rolls back any changes it has made
to the system. In order to have a more debuggable setup, do not roll back these
changes in the case of an IPA server install.

 ipa-client/ipa-install/ipa-client-install | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index cf27788f8c189721a1f644fa5841466abfbca54e..1f66ae5d635d98ba45df13d92ca7982068d94752 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -2606,6 +2606,11 @@ def main():
         if options.force:
                 "Installation failed. Force set so not rolling back changes.")
+        elif options.on_master:
+            root_logger.warning(
+                "Installation failed. As this is IPA server, changes will not "
+                "be rolled back."
+            )
             root_logger.error("Installation failed. Rolling back changes.")
             options.unattended = True

Freeipa-devel mailing list

Reply via email to