upgrade: Raise error when certmonger is not running.

Certmonger should be running (should be started on system boot).
Either user decided to stop it or it crashed. We should just error out and
let user check & fix it.

https://fedorahosted.org/freeipa/ticket/5080

Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
David Kupka 2015-06-26 10:42:23 +02:00 committed by Tomas Babej
parent ce50630d5e
commit e3d3938f44

View File

@ -1477,6 +1477,9 @@ def upgrade_check(options):
print unicode(e)
sys.exit(1)
if not services.knownservices.certmonger.is_running():
raise RuntimeError('Certmonger is not running. Start certmonger and run upgrade again.')
if not options.skip_version_check:
# check IPA version and data version
try: