-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
Pod Ready++ cont #67406
Pod Ready++ cont #67406
Conversation
81ba8e9
to
9d0f725
Compare
Rebased |
/test pull-kubernetes-e2e-kops-aws |
test/e2e/common/pods.go
Outdated
By(fmt.Sprintf("patching pod status with condition %q to true", readinessGate1)) | ||
_, err := podClient.Patch(podName, types.StrategicMergePatchType, []byte(fmt.Sprintf(patchStatusFmt, readinessGate1, "True")), "status") | ||
Expect(err).NotTo(HaveOccurred()) | ||
time.Sleep(maxReadyStatusUpdateTolerance) |
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.
Instead of sleeping for a fix time, use Eventually
or something similar to retry with a timeout.
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.
Actually, you can just use the validatePodReadiness
you wrote here as well for the first check.
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.
I sleep for 10 seconds. Just to make sure that the status would not change after the reconcile loop takes place.
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.
Ah I see. I misread your intention. Consider this resolved.
test/e2e/common/pods.go
Outdated
buildBackOffDuration = time.Minute | ||
syncLoopFrequency = 10 * time.Second | ||
maxBackOffTolerance = time.Duration(1.3 * float64(kubelet.MaxContainerBackOff)) | ||
maxReadyStatusUpdateTolerance = 10 * time.Second |
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.
Make this 20s to lower test flake.
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.
I originally want to make this 5 seconds. I think kubelet's internal reconcile loop triggers every 10 seconds. I want the status update to be responsive.
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.
Ack. I still think this might be flaky given that the tests are run in parallel. If you want to test the latency, running a serial test would be better.
10s might be okay now, but please monitor the tests to see if it causes any flake. Actually, could you replace the NodeConformance
tag with [NodeFeature:]
and promote it later once it's consistently passing?
/assign thockin for approval |
@freehan: GitHub didn't allow me to assign the following users: for, approval. Note that only kubernetes members and repo collaborators can be assigned. In 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/test-infra repository. |
/lgtm |
New changes are detected. LGTM label has been removed. |
Rebased. Reapplying lgtm |
/sig node |
@tfogo pushed a PR |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: freehan, thockin, yujuhong 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 |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue (batch tested with PRs 67031, 67406). If you want to cherry-pick this change to another branch, please follow the instructions here. |
ref: https://github.com/kubernetes/community/blob/master/keps/sig-network/0007-pod-ready%2B%2B.md