OCPBUGS-84513: set terminationMessagePolicy on update-payload pods#1417
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 |
|
/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 |
|
/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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jrangelramos, wking 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 |
|
/verified |
|
@jrangelramos: The 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. |
|
/verified by Jefferson Ramos |
|
@jrangelramos: This PR has been marked as verified by 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. |
|
@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. |
|
@jrangelramos: Jira Issue OCPBUGS-84513: Some pull requests linked via external trackers have merged: The following pull request, linked via external tracker, has not merged:
All associated pull requests must be merged or unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-84513 has not been moved to the MODIFIED state. This PR is marked as verified. If the remaining PRs listed above are marked as verified before merging, the issue will automatically be moved to VERIFIED after all of the changes from the PRs are available in an accepted nightly payload. 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. |
|
@jrangelramos: new pull request could not be created: failed to create pull request against openshift/cluster-version-operator#release-4.23 from head openshift-cherrypick-robot:cherry-pick-1417-to-release-4.23: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"No commits between openshift:release-4.23 and openshift-cherrypick-robot:cherry-pick-1417-to-release-4.23"}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request","status":"422"} 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. |
|
@jrangelramos: new pull request could not be created: failed to create pull request against openshift/cluster-version-operator#release-5.0 from head openshift-cherrypick-robot:cherry-pick-1417-to-release-5.0: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"No commits between openshift:release-5.0 and openshift-cherrypick-robot:cherry-pick-1417-to-release-5.0"}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request","status":"422"} 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. |
|
@jrangelramos: new pull request could not be created: failed to create pull request against openshift/cluster-version-operator#release-5.1 from head openshift-cherrypick-robot:cherry-pick-1417-to-release-5.1: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"No commits between openshift:release-5.1 and openshift-cherrypick-robot:cherry-pick-1417-to-release-5.1"}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request","status":"422"} 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