#2939 backtrace if creating replica while LDAP is down
Closed: Fixed None Opened 6 years ago by rcritten.

A backtrace is displayed when trying to prepare a replica file with the local LDAP server down.

# ipactl stop
# ipa-replica-prepare tove.example.com
Directory Manager (existing master) password:

ipa: INFO: Unhandled LDAPError: {'desc': "Can't contact LDAP server"}
preparation of replica failed: Can't contact LDAP server: 
Can't contact LDAP server: 
  File "/usr/sbin/ipa-replica-prepare", line 461, in <module>

  File "/usr/sbin/ipa-replica-prepare", line 263, in main
    conn.connect(bind_dn='cn=directory manager', bind_pw=dirman_password)

  File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 63, in connect
    conn = self.create_connection(*args, **kw)

  File "/usr/lib/python2.7/site-packages/ipalib/encoder.py", line 198, in new_f
    return f(*new_args, **kwargs)

  File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 476, in create_connection

  File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 241, in _handle_errors
    raise errors.DatabaseError(desc=desc, info=info)

The raised error changed from DatabaseError to NetworkError and regressed this fix.

This was fixed as part of #2652.[[BR]]

master: 26c4987

Metadata Update from @rcritten:
- Issue assigned to tbabej
- Issue set to the milestone: FreeIPA 3.2 - 2013/01

2 years ago

Login to comment on this ticket.