From d63756eb08759740fe8b03f48d0a240f9935e6aa Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Apr 18 2023 10:12:47 +0000 Subject: Speed up installer by restarting DS after DNA plugin DS does not enable plugins unless nsslapd-dynamic-plugins is enabled or DS is restarted. The DNA plugin creates its configuration entries with some delay after the plugin is enabled. DS is now restarted after the DNA plugin is enabled so it can create the entries while Dogtag and the rest of the system is installing. The updater `update_dna_shared_config` no longer blocks and waits for two times 60 seconds for `posix-ids` and `subordinate-ids`. Fixes: https://pagure.io/freeipa/issue/9358 Signed-off-by: Christian Heimes Reviewed-By: Rob Crittenden --- diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index 157e21e..cbacfae 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -269,6 +269,9 @@ class DsInstance(service.Service): self.step("activating extdom plugin", self._add_extdom_plugin) self.step("configuring directory to start on boot", self.__enable) + # restart to enable plugins + # speeds up creation of DNA plugin entries in cn=dna,cn=ipa,cn=etc + self.step("restarting directory server", self.__restart_instance) def init_info(self, realm_name, fqdn, domain_name, dm_password, subject_base, ca_subject,