summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/server
diff options
context:
space:
mode:
authorDavid Kupka <dkupka@redhat.com>2015-06-26 10:42:23 +0200
committerTomas Babej <tbabej@redhat.com>2015-06-29 13:46:47 +0200
commite3d3938f44a2444e18620b43b5734a8f27bb2c8b (patch)
tree72e6c6f362b49bc78f0b927d5d7dc549fef71307 /ipaserver/install/server
parentce50630d5ece036e35d8e11db8383e4e7e9159ae (diff)
downloadfreeipa-e3d3938f44a2444e18620b43b5734a8f27bb2c8b.tar.gz
freeipa-e3d3938f44a2444e18620b43b5734a8f27bb2c8b.tar.xz
freeipa-e3d3938f44a2444e18620b43b5734a8f27bb2c8b.zip
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>
Diffstat (limited to 'ipaserver/install/server')
-rw-r--r--ipaserver/install/server/upgrade.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipaserver/install/server/upgrade.py b/ipaserver/install/server/upgrade.py
index 43beb6799..784a03b19 100644
--- a/ipaserver/install/server/upgrade.py
+++ b/ipaserver/install/server/upgrade.py
@@ -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: