Bug 2025848
| Summary: | RHEL 8.6 IPA Replica Failed to configure PKINIT setup against a RHEL 7.9 IPA server | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | anuja <amore> |
| Component: | ipa | Assignee: | Florence Blanc-Renaud <frenaud> |
| Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.9 | CC: | frenaud, jreznik, rcritten, tapazogl, tscherf |
| Target Milestone: | rc | Keywords: | Triaged, ZStream |
| Target Release: | 7.9 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-4.6.8-5.el7_9.10 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-12-16 17:54:23 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: | |||
|
Description
anuja
2021-11-23 08:12:46 UTC
The replica Apache log mirros the certmonger output: ipa: ERROR: ra.get_certificate(): Request failed with status 404: Non-2xx response from CA REST API: 404. (404) So I think we need the logs from the IPA server to see what is going on. 404 suggests the remote CA is not running though tomcat is. Do we have those logs? To clarify, the Apache logs on the 7.9 server. Taking for investigation The 7.9 server log contains: [Tue Nov 23 09:36:40.353935 2021] [:error] [pid 17045] ipa: ERROR: non-public: AttributeError: 'ldap2' object has no attribute 'Object' [Tue Nov 23 09:36:40.353966 2021] [:error] [pid 17045] Traceback (most recent call last): [Tue Nov 23 09:36:40.353968 2021] [:error] [pid 17045] File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 369, in wsgi_execute [Tue Nov 23 09:36:40.353970 2021] [:error] [pid 17045] result = command(*args, **options) [Tue Nov 23 09:36:40.353972 2021] [:error] [pid 17045] File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 450, in __call__ [Tue Nov 23 09:36:40.353974 2021] [:error] [pid 17045] return self.__do_call(*args, **options) [Tue Nov 23 09:36:40.353976 2021] [:error] [pid 17045] File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 478, in __do_call [Tue Nov 23 09:36:40.353978 2021] [:error] [pid 17045] ret = self.run(*args, **options) [Tue Nov 23 09:36:40.353979 2021] [:error] [pid 17045] File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 800, in run [Tue Nov 23 09:36:40.353981 2021] [:error] [pid 17045] return self.execute(*args, **options) [Tue Nov 23 09:36:40.353983 2021] [:error] [pid 17045] File "/usr/lib/python2.7/site-packages/ipaserver/plugins/cert.py", line 863, in execute [Tue Nov 23 09:36:40.353984 2021] [:error] [pid 17045] ca_kdc_check(ldap, alt_principal.hostname) [Tue Nov 23 09:36:40.353986 2021] [:error] [pid 17045] File "/usr/lib/python2.7/site-packages/ipaserver/plugins/cert.py", line 301, in ca_kdc_check [Tue Nov 23 09:36:40.353988 2021] [:error] [pid 17045] master_dn = api_instance.Object.server.get_dn(unicode(hostname)) [Tue Nov 23 09:36:40.353989 2021] [:error] [pid 17045] AttributeError: 'ldap2' object has no attribute 'Object' [Tue Nov 23 09:36:40.354230 2021] [:error] [pid 17045] ipa: INFO: [jsonserver_kerb] host/replica1.ipa.test: cert_request(u'MIIDojCCAooCAQAwLzERMA8GA1UECgwISVBBLlRFU1QxGjAYBgNVBAMTEXJlcGxpY2ExLmlwYS50ZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx7WvOcTgbV4NEH8IOCMdQIbQXC7NN4pyn/6BHnP7tGRTCwEKdEFTc1fObW2OXnWFuJAiT397qWTO55Md4fR4890R+rOj9Eg4VP5uas5ox7amNfU//zY9PZbGXUcEdsSdDotr3g+rUzJcQWNbQW+X5Upld9KNFBKM1XofPUnb6c8h9S1Ryyp0KH9/ldGdf0zBu+Iax43ItY4M1I5SmI4JTdw8u3dQFoeMYe4xfywpvCJKjnxRLkkLSRX9RaPiP3k4JXJ5OdGV/VTg8T4uY3cwE+jwFLb+bnkVuZmt3JjpspLDVanHkAYFZHlzAtnrLEs7zsIQ4p8lpOuwdXi4FotDpwIDAQABoIIBLDArBgkqhkiG9w0BCRQxHh4cADIAMAAyADEAMQAxADIAMwAxADQAMwA2ADMANjCB/AYJKoZIhvcNAQkOMYHuMIHrMIGCBgNVHREBAQAEeDB2ghFyZXBsaWNhMS5pcGEudGVzdKAoBgorBgEEAYI3FAIDoBoMGGtyYnRndC9JUEEuVEVTVEBJUEEuVEVTVKA3BgYrBgEFAgKgLTAroAobCElQQS5URVNUoR0wG6ADAgEBoRQwEhsGa3JidGd0GwhJUEEuVEVTVDAMBgNVHRMBAf8EAjAAMCAGA1UdDgEBAAQWBBSEIvuPTiSIMNaZt1S35yLeO5cIuzA0BgkrBgEEAYI3FAIBAQAEJB4iAEsARABDAHMAXwBQAEsASQBOAEkAVABfAEMAZQByAHQAczANBgkqhkiG9w0BAQsFAAOCAQEAC8HhHfb2RSd6fxf2Me9gzViUUhXj46sfuD2V+RUhVKOrhNs22G38zp22dEZtLSNSx9o7oent+zxbCafeivqz8/mDedkL3rDqV4VBx6gD8wv7tsDgEnfK4BD0qrK3WALCRLiaBVxfCudgjUbCvqUWoYWux3uJQw1HM8OpCCWJLZB+jDLUdD5eMCs/Cy7HNHVcvqv2UebIBLEDXW0NmA1rNC6sOqkMMdctIYqD3/thajAhemuL3RptuuWwOhudHfd3EpwYKHG6J7x0HDnEbYScVAWhuZnw+bqZL2Ao8IN9YpjKEVOclO3HoW5FbLY6uGDYAHdYAr7qDVSAUw8dUNVjUA==', profile_id=u'KDCs_PKINIT_Certs', principal=u'krbtgt/IPA.TEST', add=True): InternalError This explains why the issuance failed though I'm not sure how this translates into a 404 Not Found in the HTTP response on the 8.5 side. ipa-server-4.6.8-5.el7_9.9.x86_64 pki-ca-10.5.18-18.el7_9.noarch 389-ds-base-1.3.10.2-14.el7_9.x86_64 certmonger-0.78.4-17.el7_9.x86_64 This bug is fixed in ipa-4-6: ad8556beff19e15fdefbbc3b7655e6b63d8e1d04 But this isn't in ipa-server-4.6.8-5.el7_9.9.x86_64 Marking as POST since an upstream fix is available. The upstream issue: https://pagure.io/freeipa/issue/8686 Note that the fix needs to be done on the RHEL 7 server, hence changing the Product to RHEL 7 Verified using: server : ipa-server-4.6.8-5.el7_9.10.x86_64 replica: ipa-server-4.9.8-1.module+el8.6.0+13485+f71eb528.x86_64 [root@replica ~]# ipa-replica-install -U --setup-ca --server master.dipa7986.test --domain dipa7986.test --admin-password Secret123 --principal admin Configuring client side components This program will set up IPA client. Version 4.9.8 .. .. .. Done configuring certificate server (pki-tomcatd). Configuring Kerberos KDC (krb5kdc) [1/1]: installing X509 Certificate for PKINIT Done configuring Kerberos KDC (krb5kdc). Applying LDAP updates Upgrading IPA:. Estimated time: 1 minute 30 seconds [1/10]: stopping directory server [2/10]: saving configuration [3/10]: disabling listeners [4/10]: enabling DS global lock [5/10]: disabling Schema Compat [6/10]: starting directory server Using this no failure for PKINIT certificate request. Based on this marking bug as verified. Attaching logs. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: ipa security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:5195 |