[Freeipa-devel] [PATCH] 0142: initialize BindInstance.zonemgr for short-circuited instance use in replica setup

Alexander Bokovoy abokovoy at redhat.com
Wed Feb 26 09:13:51 UTC 2014


Hi,

BindInstance is used in two different ways, with replica setup not
calling BindInstance.setup() before adding master records. This causes
some properties to be uninitialized and an exception when installing
replica.

https://fedorahosted.org/freeipa/ticket/4186


-- 
/ Alexander Bokovoy
-------------- next part --------------
>From 644ac4508f9f357c75c1cf954386590828bbeb3e Mon Sep 17 00:00:00 2001
From: Alexander Bokovoy <abokovoy at redhat.com>
Date: Wed, 26 Feb 2014 11:06:29 +0200
Subject: [PATCH 5/5] bindinstance: make sure zone manager is initialized in
 add_master_dns_records

Bind instance is configured using a short-circuited way when replica is set up.
Make sure required properties are in place for that.

https://fedorahosted.org/freeipa/ticket/4186
---
 ipaserver/install/bindinstance.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py
index 6d5a1d4..4dc4103 100644
--- a/ipaserver/install/bindinstance.py
+++ b/ipaserver/install/bindinstance.py
@@ -828,6 +828,7 @@ class BindInstance(service.Service):
         self.reverse_zone = reverse_zone
         self.ca_configured = ca_configured
         self.first_instance = False
+        self.zonemgr = 'hostmaster.%s' % self.domain
 
         self.__add_self()
         self.__add_ipa_ca_record()
-- 
1.8.3.1



More information about the Freeipa-devel mailing list