NO-ISSUE: Limit liveness probe to loopback interface to avoid short write errors - #766
NO-ISSUE: Limit liveness probe to loopback interface to avoid short write errors#766mkowalski wants to merge 1 commit into
Conversation
nmstate#1486) The handler liveness probe runs `nmstatectl show` which outputs the full network state (~83KB). Kubernetes exec probes have a 10KB output limit, causing "short write" errors in kubelet logs. Restrict the probe to query only the loopback interface (`nmstatectl show lo`) which produces ~685 bytes of output. The loopback interface is always present on every node, making it a reliable liveness check target. Fixes: nmstate#1476 Signed-off-by: nmstate-ai <275024212+nmstate-ai@users.noreply.github.com> Co-authored-by: nmstate-ai <275024212+nmstate-ai@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> (cherry picked from commit 1f02e25) Signed-off-by: Mat Kowalski <mko@redhat.com>
|
@mkowalski: This pull request references Jira Issue OCPBUGS-98474, 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. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mkowalski The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@mkowalski: This pull request explicitly references no jira issue. 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. |
|
@mkowalski: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Manual backport of upstream nmstate#1486 (openshift/kubernetes-nmstate commit 1f02e25) to release-4.22.
The handler liveness probe runs
nmstatectl showwhich outputs the full network state (~83KB). Kubernetes exec probes have a 10KB output limit, causing "short write" errors in kubelet logs. Restrict the probe to query only the loopback interface (nmstatectl show lo).Clean cherry-pick, no conflicts. Verified locally:
go veton touched packages and probe-focused unit tests incontrollers/operatorpass on this branch.Fixes: https://issues.redhat.com/browse/OCPBUGS-98474
Assisted-By: Claude Fable 5