DNSSEC catch ldap exceptions in ipa-dnskeysyncd

Server down exception causes lot of false positive abrt reports.

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Martin Basti 2015-01-21 13:32:44 +01:00 committed by Jan Cholasta
parent 834c911f96
commit 0758cf9de6

View File

@ -102,5 +102,9 @@ while watcher_running:
filterstr=ldap_url.filterstr filterstr=ldap_url.filterstr
) )
while ldap_connection.syncrepl_poll(all=1, msgid=ldap_search): try:
pass while ldap_connection.syncrepl_poll(all=1, msgid=ldap_search):
pass
except (ldap.SERVER_DOWN, ldap.CONNECT_ERROR) as e:
log.exception('syncrepl_poll: LDAP error (%s)', e)
sys.exit(1)