Repository navigation
OCPBUGS-123174: Count app container restarts when native sidecars are present - #17394
nikitapal-12 wants to merge 1 commit into
Conversation
… present Native sidecars never terminate, so podRestarts treated those pods as still initializing and hid CrashLoopBackOff restart counts. https: //redhat.atlassian.net/browse/OCPBUGS-123174 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Pipeline controller notification This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration. Use |
|
@nikitapal-12: This pull request references Jira Issue OCPBUGS-123174, 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: nikitapal-12 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 @nikitapal-12. 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. |
|
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 configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
Hi, @nikitapal-12. Thank you for the PR. The normal process is to open a fix against main, and then backport to each release branch. It looks like the fix hasn't been applied to newer versions yet, correct? We have a slash cherry-pick bot command that helps with the backports. I'd suggest retargeting the fix to 5.1 on main. |
|
Thanks @spadgett. I opened the fix against main: #17418 (OCPBUGS-132854, target 5.1.0). The Jira check on that PR is valid. After #17418 merges and QE verifies it, I will use |
|
@nikitapal-12: This pull request references Jira Issue OCPBUGS-123174. The bug has been updated to no longer refer to the pull request using the external bug tracker. All external bug links have been closed. The bug has been moved to the NEW state. 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. |
Analysis / Root cause:
podRestarts() treated a pod as still initializing when any init container had not exited 0. Native sidecars never terminate, so the Restarts column ignored CrashLoopBackOff counts on app containers. podPhase() was already updated for native sidecars in OCPBUGS-45843; podRestarts() was not.
Solution description:
Match kubectl printPod(): a native sidecar with started true is not initializing. After initialization, Restarts is app-container restarts plus restartable init (sidecar) restarts. Regular completed init containers stay excluded.
This pull request targets release-4.20 because OCPBUGS-123174 targets 4.20.z.
Screenshots / screen recording:
N/A. Numeric Restarts column only; no layout change.
Test setup:
On OCP 4.20, create a pod with a native sidecar (initContainers.restartPolicy Always) and an app container in CrashLoopBackOff. Compare Workloads -> Pods Restarts with oc get pods.
Test cases:
Covered by unit tests in frontend/tests/module/k8s/pods.spec.ts.
Browser conformance:
Additional info:
Jira: https://redhat.atlassian.net/browse/OCPBUGS-123174
Related:
Reported on OCP 4.20.34.
Reviewers and assignees: