From 18542cd165d047cba69ed2b3ac12e59993bf2fb0 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Mon, 14 Mar 2011 17:56:17 +0100 Subject: Wait for Directory Server ports to open When Directory Server operation is run right after the server restart the listening ports may not be opened yet. This makes the installation fail. This patch fixes this issue by waiting for both secure and insecure Directory Server ports to open after every restart. https://fedorahosted.org/freeipa/ticket/1076 --- ipaserver/install/dsinstance.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ipaserver/install/dsinstance.py') diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index 97b0f8c04..554126434 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -412,6 +412,7 @@ class DsInstance(service.Service): if not is_ds_running(): logging.critical("Failed to restart the directory server. See the installation log for details.") sys.exit(1) + installutils.wait_for_open_ports('localhost', [389, 636], 300) except SystemExit, e: raise e except Exception, e: -- cgit