From adf2eab26309fb3ce0c2e2dbb0593f64bcd3d475 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Sep 04 2019 12:52:14 +0000 Subject: Log dogtag auth timeout in install, provide hint to increase it There is a loop which keeps trying to bind as the admin user which will fail until it is replicated. In the case where there is a lot to replicate the default 5 minute timeout may be insufficient. Provide a hint for tuning. Fixes: https://pagure.io/freeipa/issue/7971 Reviewed-By: Florence Blanc-Renaud --- diff --git a/ipaserver/install/dogtaginstance.py b/ipaserver/install/dogtaginstance.py index ddaf4bb..b60fe7f 100644 --- a/ipaserver/install/dogtaginstance.py +++ b/ipaserver/install/dogtaginstance.py @@ -482,7 +482,8 @@ class DogtagInstance(service.Service): self.master_host ) logger.debug( - "Waiting for %s to appear on %s", self.admin_dn, master_conn + "Waiting %s seconds for %s to appear on %s", + api.env.replication_wait_timeout, self.admin_dn, master_conn ) deadline = time.time() + api.env.replication_wait_timeout while time.time() < deadline: @@ -499,6 +500,9 @@ class DogtagInstance(service.Service): logger.error( "Unable to log in as %s on %s", self.admin_dn, master_conn ) + logger.info( + "[hint] tune with replication_wait_timeout" + ) raise errors.NotFound( reason="{} did not replicate to {}".format( self.admin_dn, master_conn