-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Do not throw creation errors for containers that fail immediately after being started #23894
Do not throw creation errors for containers that fail immediately after being started #23894
Conversation
@dchen1107 The node e2e test that I added should validate this fix. If you think this is worth fixing in v1.2, kindly add the necessary labels. |
GCE e2e build/test passed for commit 2703b934caba019b52808ea5e896b64b85f32269. |
2703b93
to
502f438
Compare
Why do you include commit of adding an option to focus or skip tests in the node e2e makefile rule to this pr? |
GCE e2e build/test passed for commit 502f43884a68ff16955591e34d9c747326f9191f. |
502f438
to
7937d29
Compare
@dchen1107: The commit with make file changes has been reverted. |
7937d29
to
9590050
Compare
GCE e2e build/test passed for commit 7937d29a7c7a5f9f6c7dc15a63247f5dcf4c9fe7. |
GCE e2e build/test passed for commit 9590050823054dced293f0407597d774bb28a9f7. |
@vishh need to do the same kubernetes/pkg/util/procfs/procfs.go Line 52 in df1f164
Although I'm curious - why check the error type at all? Why not just call |
9590050
to
b1da4ec
Compare
@ncdc Good suggestion. Updated the code. |
GCE e2e build/test passed for commit b1da4ecf4a2887e230afa60a08e809e0f0bff505. |
err = fmt.Errorf("failed to apply oom-score-adj to pid %d (%v)", pid, err) | ||
continue | ||
} | ||
if _, err := f.Write([]byte(value)); err != nil { | ||
if syscallNotExists(err) { |
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.
Is it possible for the Open() to succeed but the Write to fail with a "file not found" error?
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.
Since this is proc fs I'm not sure what the semantics are. I can look it up.
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.
So a simple test on bash seems to be throwing ESRCH
. Good catch...
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.
Catchin ESRCH requires string parsing. Given that we will most likely retry if the write fails, which will trigger Open(..) subsequently, I don't think we need to worry about write errors.
There is still a chance that we might not have enough retries, but the likelihood is less and I'd avoid spending more brain power on this.
GCE e2e build/test passed for commit d4db40e. |
|
@ncdc |
Posted #24110 to fix the e2e flakiness. |
@k8s-bot test node e2e experimental |
GCE e2e build/test passed for commit d4db40e. |
@k8s-bot test this Tests are more than 48 hours old. Re-running tests. |
GCE e2e build/test failed for commit d4db40e. Please reference the list of currently known flakes when examining this failure. If you request a re-test, you must reference the issue describing the flake. |
e2e failed because GCE cluster failed to start:
@k8s-bot e2e test this github issue: #IGNORE |
GCE e2e build/test passed for commit d4db40e. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit d4db40e. |
Automatic merge from submit-queue |
@vishh Please create a cherry pick pull for this PR. |
On Tue, Apr 19, 2016 at 7:44 AM, Robert Bailey notifications@github.com
|
…upstream-release-1.2 Automated cherry pick of #23894 upstream release 1.2
…of-#23894-upstream-release-1.2 Automated cherry pick of kubernetes#23894 upstream release 1.2
…of-#23894-upstream-release-1.2 Automated cherry pick of kubernetes#23894 upstream release 1.2
Fixes (hopefully) #23607
cc @dchen1107