New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated cherry pick of #117586: Add DisruptionTarget condition when preempting for critical #118221
Automated cherry pick of #117586: Add DisruptionTarget condition when preempting for critical #118221
Conversation
/assign @dchen1107 |
Note: here I had to resolve conflicts as Context wasn't passed to ginkgo test functions in 1.26. Thus, I pass the TODO context here: https://github.com/kubernetes/kubernetes/pull/118221/files#diff-94cfb00d75a10103bd0a3476b3db35446dbde4c4050913210445023abad3ae38R124. This is an analogous to the other pre-existing test in the file. |
/test pull-kubernetes-e2e-kind-ipv6 |
/assign @bobbypage |
/kind bug |
/test pull-kubernetes-node-kubelet-serial-pod-disruption-conditions |
/lgtm cancel new tests are failing. Trying the test again, but it passed on 1.27 meaning that it may be a real issue /test pull-kubernetes-node-kubelet-serial-pod-disruption-conditions |
re-run also failed. @mimowo can you please take a look? |
Manually modified the commit to expect Failed phase instead of Succeeded. This is expected in 1.26 as the code in preemption.go sets it to Failed. In 1.27 the phase is determined by `getPhase` kubelet_pods.go based on the completed containers.
5d3f7fe
to
b935de6
Compare
/pull-kubernetes-node-kubelet-serial-pod-disruption-conditions |
/test pull-kubernetes-node-kubelet-serial-pod-disruption-conditions |
@mimowo: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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/test-infra repository. I understand the commands that are listed here. |
@SergeyKanzhelev thanks for testing, after setting the expected phase to Failed in the commit the test passed. The test was failing as the phase expected in this test is Succeeded (on master). This is after #115331, which determines the phase based on the status of the container exit codes ( kubernetes/pkg/kubelet/kubelet_pods.go Line 1473 in 11067ce
These phase changes don't matter for adding of the condition so I think it is safe to continue with cherry-pick. That being said, we have missed this scenario when reviewing the impacted scenarios (see release notes in #115331). Thus, I open an issue to discuss if the setting of phase is correct and clean up the code if it is: #118310 |
/skip (new tests are passing after the manual phase adjustment in https://github.com/kubernetes/kubernetes/compare/5d3f7feb709357f45adf8b890c13048911ec9fc3..b935de6df5447cbb749fb8d7e6dad0bcb01992a4) |
/lgtm |
LGTM label has been added. Git tree hash: ab21c8179a279d75d6df88f43a7369df1ec7fb92
|
/cc kubernetes/release-managers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dchen1107, mimowo, Verolop The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Cherry pick of #117586 on release-1.26.
#117586: Add DisruptionTarget condition when preempting for critical
For details on the cherry pick process, see the cherry pick requests page.