diff options
author | Martin Kosek <mkosek@redhat.com> | 2011-03-14 17:56:17 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-03-21 14:31:08 -0400 |
commit | 18542cd165d047cba69ed2b3ac12e59993bf2fb0 (patch) | |
tree | af1e88fc5380dcc40d124b358a4466654d3b04bb /ipaserver/install/dsinstance.py | |
parent | ca5332951c68904b0763f79f3612209271206b2a (diff) | |
download | freeipa-18542cd165d047cba69ed2b3ac12e59993bf2fb0.tar.gz freeipa-18542cd165d047cba69ed2b3ac12e59993bf2fb0.tar.xz freeipa-18542cd165d047cba69ed2b3ac12e59993bf2fb0.zip |
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
Diffstat (limited to 'ipaserver/install/dsinstance.py')
-rw-r--r-- | ipaserver/install/dsinstance.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |