From 5762ad951fca025f17d00095bd7d89a14536ae85 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Sep 11 2015 11:54:25 +0000 Subject: Server Upgrade: backup CS.cfg when dogtag is turned off Is unable to made CS.cfg when dogtag is running. https://fedorahosted.org/freeipa/ticket/5287 Reviewed-By: David Kupka --- diff --git a/ipaserver/install/server/upgrade.py b/ipaserver/install/server/upgrade.py index 093aee8..ed1241b 100644 --- a/ipaserver/install/server/upgrade.py +++ b/ipaserver/install/server/upgrade.py @@ -1355,10 +1355,13 @@ def upgrade_configuration(): sub_dict['SUBJECT_BASE'] = subject_base ca = cainstance.CAInstance(api.env.realm, certs.NSS_DIR) - ca.backup_config() with installutils.stopped_service(configured_constants.SERVICE_NAME, configured_constants.PKI_INSTANCE_NAME): + + # Dogtag must be stopped to be able to backup CS.cfg config + ca.backup_config() + # migrate CRL publish dir before the location in ipa.conf is updated ca_restart = migrate_crl_publish_dir(ca)