OCPBUGS-81471: lower certificate parse failure log to trace level - #1077
OCPBUGS-81471: lower certificate parse failure log to trace level#1077savio87 wants to merge 1 commit into
Conversation
|
@savio87: This pull request references Jira Issue OCPBUGS-81471, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThe graph builder now logs certificate-processing failures at ChangesCertificate logging
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @savio87. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: savio87 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi maintainers, this is my first contribution to this repo. Could someone please set the target version on the linked Jira issue (OCPBUGS-81471) and run /ok-to-test? Thanks! |
Summary
Lowers the log level for unparseable certificate files from
debug!totrace!in the graph_builder'sget_certs_from_dirfunction.Problem
In air-gapped environments, the graph_builder logs a distracting message every time it encounters
ca-bundle.trust.crt:This file contains
TRUSTED CERTIFICATEPEM blocks (with extra trust metadata), not standardCERTIFICATEblocks, soreqwest::Certificate::from_pem()rejects them. The message is harmless but confusing — operators investigating real issues may mistake it for a problem.Fix
Change the log macro from
debug!totrace!, so the message only appears at the most verbose logging level. This keeps it available for deep troubleshooting while removing noise from normal debug output.Testing
The change is a single log-level adjustment with no behavioral impact on certificate loading.
Summary by CodeRabbit