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

Skip multi-zone e2e tests unless provider is GCE, GKE or AWS #27871

Merged
merged 1 commit into from
Jun 28, 2016
Merged

Skip multi-zone e2e tests unless provider is GCE, GKE or AWS #27871

merged 1 commit into from
Jun 28, 2016

Conversation

lukaszo
Copy link
Contributor

@lukaszo lukaszo commented Jun 22, 2016

No need to fail the tests. If label is not present then it means that node is not in any zone.
Related issue: #27372

@lukaszo
Copy link
Contributor Author

lukaszo commented Jun 22, 2016

cc @quinton-hoole

@k8s-bot
Copy link

k8s-bot commented Jun 22, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

Otherwise, if this message is too spammy, please complain to ixdy.

3 similar comments
@k8s-bot
Copy link

k8s-bot commented Jun 22, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

Otherwise, if this message is too spammy, please complain to ixdy.

@k8s-bot
Copy link

k8s-bot commented Jun 22, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

Otherwise, if this message is too spammy, please complain to ixdy.

@k8s-bot
Copy link

k8s-bot commented Jun 22, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

Otherwise, if this message is too spammy, please complain to ixdy.

@k8s-github-robot k8s-github-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. release-note-label-needed labels Jun 22, 2016
@ghost
Copy link

ghost commented Jun 22, 2016

@lukaszo I'm not sure that this is such a good idea. If, during this step of the test, we fail to detect one of the zones, and then later we spread pods across that zone, the test will fail for mysterious reasons. Let me think about this a bit.

Could you explain to me in a bit more detail what you're trying to achieve with this change (other than silently masking a failure, which is generally a bad thing).

@lukaszo
Copy link
Contributor Author

lukaszo commented Jun 22, 2016

@quinton-hoole I'm running e2e tests locally using export KUBERNETES_PROVIDER=vagrant and cluster/kube-up.sh to start a cluster. Ubernetes Lite tests are failing because my nodes do not have a failure-domain.beta.kubernetes.io/zone label.
This label is added in kubelet by cloud provider. In my case there is no provider and label is not added.

In my patch before continue I may log the error message. What do you think?

@spxtr spxtr assigned ghost and unassigned spxtr Jun 23, 2016
@ghost
Copy link

ghost commented Jun 23, 2016

@lukaszo These tests are intended to be completely skipped if you have less than 2 zones in your cluster, or if you're not on GKE, GCE or AWS:

        framework.SkipUnlessAtLeast(zoneCount, 2, "Zone count is %d, only run for multi-zone clusters, skipping test")              framework.SkipUnlessAtLeast(zoneCount, 2, "Zone count is %d, only run for multi-zone clusters, skipping test")
        framework.SkipUnlessProviderIs("gce", "gke", "aws")

I think that you should be able to fix your problem by simply changing the order of the above two lines.

I think that's the best fix.

An alternative would be to make sure that 'getZoneCount()' returns 1 if no labels can be found.

If you send me a good PR for either of the above, I'll approve it.

When testing on local cluster for example using vagrant the Uberntes tests should be skipped.
@lukaszo
Copy link
Contributor Author

lukaszo commented Jun 23, 2016

@quinton-hoole I've chosen the first option :)
it has to be before getZoneCount which is failing

@ghost ghost changed the title Ignore nodes which have no zone label Skip multi-zone e2e tests unless provider is GCE, GKE or AWS Jun 23, 2016
@ghost ghost added release-note Denotes a PR that will be considered when it comes time to generate release notes. lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed release-note-label-needed labels Jun 23, 2016
@k8s-bot
Copy link

k8s-bot commented Jun 23, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

Otherwise, if this message is too spammy, please complain to ixdy.

@ghost
Copy link

ghost commented Jun 23, 2016

ok to test

@k8s-bot
Copy link

k8s-bot commented Jun 24, 2016

GCE e2e build/test passed for commit 58062a2.

@k8s-bot
Copy link

k8s-bot commented Jun 26, 2016

GCE e2e build/test passed for commit 58062a2.

@fejta
Copy link
Contributor

fejta commented Jun 27, 2016

@k8s-bot unit test this issue: #28076

1 similar comment
@fejta
Copy link
Contributor

fejta commented Jun 27, 2016

@k8s-bot unit test this issue: #28076

@lukaszo
Copy link
Contributor Author

lukaszo commented Jun 27, 2016

@fejta can you restart GKE e2e tests? Looks like a random failure: AccessDeniedException: 403 Forbidden

@fejta
Copy link
Contributor

fejta commented Jun 27, 2016

@spxtr @ixdy

The GKE X should be ignored.

@spxtr
Copy link
Contributor

spxtr commented Jun 27, 2016

Sorry, please ignore the Jenkins GKE e2e test, note that Jenkins GKE smoke e2e below it passes. The submit queue won't check it before merging.

@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 28, 2016

GCE e2e build/test passed for commit 58062a2.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit a59ec45 into kubernetes:master Jun 28, 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. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants