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 1609882 - ipaserver/plugins/cert.py: Add reason to raise of errors.NotFound
Summary: ipaserver/plugins/cert.py: Add reason to raise of errors.NotFound
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 1609883
TreeView+ depends on / blocked
 
Reported: 2018-07-30 17:45 UTC by Rob Crittenden
Modified: 2018-10-30 11:01 UTC (History)
10 users (show)

Fixed In Version: ipa-4.6.4-7.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1609883 (view as bug list)
Environment:
Last Closed: 2018-10-30 11:00:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3187 0 None None None 2018-10-30 11:01:37 UTC

Description Rob Crittenden 2018-07-30 17:45:14 UTC
This bug is created as a clone of upstream ticket:
https://pagure.io/freeipa/issue/7652

### Description of problem:
In the case that enabledService is not found ipaConfigString kdc entry, a
NotFound error was raised without setting the reason. This resulted in a
traceback.
This patch fixes a trace back that is happening while deploying a replica DL1 with 4.7.0 DL1 is not able to setup PKINIT. This is another issue, but the trace back because of missing reason is fixed by this patch.

Upstream pull request: https://github.com/freeipa/freeipa/pull/2182

#### Version-Release number of selected component (if applicable):
freeipa-4.5.1+

#### How reproducible:
Always

#### Steps to Reproduce (with 4.7.0):
1. Install replica DL1
2. Long time out while setting up PKINIT
2. Check /var/log/httpd/errors_log on replica and server

#### Actual results:
Additional trace back because of missing reason argument for NotFound in the logs.

#### Expected results:
No additional trace back because of missing reason argument for NotFound in the logs.

#### Additional info:
The issue is normally not seen (code patch not hit), but is possible right now with 4.7.0.

Comment 1 Florence Blanc-Renaud 2018-08-17 13:09:26 UTC
Fixed upstream
master:
    https://pagure.io/freeipa/c/71ba408d61839233081a0694e3cdf8d829255b7b ipaserver/plugins/cert.py: Added reason to raise of errors.NotFound

ipa-4-7:
    https://pagure.io/freeipa/c/b7db3ec53e8ac7f7351285b038530bb27e2d3c67 ipaserver/plugins/cert.py: Added reason to raise of errors.NotFound

ipa-4-5:
    https://pagure.io/freeipa/c/247d57f7f936bdbc76221eeba4e2218d8fa4687d ipaserver/plugins/cert.py: Added reason to raise of errors.NotFound

ipa-4-6:
    https://pagure.io/freeipa/c/70aae6237b340a227028b507808b404f8efe32e2 ipaserver/plugins/cert.py: Added reason to raise of errors.NotFound

Comment 4 Sudhir Menon 2018-09-04 07:54:19 UTC
Tested on RHEL7.6 Red Hat Enterprise Linux Server release 7.6 Beta (Maipo)

ipa-server-4.6.4-7.el7.x86_64
389-ds-base-1.3.8.4-13.el7.x86_64
pki-server-10.5.9-6.el7.noarch


1. traceback is no more seen in httpd error_log file
2. httpd error_log displays the below message now on the IPA Replica 

018-09-04T07:10:28Z DEBUG Cert request 20180904070522 failed: CA_REJECTED (Server at https://replica.thunderbird.test/ipa/xml denied our request, giving up: 2100 (RPC failed at server.  Insufficient access: Host 'replica.thunderbird.test' is not an active KDC).)
2018-09-04T07:10:28Z WARNING PKINIT certificate request failed: Certificate issuance failed (CA_REJECTED: Server at https://replica.thunderbird.test/ipa/xml denied our request, giving up: 2100 (RPC failed at server.  Insufficient access: Host 'replica.thunderbird.test' is not an active KDC).)

3. Logs on IPA master

[Tue Sep 04 12:30:24.864784 2018] [:warn] [pid 16142] [client 10.65.206.145:43064] failed to set perms (3140) on file (/var/run/ipa/ccaches/host~replica.thunderbird.test)!, referer: https://master.thunderbird.test/ipa/xml
[Tue Sep 04 12:30:25.312056 2018] [:error] [pid 16137] ipa: INFO: [jsonserver_session] host/replica.thunderbird.test: host_mod(u'replica.thunderbird.test', ipasshpubkey=(u'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDei9KKGoEeKN2j9pruRXDjVYEJx4YLTTsz3AOsMraYjitTXK0FEwNBrrCaNEdgunT6jK+DNA02JQWOLdYCWuQ4cVawyugNLsbDGfvhuq7sveNp++qyOzQKaR5SV/8TXAPszFnOkYdvwlBf+c7rc6Y4KQvLON1hPzoN50n5RhOtn02EcHxYfdAYmA2M0LgNwxPOn/z6b1SA7fQI2ZXo8Mtz/HUd0+3zKm4x0ERFRNuwR+7ItA7xejGLtDokzZnUZxa1MkHMPacr7bCHBKAjKScd4kfN44AnMHhCs2pEbBTby4X9QHEn+Bzbo12I4Yfb3HbIKNHiWNU+c9qco/AD/3+x', u'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAehjnntvxSfBOrS0GPdeHnIbOgvisGl2O3rssIQrKZ63QL+M6XAExnc+DdAKj8ss4bXNSY9BNiYhcRifTexFbE=', u'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN3LxAfiwKqDlnX0lbOrFdu8kLgc2W/nAnGsh0YeCE53'), updatedns=False, version=u'2.26'): SUCCESS
[Tue Sep 04 12:30:34.847173 2018] [:error] [pid 16134] ipa: INFO: [jsonserver_kerb] host/replica.thunderbird.test: env((u'version',)): SUCCESS
[Tue Sep 04 12:30:34.900410 2018] [:error] [pid 16136] ipa: INFO: [jsonserver_kerb] host/replica.thunderbird.test: env((u'fips_mode',)): SUCCESS
[Tue Sep 04 12:32:35.621899 2018] [:error] [pid 16135] ipa: INFO: [jsonserver_kerb] admin: ping/1(version=u'2.229'): SUCCESS
[Tue Sep 04 12:32:36.072457 2018] [:error] [pid 16137] ipa: INFO: [jsonserver_kerb] admin: server_conncheck(u'master.thunderbird.test', u'replica.thunderbird.test', version=u'2.162'): SUCCESS
[Tue Sep 04 12:34:13.013719 2018] [auth_gssapi:error] [pid 16139] [client 10.65.206.145:43180] NO AUTH DATA Client did not send any authentication headers, referer: https://master.thunderbird.test/ipa/xml
[Tue Sep 04 12:34:15.581088 2018] [:error] [pid 16134] ipa: INFO: [xmlserver] host/replica.thunderbird.test: cert_request(u'MIID4TCCAskCAQAwPjEZMBcGA1UEChMQVEhVTkRFUkJJUkQuVEVTVDEhMB8GA1UEAxMYcmVwbGljYS50aHVuZGVyYmlyZC50ZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7XDofzMN9wFgO9Ns7R14t4R8MU2chLUmE6mw9cj2Xfcux8Pg99nr1yq6kpwRb9NdKAUm7wOqscDvpN2caRo1JGn7G0dKLjUzzXcqzRGV09ny+I96FVonsDrKGx8kEDQVwduA7eppLuG8WETMd5aGT5sHcS7i+suR/C3cHvAuv9hEjY6+/nZ9xPmrtTmAt7Nsm0GXFF2AaR3T8Hw2DsZz4bNcblDVkJoBR1Zv0VYQQXCthJSh7mRwYsQhIwYDjvbF3m/rkHmFQ08tTv3SuHVEOn5KzByyn4ej45a7I0NZ/5YwatfxQFZYX8gFYG4sStj2MBxwQjIERhlb0dc86WW5SQIDAQABoIIBXDAlBgkqhkiG9w0BCRQxGB4WAFMAZQByAHYAZQByAC0AQwBlAHIAdDCCATEGCSqGSIb3DQEJDjGCASIwggEeMIG3BgNVHREBAQAEgawwgamCGHJlcGxpY2EudGh1bmRlcmJpcmQudGVzdKA+BgorBgEEAYI3FAIDoDAMLmxkYXAvcmVwbGljYS50aHVuZGVyYmlyZC50ZXN0QFRIVU5ERVJCSVJELlRFU1SgTQYGKwYBBQICoEMwQaASGxBUSFVOREVSQklSRC5URVNUoSswKaADAgEBoSIwIBsEbGRhcBsYcmVwbGljYS50aHVuZGVyYmlyZC50ZXN0MAwGA1UdEwEB/wQCMAAwIAYDVR0OAQEABBYEFNNEA1V+r62pHthfza15UI+6X8QYMDIGCSsGAQQBgjcUAgEBAAQiHiAAYwBhAEkAUABBAHMAZQByAHYAaQBjAGUAQwBlAHIAdDANBgkqhkiG9w0BAQsFAAOCAQEAai5em3DtmYhwtcYEqh4c2oS0K51NA/OWheHKbYoN/+2ZLDib/+qw4KV/pPpRYDfwh7uRPcPuzsP9tzi9INhAvN8qJryDtW6AXb2LriFShI45jeGmckcrX5PF87M3PGAZW2BL1QpCIWLxDkX7ezGia46X36OhZi2zOvP5GnKqkpU10Ouke4dk9UE5o86F3X2KyM1KJKAnJLt2Ynzs8gnul4HQIg121pS1YK/SNfElAHNREVN6xkYuRDfNEDDmVSsgFcxFp4kODS7XxWNf2il+69QeAgUVlmpfAvKWYZamJSn4Rg5AWt1Z5rgwtX9QpkprDupMvEftuwTEIpfQWa/3BQ==', profile_id=u'caIPAserviceCert', principal=u'ldap/replica.thunderbird.test', add=True, version=u'2.51'): SUCCESS
[Tue Sep 04 12:34:40.434400 2018] [auth_gssapi:error] [pid 16142] [client 10.65.206.145:43216] NO AUTH DATA Client did not send any authentication headers, referer: https://master.thunderbird.test/ipa/xml
[Tue Sep 04 12:34:41.249355 2018] [:error] [pid 16136] ipa: INFO: [xmlserver] host/replica.thunderbird.test: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UmUxWEWtGbuJ//+nbJ04kAb8M1NOSr2ig1dZG2Dtfb2Xw84qjathrhD/ksSM0ZKsbOIm2ztLDqcN6yPTpVWJvEoW5WrFEbJf7GnQUzKIS2NmR2f7XccI9zECZyZDA9WljeS0I2dUM+NJx3yuNYvPaVvYF+e+hg19oc1/YcyVNBRCc7MefoQJZxyfOQJPR9rusWnCxW3qrCSIjdltwgAhWIdJvW00GgnD1ue5qU2zDPB3PEMjP25gSArMnLtuJQ==', profile_id=u'caIPAserviceCert', principal=u'HTTP/replica.thunderbird.test', add=True, version=u'2.51'): SUCCESS


4. Logs on IPA replica
[Mon Sep 03 14:21:56.149355 2018] [auth_gssapi:error] [pid 16100] [client 10.65.206.145:48548] NO AUTH DATA Client did not send any authentication headers, referer: https://replica.thunderbird.test/ipa/xml
[Mon Sep 03 14:21:57.574717 2018] [:error] [pid 16094] ipa: INFO: [xmlserver] host/replica.thunderbird.test: cert_request(u'MIIDwTCCAqkCAQAwPjEZMBcGA1UECgwQVEhVTkRFUkJJUkQuVEVTVDEhMB8GA1UEAxMYcmVwbGljYS50aHVuZGVyYmlyZC50ZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6lu+xxxzCVW7Fmn49SaqRV7ZmLQyn9Q6tKereg/urtfyDjZ15iwdXfwBf+TLM3RjRTV1w19/kx8nx8uHtuhfPKo4MZ7h+PBYMTjvqCu8TaxSAiHnH7fsS6s6eZJQX+HjdB3otUuImJ/KQ9QuKeeGXXdPaoLgr3lI7HMqyHmsOtErBztQNPBBXTUHsE7KnWVi2k1xWDYDA0xS89EZuU4YCHdIz9/9rBk9V63ljA+y6IOpvw53HZJbSpTFjT2b6teZgSDtqV8n/cmSQ5skywh3xdILRyKqCmPnAEOHZw/pIkKoZhKKY4++cQqVXpPnbaC4KzURADEYGp79EbylNZDfUwIDAQABoIIBPDArBgkqhkiG9w0BCRQxHh4cADIAMAAxADgAMAA5ADAAMwAwADgANQAxADUANTCCAQsGCSqGSIb3DQEJDjGB/TCB+jCBkQYDVR0RAQEABIGGMIGDoDgGCisGAQQBgjcUAgOgKgwoa3JidGd0L1RIVU5ERVJCSVJELlRFU1RAVEhVTkRFUkJJUkQuVEVTVKBHBgYrBgEFAgKgPTA7oBIbEFRIVU5ERVJCSVJELlRFU1ShJTAjoAMCAQGhHDAaGwZrcmJ0Z3QbEFRIVU5ERVJCSVJELlRFU1QwDAYDVR0TAQH/BAIwADAgBgNVHQ4BAQAEFgQUX1EclKljZpA4Wd6a3szl6evRLP4wNAYJKwYBBAGCNxQCAQEABCQeIgBLAEQAQwBzAF8AUABLAEkATgBJAFQAXwBDAGUAcgB0AHMwDQYJKoZIhvcNAQELBQADggEBAAgQYUDfJCwVDiXpm1axvIWMsrGopZkD0SNJEdfRgEnemWJGpPnbHU7GoD3yhDxMgF65aRwY9phDuQlAJmh58nHiEEz0ZSKf+xFzWoLwgCgMQuTYSKLhlTkwfaEsVwGVmJsRKIpLNRvAvk8F+irGrSkRnaqRt/U7AycJZ29Xoh1NHKrylqoxYmO8ZdlAgfiWtjTd2QC+iqlJKYP/+dPHkJkBWMMpbXtRnMxXDIeq/obK6hpoqYEtHukCxrKZx8lnDyvdC6VwkbLtAcPjn6QMaJGxnLHbB0yGPSYhfrUfmZ/EjlKBDwuzHgXfPTjqCtePzMGAqpJJs1k83jd4w8KPc0Y=', profile_id=u'KDCs_PKINIT_Certs', principal=u'krbtgt/THUNDERBIRD.TEST', add=True, version=u'2.51'): ACIError

5. For ACIError mentioned in 4 above, bz1623486 has already been logged.

Hence marking the bug as VERIFIED.

Comment 6 errata-xmlrpc 2018-10-30 11:00:22 UTC
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, 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/RHBA-2018:3187


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