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

Kubetest2 - terraform support #10697

Merged
merged 2 commits into from
Feb 16, 2021
Merged

Conversation

rifelpet
Copy link
Member

This adds support for --target terraform and applying/destroying the cluster using terraform.

The specified terraform version is downloaded and unzipped each run, ideally we could cache this or use tfenv or something.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 30, 2021
@rifelpet
Copy link
Member Author

/test pull-kops-e2e-kubernetes-aws-kubetest2

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rifelpet

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 30, 2021
@rifelpet
Copy link
Member Author

/test pull-kops-e2e-kubernetes-aws-kubetest2

@rifelpet
Copy link
Member Author

rifelpet commented Feb 1, 2021

/test pull-kops-e2e-kubernetes-aws-kubetest2

1 similar comment
@rifelpet
Copy link
Member Author

rifelpet commented Feb 1, 2021

/test pull-kops-e2e-kubernetes-aws-kubetest2

@rifelpet
Copy link
Member Author

/test pull-kops-e2e-kubernetes-aws-kubetest2

@hakman
Copy link
Member

hakman commented Feb 16, 2021

/retest

@rifelpet
Copy link
Member Author

I backed out the makefile update so this should be ready for review now.

I noticed an interesting behavior that I'm hoping is the source of some of our test job problems...

When I was porting over the kops commands from kubetest1 to kubetest2 I copied the validate cluster command as-is and didn't copy the node readiness loop that ensures nodes arent flapping their readiness:

https://github.com/kubernetes/test-infra/blob/dee9d4bff3ffb5130c88dd3c122ec3c3e4f95272/kubetest/kops.go#L497-L500

We built that logic into validate cluster but didnt update kubetest1 to use it instead of its own node readiness check.

The k8s e2e test framework has a --num-nodes flag that is used in some tests and defaults to the number of Ready and Schedulable nodes fetched at startup.

Kops not waiting for nodes to stop flapping their readiness caused the e2e framework to incorrectly detect the number of nodes, and some tests were being skipped as a result. See Line 7335 here. I'm hoping the --count 10 on kops validate cluster will fix this and hopefully some other test related issues.

@hakman
Copy link
Member

hakman commented Feb 16, 2021

/lgtm

1 similar comment
@hakman
Copy link
Member

hakman commented Feb 16, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 16, 2021
@k8s-ci-robot k8s-ci-robot merged commit 1bcfc66 into kubernetes:master Feb 16, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.20 milestone Feb 16, 2021
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. 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. 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.

4 participants