Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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 5RHEL 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.
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.
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