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

Register openstack provider for e2e test #74370

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

oomichi
Copy link
Member

@oomichi oomichi commented Feb 21, 2019

What type of PR is this?

/kind bug

What this PR does / why we need it:

Since the commit f3d79e1
openstack provider has been denied on e2e test runner.
However there are storage e2e tests which are related to
openstack. So this adds the registration of openstack
provider for e2e test.

Which issue(s) this PR fixes:

Fixes #74326

Special notes for your reviewer:

This change is tested on my local OpenStack environment.

Does this PR introduce a user-facing change?:


Since the commit f3d79e1
openstack provider has been denied on e2e test runner.
However there are storage e2e tests which are related to
openstack. So this adds the registration of openstack
provider for e2e test.
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Feb 21, 2019
@k8s-ci-robot k8s-ci-robot added sig/testing Categorizes an issue or PR as relevant to SIG Testing. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Feb 21, 2019
@oomichi
Copy link
Member Author

oomichi commented Feb 21, 2019

/sig openstack

@k8s-ci-robot k8s-ci-robot added the area/provider/openstack Issues or PRs related to openstack provider label Feb 21, 2019
@oomichi
Copy link
Member Author

oomichi commented Feb 21, 2019

/cc @dims
/cc @hogepodge

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.

thanks @oomichi , we did remove support for unknown providers in that PR.
/lgtm
/priority important-soon

@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Feb 21, 2019
@dims
Copy link
Member

dims commented Feb 21, 2019

/approve

thanks @oomichi

@dims
Copy link
Member

dims commented Feb 21, 2019

@oomichi please work with @mrhillsman and @kiwik to set up a e2e for storage in OpenLab (and report results to testgrid)

@oomichi
Copy link
Member Author

oomichi commented Feb 21, 2019

@dims OK, thanks for organizing us. @mrhillsman is helping me for understanding it.

@BenTheElder
Copy link
Member

why are we not just using skeleton or local?

)

func init() {
framework.RegisterProvider("openstack", newProvider)
Copy link
Member

Choose a reason for hiding this comment

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

this provider does nothing, this is the same as skeleton, why would we not just use skeleton?

Copy link
Member Author

Choose a reason for hiding this comment

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

@BenTheElder That is a nice point.
Some storage e2e tests contain cloud provider specific tests like

// OpenStack generic tests (works on all OpenStack deployments)

If using skeleton, we cannot operate these OpenStack specific tests.
That is a reason why I proposed this PR.

Copy link
Member

Choose a reason for hiding this comment

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

this hits the long-term planning problem of how to break out providers from the e2e testing framework too. for now i'd say add the nullprovider = openstack back.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that also is a nice point. I guess we might need to implement cloud-provider specific e2e tests on each cloud-provider repo in long-term.

@BenTheElder
Copy link
Member

I am -1 on this, unless we want to let everyone add their Null provider to the binary we should tell people to use skeleton.

@dims
Copy link
Member

dims commented Feb 21, 2019

good point @BenTheElder

@oomichi can you please confirm why we need "openstack" registered with a NullProvider?

/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 Feb 21, 2019
@neolit123
Copy link
Member

I am -1 on this, unless we want to let everyone add their Null provider to the binary we should tell people to use skeleton.

indeed.

However there are storage e2e tests which are related to
openstack. So this adds the registration of openstack
provider for e2e test.

just modify the test jobs to pass --provider=skeleton?

@oomichi
Copy link
Member Author

oomichi commented Feb 21, 2019

To avoid missing my comment, I am putting the same one here:

@BenTheElder That is a nice point.
Some storage e2e tests contain cloud provider specific tests like

// OpenStack generic tests (works on all OpenStack deployments)

If using skeleton, we cannot operate these OpenStack specific tests.
That is a reason why I proposed this PR.

@BenTheElder
Copy link
Member

I see thank you @oomichi that seems like a good reason for now. This will be interesting to figure out long term.

@oomichi
Copy link
Member Author

oomichi commented Feb 22, 2019

@BenTheElder Thank you for your reply.
I am guessing we would implement e2e test framework as a library and re-use it in different repos in long-term. This idea comes from #74352

@dims
Copy link
Member

dims commented Feb 22, 2019

/hold cancel

thanks @oomichi

@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 Feb 22, 2019
@spiffxp
Copy link
Member

spiffxp commented Feb 25, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, oomichi, spiffxp

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 Feb 25, 2019
@k8s-ci-robot k8s-ci-robot merged commit fb92681 into kubernetes:master Feb 25, 2019
@oomichi oomichi deleted the issue/74326 branch February 26, 2019 22:16
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. area/provider/openstack Issues or PRs related to openstack provider 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. 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. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot specify "openstack" as cloud-provider of e2e test
6 participants