OCPBUGS-84513: set terminationMessagePolicy on update-payload pods#1417
OCPBUGS-84513: set terminationMessagePolicy on update-payload pods#1417jrangelramos wants to merge 1 commit into
Conversation
The update-payload pods created by CVO to retrieve release images were missing terminationMessagePolicy=FallbackToLogsOnError on all containers, causing the monitor test [Monitor:termination-message-policy] to flake. Set the policy in setContainerDefaults() so all init containers and the main container inherit it. Fixes https://redhat.atlassian.net/browse/OCPBUGS-84513 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@jrangelramos: This pull request references Jira Issue OCPBUGS-84513, 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
WalkthroughThis change modifies the container factory used during payload retrieval in pkg/cvo/updatepayload.go to explicitly set TerminationMessagePolicy to FallbackToLogsOnError on generated containers, rather than relying on the Kubernetes default behavior. No public API changes are involved. ChangesPayload Pod Container Configuration
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 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jrangelramos 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 |
|
/jira refresh |
|
@jrangelramos: This pull request references Jira Issue OCPBUGS-84513, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
|
/test e2e-hypershift-conformance |
|
@jrangelramos: all tests passed! 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. |
|
/cherry-pick release-4.23 |
|
@jrangelramos: once the present PR merges, I will cherry-pick it on top of 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 kubernetes-sigs/prow repository. |
Summary
terminationMessagePolicy=FallbackToLogsOnErroron all containers in update-payload pods created by CVOsetContainerDefaults()inpkg/cvo/updatepayload.go, which covers all 4 init containers and the 1 main containerProblem
The update-payload pods dynamically created by CVO to retrieve release images were missing
terminationMessagePolicy=FallbackToLogsOnError, causing the monitor test[Monitor:termination-message-policy][sig-arch] all containers in ns/openshift-cluster-version must have terminationMessagePolicy=FallbackToLogsOnErrorto flake.Affected containers:
initContainers[cleanup]initContainers[make-temporary-directory]initContainers[copy-operator-manifests-to-temporary-directory]initContainers[copy-release-manifests-to-temporary-directory]containers[rename-to-final-location]Note: The CVO deployment manifest (
install/0000_00_cluster-version-operator_30_deployment.yaml) already had the policy set correctly — only the dynamically-created payload pods were missing it.Follow-up
After this merges, the exemption in
openshift/origin(monitortest.go L155) should be removed.Fixes https://redhat.atlassian.net/browse/OCPBUGS-84513
🤖 Generated with Claude Code
Summary by CodeRabbit