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
[Test Fix] Fake docker client can remove containers which have not been started #56821
[Test Fix] Fake docker client can remove containers which have not been started #56821
Conversation
/retest |
1 similar comment
/retest |
[MILESTONENOTIFIER] Milestone Pull Request Needs Attention @Random-Liu @dashpole @dchen1107 @shyamjvs @kubernetes/sig-node-misc Action required: During code freeze, pull requests in the milestone should be in progress. Note: This pull request is marked as Example update:
Pull Request Labels
|
Approved for milestone as this is an important fix for failing kubemark tests. /lgtm |
@krzyzacy The kubemark presubmit failure here seems to be due to your D-in-D migration?
|
/retest (hoping it's fixed with kubernetes/test-infra#5807) |
obviously missed retest here, it should pass now. |
Hmm.. it seems like the pull job is already using the new image. Do you know what happened? |
Ok.. let's see. |
yeah, I fixed this in kubernetes/test-infra#5802 |
/approve @dashpole - thanks for the fix! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dashpole, shyamjvs, wojtek-t Associated issue: 53327 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
/retest |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
During kubemark-5000 scalability tests, which use the fake docker client, we encountered a bug where containers where the pod was deleted before the container was started could not be deleted.
This is because we only remove pods from the
ExitedContainers
list. Containers are only added to this when they have been created, started, and then stopped. However, containers that have only been created, but not started cannot be deleted. This PR fixes this issue by allowing containers withState.Running=false
to be deleted.Which issue(s) this PR fixes:
Ref #53327
Release note:
/sig node
/kind bug
/priority critical-urgent
/assign @Random-Liu @dchen1107 @shyamjvs