Show warning instead of error if CA did not start

This is just workaround, checking if CA is working raises false positive
exception during upgrade

Ticket: https://fedorahosted.org/freeipa/ticket/4676
Reviewed-By: Simo Sorce <ssorce@redhat.com>
This commit is contained in:
Martin Basti 2014-11-18 18:30:59 +01:00 committed by Petr Vobornik
parent a14ce85357
commit 43285b1fc3

View File

@ -1411,6 +1411,10 @@ def main():
ca.restart(dogtag.configured_constants().PKI_INSTANCE_NAME)
except ipautil.CalledProcessError, e:
root_logger.error("Failed to restart %s: %s", ca.service_name, e)
# FIXME https://fedorahosted.org/freeipa/ticket/4676
# workaround
except RuntimeError as e:
root_logger.warning(str(e))
set_sssd_domain_option('ipa_server_mode', 'True')