From 1a7a1f955e327bf1a06faa53c517bdbffff22eba Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Thu, 4 May 2017 14:58:46 +0200 Subject: [PATCH] Make CA/KRA fail when they don't start Since all the services throw exceptions when we're unable to start/restart them, CA/KRA should not be an exception to it. https://pagure.io/freeipa/issue/6766 Reviewed-By: Martin Basti --- ipaserver/install/dogtaginstance.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/ipaserver/install/dogtaginstance.py b/ipaserver/install/dogtaginstance.py index 356358adf..f79031bff 100644 --- a/ipaserver/install/dogtaginstance.py +++ b/ipaserver/install/dogtaginstance.py @@ -156,22 +156,10 @@ class DogtagInstance(service.Service): ignore_errors=True) def restart_instance(self): - try: - self.restart('pki-tomcat') - except Exception: - self.log.debug(traceback.format_exc()) - self.log.critical( - "Failed to restart the Dogtag instance." - "See the installation log for details.") + self.restart('pki-tomcat') def start_instance(self): - try: - self.start('pki-tomcat') - except Exception: - self.log.debug(traceback.format_exc()) - self.log.critical( - "Failed to restart the Dogtag instance." - "See the installation log for details.") + self.start('pki-tomcat') def stop_instance(self): try: