Bug 821112
| Summary: | ipa-ca-install failing on new 6.3 replica | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Scott Poore <spoore> | ||||||||||
| Component: | ipa | Assignee: | Rob Crittenden <rcritten> | ||||||||||
| Status: | CLOSED NOTABUG | QA Contact: | IDM QE LIST <seceng-idm-qe-list> | ||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||
| Priority: | unspecified | ||||||||||||
| Version: | 6.3 | CC: | aakkiang, alee, jgalipea, kchamart, mkosek | ||||||||||
| Target Milestone: | rc | Keywords: | TestBlocker | ||||||||||
| Target Release: | --- | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Whiteboard: | |||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
| Doc Text: | Story Points: | --- | |||||||||||
| Clone Of: | Environment: | ||||||||||||
| Last Closed: | 2012-05-16 15:22:56 UTC | Type: | Bug | ||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||
| Documentation: | --- | CRM: | |||||||||||
| Verified Versions: | Category: | --- | |||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
| Embargoed: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Scott Poore
2012-05-12 00:31:13 UTC
Created attachment 583954 [details]
ipareplica-ca-install.log from failure.
For easier reference, here are some entries from some of the logs:
From /var/log/ipareplica-ca-install.log:
2012-05-12T00:00:15Z DEBUG Configuration of CA failed
File "/usr/sbin/ipa-ca-install", line 157, in <module>
main()
File "/usr/sbin/ipa-ca-install", line 142, in main
(CA, cs) = cainstance.install_replica_ca(config, postinstall=True)
File "/usr/lib/python2.6/site-packages/ipaserver/install/cainstance.py", line 1164, in install_replica_ca
subject_base=config.subject_base)
File "/usr/lib/python2.6/site-packages/ipaserver/install/cainstance.py", line 531, in configure_instance
self.start_creation("Configuring certificate server", 210)
File "/usr/lib/python2.6/site-packages/ipaserver/install/service.py", line 257, in start_creation
method()
File "/usr/lib/python2.6/site-packages/ipaserver/install/cainstance.py", line 667, in __configure_instance
raise RuntimeError('Configuration of CA failed')
/var/log/pki-ca/debug:
[11/May/2012:19:00:15][http-9445-2]: DatabasePanel replicationStatus: dn: cn=masterAgreement1-spoore-dvm2.testrelm.com-pki-ca,cn=replica,cn="o=ipaca",cn=mapping tree,cn=config
[11/May/2012:19:00:15][http-9445-2]: DatabasePanel setupReplication: consumer initialization failed. 3 Replication error acquiring replica: permission denied
[11/May/2012:19:00:15][http-9445-2]: DatabasePanel setupReplication: java.io.IOException: consumer initialization failed. 3 Replication error acquiring replica: permission denied
[11/May/2012:19:00:15][http-9445-2]: panel no=9
[11/May/2012:19:00:15][http-9445-2]: panel name=database
[11/May/2012:19:00:15][http-9445-2]: total number of panels=19
[11/May/2012:19:00:15][http-9445-2]: WizardServlet: found xml
[11/May/2012:19:00:15][http-9445-2]: Error: unknown type org.apache.catalina.connector.ResponseFacade
[11/May/2012:19:00:15][http-9445-2]: Error: unknown type org.apache.catalina.connector.RequestFacade
/var/log/pki-ca/system:
14092.main - [11/May/2012:18:59:46 CDT] [3] [3] Cannot build CA chain. Error java.security.cert.CertificateException: Certificate is not a PKCS #11 certificate
14092.main - [11/May/2012:18:59:47 CDT] [13] [3] authz instance DirAclAuthz initialization failed and skipped, error=Property internaldb.ldapconn.port missing value
Created attachment 583958 [details]
/var/log/pki-ca/debug log file
We need to see the DS logs for both the master and replica. (This is for the CS database). The logs indicate that: 1. the replica CS contacts the master DS correctly, and connects as directory manager 2. replication agreements and users are created correctly on both sides 3. an initialize consumer operation is initiated on the master DS. 4. consumer initialization fails with the following error coming from the master DS: 3 Replication error acquiring replica: permission denied The relevant CS logs are reproduced below: [11/May/2012:19:00:08][http-9445-2]: Start setting up replication. [11/May/2012:19:00:08][http-9445-2]: DatabasePanel setupreplication: creating non-secure (non-SSL) connections for internal ldap [11/May/2012:19:00:08][http-9445-2]: DatabasePanel setupReplication: replicadn=cn=replica,cn="o=ipaca",cn=mapping tree,cn=config [11/May/2012:19:00:08][http-9445-2]: DatabasePanel createReplicationManager: Successfully created Replication Manager [11/May/2012:19:00:08][http-9445-2]: DatabasePanel createReplicationManager: Successfully created Replication Manager [11/May/2012:19:00:08][http-9445-2]: DatabasePanel getInstanceDir: DN for storing nsslapd-directory: cn=config,cn=ldbm database,cn=plugins,cn=config [11/May/2012:19:00:08][http-9445-2]: DatabasePanel getInstanceDir: attribute name: nsslapd-directory [11/May/2012:19:00:08][http-9445-2]: DatabasePanel getInstanceDir: instanceDir=/var/lib/dirsrv/slapd-PKI-IPA/db [11/May/2012:19:00:08][http-9445-2]: DatabasePanel createChangeLog: Successfully create change log entry [11/May/2012:19:00:08][http-9445-2]: DatabasePanel getInstanceDir: DN for storing nsslapd-directory: cn=config,cn=ldbm database,cn=plugins,cn=config [11/May/2012:19:00:08][http-9445-2]: DatabasePanel getInstanceDir: attribute name: nsslapd-directory [11/May/2012:19:00:08][http-9445-2]: DatabasePanel getInstanceDir: instanceDir=/var/lib/dirsrv/slapd-PKI-IPA/db [11/May/2012:19:00:08][http-9445-2]: DatabasePanel createChangeLog: Successfully create change log entry [11/May/2012:19:00:08][http-9445-2]: DatabasePanel enableReplication: replicadn: cn=replica,cn="o=ipaca",cn=mapping tree,cn=config [11/May/2012:19:00:09][http-9445-2]: DatabasePanel enableReplication: Successfully create cn=replica,cn="o=ipaca",cn=mapping tree,cn=config entry. [11/May/2012:19:00:09][http-9445-2]: DatabasePanel enableReplication: replicadn: cn=replica,cn="o=ipaca",cn=mapping tree,cn=config [11/May/2012:19:00:09][http-9445-2]: DatabasePanel enableReplication: Successfully create cn=replica,cn="o=ipaca",cn=mapping tree,cn=config entry. [11/May/2012:19:00:09][http-9445-2]: DatabasePanel setupReplication: Finished enabling replication [11/May/2012:19:00:09][http-9445-2]: DatabasePanel createReplicationAgreement: dn: cn=masterAgreement1-spoore-dvm2.testrelm.com-pki-ca,cn=replica,cn="o=ipaca",cn=mapping tree,cn=config [11/May/2012:19:00:09][http-9445-2]: About to set description attr to masterAgreement1-spoore-dvm2.testrelm.com-pki-ca [11/May/2012:19:00:09][http-9445-2]: DatabasePanel createReplicationAgreement: Successfully create replication agreement masterAgreement1-spoore-dvm2.testrelm.com-pki-ca [11/May/2012:19:00:09][http-9445-2]: DatabasePanel createReplicationAgreement: dn: cn=cloneAgreement1-spoore-dvm2.testrelm.com-pki-ca,cn=replica,cn="o=ipaca",cn=mapping tree,cn=config [11/May/2012:19:00:09][http-9445-2]: About to set description attr to cloneAgreement1-spoore-dvm2.testrelm.com-pki-ca [11/May/2012:19:00:09][http-9445-2]: DatabasePanel createReplicationAgreement: Successfully create replication agreement cloneAgreement1-spoore-dvm2.testrelm.com-pki-ca [11/May/2012:19:00:09][http-9445-2]: DatabasePanel initializeConsumer: initializeConsumer dn: cn=masterAgreement1-spoore-dvm2.testrelm.com-pki-ca,cn=replica,cn="o=ipaca",cn=mapping tree,cn=config [11/May/2012:19:00:09][http-9445-2]: DatabasePanel initializeConsumer: initializeConsumer host: spoore-dvm1.testrelm.com port: 7389 [11/May/2012:19:00:09][http-9445-2]: DatabasePanel initializeConsumer: start modifying [11/May/2012:19:00:10][http-9445-2]: DatabasePanel initializeConsumer: Finish modification. [11/May/2012:19:00:10][http-9445-2]: DatabasePanel initializeConsumer: thread sleeping for 5 seconds. [11/May/2012:19:00:15][http-9445-2]: DatabasePanel initializeConsumer: finish sleeping. [11/May/2012:19:00:15][http-9445-2]: DatabasePanel initializeConsumer: Successfully initialize consumer [11/May/2012:19:00:15][http-9445-2]: DatabasePanel replicationDone: dn: cn=masterAgreement1-spoore-dvm2.testrelm.com-pki-ca,cn=replica,cn="o=ipaca",cn=mapping tree,cn=config [11/May/2012:19:00:15][http-9445-2]: DatabasePanel replicationStatus: dn: cn=masterAgreement1-spoore-dvm2.testrelm.com-pki-ca,cn=replica,cn="o=ipaca",cn=mapping tree,cn=config [11/May/2012:19:00:15][http-9445-2]: DatabasePanel setupReplication: consumer initialization failed. 3 Replication error acquiring replica: permission denied [11/May/2012:19:00:15][http-9445-2]: DatabasePanel setupReplication: java.io.IOException: consumer initialization failed. 3 Replication error acquiring replica: permission denied Created attachment 584030 [details]
Master's /var/log/dirsrv/slapd-PKI-IPA logs
Created attachment 584031 [details]
Replica's /var/log/dirsrv/slapd-PKI-IPA logs
I attached the /var/log/dirsrv/slapd-PKI-IPA logs from both servers. Need anything else? I have backed up all of /var/log from both in case I need to grab something else. Upstream ticket: https://fedorahosted.org/freeipa/ticket/2762 Verified. Version :: pki-ca-9.0.3-24.el6.noarch Automated Test Results :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Installing CA Replica :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [23:40:42] :: Executing: ipa-ca-install -p <PASS> -w <PASS> --skip-conncheck --unattended /dev/shm/replica-info-qe-blade-11.testrelm.com.gpg spawn /usr/bin/kinit -V admin Using default cache: /tmp/krb5cc_0 Using principal: admin Password for admin: Authenticated to Kerberos v5 Default principal: admin :: [23:40:43] :: kinit as admin with password Secret123 was successful. :: [ PASS ] :: Testing kinit as admin Configuring directory server for the CA: Estimated time 30 seconds [1/3]: creating directory server user [2/3]: creating directory server instance [3/3]: restarting directory server done configuring pkids. Configuring certificate server: Estimated time 3 minutes 30 seconds [1/12]: creating certificate server user [2/12]: creating pki-ca instance [3/12]: configuring certificate server instance [4/12]: disabling nonces [5/12]: importing CA chain to RA certificate database [6/12]: fixing RA database permissions [7/12]: setting up signing cert profile [8/12]: set up CRL publishing [9/12]: set certificate subject base [10/12]: enabling Subject Key Identifier [11/12]: configuring certificate server to start on boot [12/12]: Configure HTTP to proxy connections done configuring pki-cad. Restarting the directory and certificate servers :: [ PASS ] :: CA Replica installation Just as clarification, thisbug was caused by the fix in https://bugzilla.redhat.com/show_bug.cgi?id=819111 , which was needed for dogtag 9, but not for rhel 6.3. The reason is that code that the fix in 819111 was supposed to address was never ported from dogtag 9 to the ipa-rhel 6.3 branch. This code includes functionality that will not be picked up and used by IPA until - most likely - RHEL 7. The fix has been reverted. That is - we are using the build prior to this fix. So, based on above verification, I am closing this bug as NOTABUG. |