Attached patches removes the sysrestore states that has been left in sysrestore.state file after uninstall
From e812fae82ad6cf0771af614c64f3266a596e6e9b Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Mon, 2 Nov 2015 18:33:05 +0100
Subject: [PATCH 1/2] Fix typo in ods-exporter uninstall to restore state

---
 ipaserver/install/odsexporterinstance.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipaserver/install/odsexporterinstance.py b/ipaserver/install/odsexporterinstance.py
index 85c64aba4d7b2fb1b5f1f5c6345521458a8388f5..27a9247de82259ac84ba8e706c9a5e6f7dc3f01e 100644
--- a/ipaserver/install/odsexporterinstance.py
+++ b/ipaserver/install/odsexporterinstance.py
@@ -182,7 +182,7 @@ class ODSExporterInstance(service.Service):
 
         # restore state of dnssec default signer daemon
         signerd_enabled = self.restore_state("singerd_enabled")
-        signerd_running = self.restore_state("singerd_runnning")
+        signerd_running = self.restore_state("singerd_running")
         signerd_service = services.knownservices.ods_signerd
 
         signerd_service.unmask()
-- 
2.4.3

From 5cb50ce928319c8d3bb0dacce9053cf43b77dfe2 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Mon, 2 Nov 2015 18:46:39 +0100
Subject: [PATCH 2/2] DNSSEC: remove sysrestore state after uninstall

---
 ipaserver/install/opendnssecinstance.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ipaserver/install/opendnssecinstance.py b/ipaserver/install/opendnssecinstance.py
index 322eec5861e8b2101c2e26874e95b2415246f5b4..4baf6b6bc3d1898aadade8c741f5105b5742d749 100644
--- a/ipaserver/install/opendnssecinstance.py
+++ b/ipaserver/install/opendnssecinstance.py
@@ -378,6 +378,8 @@ class OpenDNSSECInstance(service.Service):
                 root_logger.debug(error)
                 pass
 
+        self.restore_state("KASP_DB_configured")  # just eat state
+
         # disabled by default, by ldap_enable()
         if enabled:
             self.enable()
-- 
2.4.3

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to