RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 910462 - ipa-replica-prepare throws exception if LDAP is not running
Summary: ipa-replica-prepare throws exception if LDAP is not running
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-12 17:18 UTC by Namita Soman
Modified: 2014-06-18 00:04 UTC (History)
2 users (show)

Fixed In Version: ipa-3.2.1-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 11:32:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Namita Soman 2013-02-12 17:18:32 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/3285

If the directory server instance is not running we get an exception in ipa-replica-prepare:

{{{
# ipa-replica-prepare pinto.example.com
Directory Manager (existing master) password: 

preparation of replica failed: cannot connect to u'ldapi://%2fvar%2frun%2fslapd-EXAMPLE-COM.socket': LDAP Server Down
cannot connect to u'ldapi://%2fvar%2frun%2fslapd-EXAMPLE-COM.socket': LDAP Server Down
  File "/usr/sbin/ipa-replica-prepare", line 478, in <module>
    main()
    
  File "/usr/sbin/ipa-replica-prepare", line 275, in main
    conn.connect(bind_dn=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/ipaserver/plugins/ldap2.py", line 837, in create_connection
    self.handle_errors(e)

  File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 729, in handle_errors
    error=u'LDAP Server Down')

Comment 1 Martin Kosek 2013-02-21 09:03:08 UTC
Fixed upstream:

master: 26c498736ec8eabb8dafbc090811c92c79a8c318

Comment 2 Namita Soman 2013-02-22 14:51:32 UTC
How is it different from Bug 842874? service dirsrv stop vs ipactl stop?
If there is a difference - please indicate how to verify this?

Comment 3 Martin Kosek 2013-02-22 15:05:35 UTC
(In reply to comment #2)
> How is it different from Bug 842874? service dirsrv stop vs ipactl stop?
> If there is a difference - please indicate how to verify this?

There is no difference. Bug 842874/Ticket 2939 was pulled from RHEL-6.4 as it was not fixed and it was moved to RHEL-7.0.

Ticket 3285/This bugzilla was filed as a new ticket for RHEL-7.0. I think we can close this Bugzilla as a duplicate to Bug 842874.

Comment 6 Michael Gregg 2014-01-09 01:02:07 UTC
Verified against ipa-server-3.3.3-8.el7.x86_64

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: BZ842874 - Stop IPA, and check output of attempting to create a new replica.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 17:30:28 ] ::  Ip address is 10.16.98.185
ipa: INFO: The ipactl command was successful
Stopping Directory Service
Stopping ipa-otpd Service
Stopping pki-tomcatd Service
Stopping httpd Service
Stopping ipa_memcached Service
Stopping named Service
Stopping kadmin Service
Stopping krb5kdc Service
:: [   PASS   ] :: Stopping IPA (Expected 0, got 0)
:: [   PASS   ] :: Attempt to create a new replica file while ipactl is down (Expected 1, got 1)

Comment 7 Ludek Smid 2014-06-13 11:32:35 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.