e3ffab
From 2e974ebf99737504f01feb2cbb85d3acbc2a15d6 Mon Sep 17 00:00:00 2001
e3ffab
From: Martin Basti <mbasti@redhat.com>
e3ffab
Date: Tue, 18 Nov 2014 18:30:59 +0100
e3ffab
Subject: [PATCH] Show warning instead of error if CA did not start
e3ffab
e3ffab
This is just workaround, checking if CA is working raises false positive
e3ffab
exception during upgrade
e3ffab
e3ffab
Ticket: https://fedorahosted.org/freeipa/ticket/4676
e3ffab
Reviewed-By: Simo Sorce <ssorce@redhat.com>
e3ffab
---
e3ffab
 install/tools/ipa-upgradeconfig | 4 ++++
e3ffab
 1 file changed, 4 insertions(+)
e3ffab
e3ffab
diff --git a/install/tools/ipa-upgradeconfig b/install/tools/ipa-upgradeconfig
e3ffab
index 6556d8f313d3a9efeb32d4cba97cb82796459652..3484f8e8768fe05dddb08e9a40e58d8ad9c2e1e7 100644
e3ffab
--- a/install/tools/ipa-upgradeconfig
e3ffab
+++ b/install/tools/ipa-upgradeconfig
e3ffab
@@ -1457,6 +1457,10 @@ def main():
e3ffab
             ca.restart(dogtag.configured_constants().PKI_INSTANCE_NAME)
e3ffab
         except ipautil.CalledProcessError, e:
e3ffab
             root_logger.error("Failed to restart %s: %s", ca.service_name, e)
e3ffab
+        # FIXME https://fedorahosted.org/freeipa/ticket/4676
e3ffab
+        # workaround
e3ffab
+        except RuntimeError as e:
e3ffab
+            root_logger.warning(str(e))
e3ffab
 
e3ffab
     set_sssd_domain_option('ipa_server_mode', 'True')
e3ffab
 
e3ffab
-- 
e3ffab
2.1.0
e3ffab