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

e2e: allow unknown providers with a warning #70141

Merged
merged 1 commit into from Oct 25, 2018

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Oct 23, 2018

What type of PR is this?
/kind bug

What this PR does / why we need it:

#68483 unintentionally broke several use cases by tightening the validation of the --provider parameter such that the e2e.test binary only accepts known providers.

Whether that really is the right behavior needs more discussion (and in hindsight it probably isn't). In the meantime we need to restore the previous behavior quickly to get all CI jobs working again.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Refs #70058

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

- Support for passing unknown provider names to the E2E test binaries is going to be deprecated. Use `--provider=skeleton` (no ssh access) or `--provider=local` (local cluster with ssh) instead.

/sig testing
/cc @BenTheElder
/cc @neolit123

@k8s-ci-robot k8s-ci-robot added the release-note-none Denotes a PR that doesn't merit a release note. label Oct 23, 2018
@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. sig/testing Categorizes an issue or PR as relevant to SIG Testing. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 23, 2018
Copy link
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

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

LGTM thanks.
maybe @timothysc has historic knowledge of why we allowed unknown providers pre-refactor.
/assign @timothysc

@neolit123
Copy link
Member

x reference this PR which is on hold with the alternative solution:
kubernetes/test-infra#9897

this tackles the problem in kubetest.

if this current PR is merged we need to cancel the above PR..
also we need to revert this test-infra PR:
kubernetes/test-infra#9884

/this-is-fine

@k8s-ci-robot
Copy link
Contributor

@neolit123: dog image

In response to this:

x reference this PR which is on hold with the alternative solution:
kubernetes/test-infra#9897

this tackles the problem in kubetest.

if this current PR is merged we need to cancel the above PR..
also we need to revert this test-infra PR:
kubernetes/test-infra#9884

/this-is-fine

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.

@timothysc
Copy link
Member

So your change exposed s bunch of brittleness in the tests, this is kind of a band-aide, but do we still need it? Are the other tests fixed?

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 24, 2018
@pohly
Copy link
Contributor Author

pohly commented Oct 24, 2018

@timothysc At the moment this band-aid is still needed. I prefer to have it in 1.13 with a deprecation announcement, then in 1.14 remove it (and enhance the error handling - Failf produces rather ugly output). I have updated this PR's release note accordingly, in case that it gets merged.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Oct 24, 2018
@timothysc
Copy link
Member

@pohly please log an issue and add a // TODO comment to the top of the conversion referencing the issue(s), and I'll get this unblocked.

@BenTheElder
Copy link
Member

Discussed at the kubeadm office hours, one upshot to this is that removing providers from core should be slightly easier since they just get promoted to no-op with a warning.

We're also fixing tests to avoid this warning.

The E2E refactoring tightened the sanity checking of the --provider
parameter such that it only allowed known providers. That seemed to
make sense because it catches typos, but it turned out that various
callers depended on the "accept arbitrary provider value" behavior,
therefore it gets restored.
@pohly
Copy link
Contributor Author

pohly commented Oct 24, 2018

@timothysc I've file an issue and added a TODO in the code - I hope I understood correctly where you wanted that.

Copy link
Member

@timothysc timothysc left a comment

Choose a reason for hiding this comment

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

/approve
/hold cancel

@BenTheElder for LGTM b/c he knows the deets of how it's currently failing.

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 24, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pohly, timothysc

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 24, 2018
Copy link
Member

@BenTheElder BenTheElder left a comment

Choose a reason for hiding this comment

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

/lgtm
thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 24, 2018
@k8s-ci-robot k8s-ci-robot merged commit 432e8d4 into kubernetes:master Oct 25, 2018
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. kind/bug Categorizes issue or PR as related to a bug. 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. sig/testing Categorizes an issue or PR as relevant to SIG Testing. 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.

None yet

5 participants