Hi,

the attached patch fixes <https://fedorahosted.org/freeipa/ticket/4857>.

Honza

--
Jan Cholasta
>From 6270155705249b6b6bcb4665156d73f2f14edb86 Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jchol...@redhat.com>
Date: Tue, 27 Jan 2015 07:38:06 +0000
Subject: [PATCH] Do not crash when replica is unreachable in ipa-restore

https://fedorahosted.org/freeipa/ticket/4857
---
 ipaserver/install/ipa_restore.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ipaserver/install/ipa_restore.py b/ipaserver/install/ipa_restore.py
index 562a793..b4ef808 100644
--- a/ipaserver/install/ipa_restore.py
+++ b/ipaserver/install/ipa_restore.py
@@ -458,6 +458,7 @@ class Restore(admintool.AdminTool):
                                           self.dirman_password)
             except Exception, e:
                 self.log.critical("Unable to disable agreement on %s: %s" % (master, e))
+                continue
 
             master_dn = DN(('cn', master), ('cn', 'masters'), ('cn', 'ipa'), ('cn', 'etc'), api.env.basedn)
             try:
@@ -482,6 +483,7 @@ class Restore(admintool.AdminTool):
                                                       self.dirman_password)
                 except Exception, e:
                     self.log.critical("Unable to disable agreement on %s: %s" % (master, e))
+                    continue
 
                 host_entries = repl.find_ipa_replication_agreements()
                 hosts = [rep.single_value.get('nsds5replicahost')
-- 
2.1.0

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to