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 not ready nodes in networking test #9676

Merged

Conversation

marekbiskup
Copy link
Contributor

fixes #9345

@dchen1107
Copy link
Member

LGTM

@@ -1144,6 +1144,21 @@ func waitForNodeToBeNotReady(c *client.Client, name string, timeout time.Duratio
return waitForNodeToBe(c, name, false, timeout)
}

func isNodeReadySetAsExpected(node *api.Node, wantReady bool) bool {
Copy link
Member

Choose a reason for hiding this comment

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

suggest just "isNodeReady" and omit the wantReady parameter. YAGNI

Copy link
Member

Choose a reason for hiding this comment

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

nvm I see it's used... sigh

@marekbiskup marekbiskup force-pushed the skipNotReadyNodesInNetworkTest branch from 9d09d65 to d89e129 Compare June 12, 2015 07:48
@k8s-bot
Copy link

k8s-bot commented Jun 12, 2015

GCE e2e build/test failed for commit d89e129.

@marekbiskup marekbiskup assigned lavalamp and unassigned dchen1107 Jun 12, 2015
@marekbiskup
Copy link
Contributor Author

@quinton-hoole, Is Jenkins stable? Shall I take the results seriously?

@lavalamp
Copy link
Member

LGTM - I think the failures are not related to this PR.

@lavalamp lavalamp added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 12, 2015
@ghost
Copy link

ghost commented Jun 12, 2015

Agreed, LGTM

@satnam6502
Copy link
Contributor

Please can this be merged soon-ish since I am blocked on it for fixing the Elasticsearch logging test? Thanks.

ArtfulCoder added a commit that referenced this pull request Jun 12, 2015
@ArtfulCoder ArtfulCoder merged commit ef60540 into kubernetes:master Jun 12, 2015
@marekbiskup marekbiskup deleted the skipNotReadyNodesInNetworkTest branch June 15, 2015 17:08
@marekbiskup
Copy link
Contributor Author

I suppose that, previously, the test did no checks with one node, and now it is failing. That's the reason for @jayunit100's objections.

@lavalamp, you said this test cannot work with 1 node. Maybe I can create two pods on the same node, if there is only one? Will this test also be reasonable (I understand it will be limited).

@lavalamp
Copy link
Member

The whole point of this test is to verify that the network works between two pods on different machines. I can see making another version of the test that makes sure the network works on a single machine, but that would be a different test.

@jayunit100
Copy link
Member

Since when? This test generally was used to confirm that all nodes could contact one another over the service endpoint... Iirc that is still a valid test on a single node, and indeed, by breaking ip tables or other underlying services you can toggle the passing of the test on or off , making it a great test for 1node dev clusters.

@lavalamp
Copy link
Member

Since I wrote this test originally, I feel qualified to claim that the purpose of this test is to verify that packets correctly travel between nodes. :)

Please note that the test load reads the endpoints and tries to dial the other pods directly. https://github.com/GoogleCloudPlatform/kubernetes/blob/master/contrib/for-tests/network-tester/webserver.go#L218

The service is only used for discovery.

@lavalamp
Copy link
Member

I do see that there may be value in a version of this test that runs on a single node. But in our continuous e2e runs, for GCE, GKE, and other cloud providers--we absolutely need to be failing if we can't get packets between two nodes.

@jayunit100
Copy link
Member

touche` :) but indeed, it also contacts itself through the service endpoint. hence it may have been written for the purpose of 2 nodes, but its an awesome test even on a single node ! security, networking, and certificates are all tested by the single node networking test. You're baby is more useful than you originally thought ! :)

@lavalamp
Copy link
Member

Yes, it exercises a lot of useful stuff. I'm fine with, e.g., gating the two node requirement with a comparison to the cloud provider.

@jayunit100
Copy link
Member

ok awesome . that is a good way to do it. shall i bundle that in with #9052 ?

@marekbiskup
Copy link
Contributor Author

I created #10012 for the purpose of allowing the test to run on a (local) single node

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

e2e networking test schedule a pod to a NotReady node
8 participants