Skip to content
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

Add two pd tests with default grace period #28181

Merged
merged 1 commit into from
Jun 29, 2016

Conversation

jingxu97
Copy link
Contributor

Add two tests in pd.go. They are same as the flaky test, but the pod deletion has default grace period

@@ -134,6 +135,66 @@ var _ = framework.KubeDescribe("Pod Disks", func() {
return
})

It("Same test as above, but remove pod with default grace period 30s [Slow]", func() {
Copy link
Contributor

@matchstick matchstick Jun 28, 2016

Choose a reason for hiding this comment

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

Can we make this name: "Should schedule a pod w/ a RW PD, gracefully remove it, then schedule it on another host [Slow]"
Can we also on line 78 rename the test to be: ""Should schedule a pod w/ a RW PD, ungracefully remove it, then schedule it on another host [Slow]"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@k8s-bot
Copy link

k8s-bot commented Jun 28, 2016

GCE e2e build/test passed for commit e9d5335d94f139a99a8180a33fd10389f064b9d5.

Add two tests in pd.go. They are same as the flaky test, but the pod deletion has default grace period
@matchstick matchstick added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 28, 2016
@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 28, 2016
@matchstick matchstick added 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. and removed release-note-label-needed labels Jun 28, 2016
@k8s-bot
Copy link

k8s-bot commented Jun 28, 2016

GCE e2e build/test passed for commit e94242e.

@jingxu97 jingxu97 added this to the v1.3 milestone Jun 28, 2016
@matchstick matchstick added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Jun 28, 2016
@matchstick matchstick removed this from the v1.3 milestone Jun 28, 2016
@matchstick
Copy link
Contributor

I added this to the 1.3 milestone as it is related to 1.3 but does not need to be cherry picked for 1.3. So I am removing the milestone addition now.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Jun 29, 2016

GCE e2e build/test passed for commit e94242e.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@@ -75,7 +75,7 @@ var _ = framework.KubeDescribe("Pod Disks", func() {
})

// Flaky-- Issue #27691
It("[Flaky] should schedule a pod w/ a RW PD, remove it, then schedule it on another host [Slow]", func() {
It("[Flaky] should schedule a pod w/ a RW PD, ungracefully remove it, then schedule it on another host [Slow]", func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess it's too late to comment on this pr, but I'm curious to know what you think. It seems that the defer below should be moved to after the call to podClient.Create(). If the Create() fails then the not-yet-created pod will be try to be deleted, and the not-yet-attached disks will try to be detached. This is probably very minor, or perhaps I'm missing something?

shyamjvs pushed a commit to shyamjvs/kubernetes that referenced this pull request Dec 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants