|
|
590d18 |
From 7b04b9e603bf6517458cccae7509e99f10c8a0ec Mon Sep 17 00:00:00 2001
|
|
|
590d18 |
From: Martin Basti <mbasti@redhat.com>
|
|
|
590d18 |
Date: Tue, 1 Sep 2015 12:10:00 +0200
|
|
|
590d18 |
Subject: [PATCH] DNSSEC: backup and restore opendnssec zone list file
|
|
|
590d18 |
|
|
|
590d18 |
When zone list is not restored after unninstall, this may slow down
|
|
|
590d18 |
enbaling DNSSEC signing for zones and print unwanted
|
|
|
590d18 |
errors into log after new installation.
|
|
|
590d18 |
|
|
|
590d18 |
Related to: https://fedorahosted.org/freeipa/ticket/5273
|
|
|
590d18 |
|
|
|
590d18 |
Reviewed-By: Petr Spacek <pspacek@redhat.com>
|
|
|
590d18 |
---
|
|
|
590d18 |
ipaserver/install/opendnssecinstance.py | 6 +++++-
|
|
|
590d18 |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
590d18 |
|
|
|
590d18 |
diff --git a/ipaserver/install/opendnssecinstance.py b/ipaserver/install/opendnssecinstance.py
|
|
|
590d18 |
index 0f1af828ea245046330fdfab77db130ca14faba3..c5377d910d8f38a1ea0e05461ecf1b92f05ca2ca 100644
|
|
|
590d18 |
--- a/ipaserver/install/opendnssecinstance.py
|
|
|
590d18 |
+++ b/ipaserver/install/opendnssecinstance.py
|
|
|
590d18 |
@@ -171,6 +171,9 @@ class OpenDNSSECInstance(service.Service):
|
|
|
590d18 |
if not self.fstore.has_file(paths.OPENDNSSEC_KASP_FILE):
|
|
|
590d18 |
self.fstore.backup_file(paths.OPENDNSSEC_KASP_FILE)
|
|
|
590d18 |
|
|
|
590d18 |
+ if not self.fstore.has_file(paths.OPENDNSSEC_ZONELIST_FILE):
|
|
|
590d18 |
+ self.fstore.backup_file(paths.OPENDNSSEC_ZONELIST_FILE)
|
|
|
590d18 |
+
|
|
|
590d18 |
pin_fd = open(paths.DNSSEC_SOFTHSM_PIN, "r")
|
|
|
590d18 |
pin = pin_fd.read()
|
|
|
590d18 |
pin_fd.close()
|
|
|
590d18 |
@@ -357,7 +360,8 @@ class OpenDNSSECInstance(service.Service):
|
|
|
590d18 |
paths.IPA_KASP_DB_BACKUP)
|
|
|
590d18 |
|
|
|
590d18 |
for f in [paths.OPENDNSSEC_CONF_FILE, paths.OPENDNSSEC_KASP_FILE,
|
|
|
590d18 |
- paths.OPENDNSSEC_KASP_DB, paths.SYSCONFIG_ODS]:
|
|
|
590d18 |
+ paths.OPENDNSSEC_KASP_DB, paths.SYSCONFIG_ODS,
|
|
|
590d18 |
+ paths.OPENDNSSEC_ZONELIST_FILE]:
|
|
|
590d18 |
try:
|
|
|
590d18 |
self.fstore.restore_file(f)
|
|
|
590d18 |
except ValueError, error:
|
|
|
590d18 |
--
|
|
|
590d18 |
2.5.1
|
|
|
590d18 |
|