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 694283 - Converting to GSSAPI replication may fail
Summary: Converting to GSSAPI replication may fail
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks: 694540
TreeView+ depends on / blocked
 
Reported: 2011-04-06 20:54 UTC by Rob Crittenden
Modified: 2015-01-04 23:47 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The issue is sporadic. The workaround is to re-install the replica again.
Clone Of:
: 694540 (view as bug list)
Environment:
Last Closed: 2011-04-07 15:38:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
master server 389-ds access log (22.67 KB, application/x-gzip)
2011-04-06 20:55 UTC, Rob Crittenden
no flags Details
replica server access log (8.06 KB, application/x-gzip)
2011-04-06 20:56 UTC, Rob Crittenden
no flags Details
replica install log (373.57 KB, text/plain)
2011-04-06 20:56 UTC, Rob Crittenden
no flags Details

Description Rob Crittenden 2011-04-06 20:54:52 UTC
Description of problem:

Converting to GSSAPI replication may fail in some cases (unclear which). It looks like this when it fails:

2011-04-06 15:39:36,085 DEBUG list index out of range
  File "/usr/sbin/ipa-replica-install", line 540, in <module>
    main()

  File "/usr/sbin/ipa-replica-install", line 501, in main
    install_krb(config, setup_pkinit=options.setup_pkinit)

  File "/usr/sbin/ipa-replica-install", line 242, in install_krb
    setup_pkinit, pkcs12_info)

  File "/usr/lib/python2.6/site-packages/ipaserver/install/krbinstance.py", line 217, in create_replica
    self.start_creation("Configuring Kerberos KDC", 30)

  File "/usr/lib/python2.6/site-packages/ipaserver/install/service.py", line 301, in start_creation
    method()

  File "/usr/lib/python2.6/site-packages/ipaserver/install/krbinstance.py", line 562, in __convert_to_gssapi_replication
    r_bindpw=self.dm_password)

  File "/usr/lib/python2.6/site-packages/ipaserver/install/replication.py", line 714, in convert_to_gssapi_replication
    self.gssapi_update_agreements(self.conn, r_conn)

  File "/usr/lib/python2.6/site-packages/ipaserver/install/replication.py", line 456, in gssapi_update_agreements
    self.setup_krb_princs_as_replica_binddns(a, b)

  File "/usr/lib/python2.6/site-packages/ipaserver/install/replication.py", line 449, in setup_krb_princs_as_replica_binddns
    mod = [(ldap.MOD_ADD, "nsds5replicabinddn", a_pn[0].dn)]

The reason it fails is that searching with filter_a against server b (the remote) returns no entries. search_s() returns [] when nothing is found, it doesn't raise an exception, so there is nothing to index.

server a is the replica, server b is the remote master.

The krbprincipalname for server a is found in server a.
The krbprincipalname for server b is found in both server a and server b.

Just prior to this in the log it is clear that re-initialization was requested.

In the master access logs I see this:

[06/Apr/2011:15:39:25 -0400] conn=10 op=8 MOD dn="krbprincipalname=ldap/rhel61-server2.testrelm@testrelm,cn=services,cn=accounts,dc=testrelm"
[06/Apr/2011:15:39:25 -0400] conn=10 op=8 RESULT err=32 tag=103 nentries=0 etime=0 csn=4d9cc16d000300030000

Version-Release number of selected component (if applicable):

ipa-server-2.0.0-20.el6.x86_64

Comment 1 Rob Crittenden 2011-04-06 20:55:31 UTC
Created attachment 490399 [details]
master server 389-ds access log

Comment 2 Rob Crittenden 2011-04-06 20:56:06 UTC
Created attachment 490400 [details]
replica server access log

Comment 3 Rob Crittenden 2011-04-06 20:56:43 UTC
Created attachment 490401 [details]
replica install log

Comment 5 RHEL Program Management 2011-04-06 21:04:25 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 6 Dmitri Pal 2011-04-07 15:38:07 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The issue is sporadic. The workaround is to re-install the replica again.

Comment 7 Rich Megginson 2011-04-21 17:49:44 UTC
I believe this is a dup of https://bugzilla.redhat.com/show_bug.cgi?id=698421 see https://bugzilla.redhat.com/show_bug.cgi?id=698421#c8 for an explanation


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