diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-04-21 16:43:10 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-04-22 11:43:50 +0200 |
commit | 46a341142079d1722647d24d06155346fc1c8442 (patch) | |
tree | 66e716279075c0381016158c242ec0dbe589807d /ipaserver/install/replication.py | |
parent | d2be41dd1b69020b11cdd6ba66436424f3a0033a (diff) | |
download | freeipa-46a341142079d1722647d24d06155346fc1c8442.tar.gz freeipa-46a341142079d1722647d24d06155346fc1c8442.tar.xz freeipa-46a341142079d1722647d24d06155346fc1c8442.zip |
Wait for memberof task and DS to start before proceeding in installation.
This was causing a replica DS instance to crash if the task was not
completed when we attempted a shutdown to do a restart.
In replication.py we were restarting the DS instance without waiting
for the ports to become available.
It is unlikely that the dn of the memberof task will change but just in
case I noted it in the two places it is referenced.
ticket 1188
Diffstat (limited to 'ipaserver/install/replication.py')
-rw-r--r-- | ipaserver/install/replication.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index 1dc112b27..3712d1c3e 100644 --- a/ipaserver/install/replication.py +++ b/ipaserver/install/replication.py @@ -23,6 +23,7 @@ import os import ldap from ipaserver import ipaldap from ipaserver.install.service import restart +import installutils from ldap import modlist from ipalib import util from ipalib import errors @@ -69,6 +70,7 @@ def enable_replication_version_checking(hostname, realm, dirman_passwd): conn.unbind() serverid = "-".join(realm.split(".")) restart("dirsrv", instance_name=serverid) + installutils.wait_for_open_ports('localhost', [389, 636], 300) else: conn.unbind() |