Skip to content

Ensures node becomes schedulable at the end of tests that delete nodes#48118

Merged
k8s-github-robot merged 1 commit intokubernetes:masterfrom
verult:FlakyDetachE2E
Jun 28, 2017
Merged

Ensures node becomes schedulable at the end of tests that delete nodes#48118
k8s-github-robot merged 1 commit intokubernetes:masterfrom
verult:FlakyDetachE2E

Conversation

@verult
Copy link
Copy Markdown
Contributor

@verult verult commented Jun 27, 2017

What this PR does / why we need it: Further fixes the flakiness of "Pod Disk should be able to detach from a node which was deleted". When a node becomes ready but not schedulable, it was not included in the final node count.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #48008

Special notes for your reviewer: Updated a similar test, "Pod Disk should be able to detach from a node whose api object was deleted", to use an "Expect" instead of a soft error because the test needs to guarantee that the environment is completely reset.

Release note:

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 27, 2017
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Hi @verult. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

Details

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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 27, 2017
@verult
Copy link
Copy Markdown
Contributor Author

verult commented Jun 27, 2017

/sig-storage
/assign @msau42
/cc @dchen1107
/release-note-none

@k8s-ci-robot k8s-ci-robot requested a review from dchen1107 June 27, 2017 01:50
@k8s-ci-robot k8s-ci-robot added the release-note-none Denotes a PR that doesn't merit a release note. label Jun 27, 2017
@k8s-github-robot k8s-github-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 27, 2017
podClient.Delete(host0Pod.Name, metav1.NewDeleteOptions(0))
detachAndDeletePDs(diskName, []types.NodeName{host0Name})
framework.WaitForNodeToBeReady(f.ClientSet, string(host0Name), nodeStatusTimeout)
framework.WaitForAllNodesSchedulable(f.ClientSet, nodeStatusTimeout)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this also wait for all nodes to be ready?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it does, but "all nodes" only include nodes that are known to kubelet, which may not include the deleted node. The previous line checks for that case.

@msau42
Copy link
Copy Markdown
Member

msau42 commented Jun 27, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 27, 2017
@dchen1107
Copy link
Copy Markdown
Member

/lgtm

@k8s-github-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dchen1107, msau42, verult

Associated issue: 48008

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 28, 2017
@dchen1107 dchen1107 added this to the v1.7 milestone Jun 28, 2017
@dchen1107 dchen1107 added cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. cherrypick-candidate labels Jun 28, 2017
@dchen1107
Copy link
Copy Markdown
Member

I approve this one for improving test itself. Thanks!

cc/ @kubernetes/kubernetes-release-managers

@dchen1107 dchen1107 removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 28, 2017
@k8s-github-robot
Copy link
Copy Markdown

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link
Copy Markdown

Automatic merge from submit-queue (batch tested with PRs 48118, 48159)

@k8s-github-robot k8s-github-robot merged commit 89383d2 into kubernetes:master Jun 28, 2017
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@verult: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-unit 78d111b link /test pull-kubernetes-unit
pull-kubernetes-e2e-gce-etcd3 78d111b link /test pull-kubernetes-e2e-gce-etcd3

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.

Details

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.

caesarxuchao added a commit that referenced this pull request Jun 29, 2017
@k8s-cherrypick-bot
Copy link
Copy Markdown

Commit found in the "release-1.7" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked.

@verult verult deleted the FlakyDetachE2E branch March 24, 2018 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

e2e flaky: [k8s.io] Pod Disks should be able to detach from a node which was deleted [Slow] [Disruptive] [Volume]

6 participants