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 e2e tests that require node independent volume for the drivers that don't support node independent volumes #82678

Conversation

mucahitkurt
Copy link
Contributor

@mucahitkurt mucahitkurt commented Sep 12, 2019

What type of PR is this?
/kind cleanup
/sig storage

What this PR does / why we need it:
Skip e2e tests that run on multi node cluster and require node independent volume for the drivers that don't support node independent volumes, like hostpath.

Which issue(s) this PR fixes:
Fixes #82675

Special notes for your reviewer:
I added a new capability as CapNodeIndependentVolume and set this true all csi and in tree test drivers other than hostpath, local and emptydir.

Currently we need to make these tests off for only csi hostpath driver's tests, I'm open to a more simple solution.

cc @msau42

Does this PR introduce a user-facing change?:

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. sig/storage Categorizes an issue or PR as relevant to SIG Storage. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. area/test sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Sep 12, 2019
@mucahitkurt mucahitkurt changed the title Skip e2e tests that require node independent volume for the drivers that does not support node independent volumes Skip e2e tests that require node independent volume for the drivers that don't support node independent volumes Sep 12, 2019
CapControllerExpansion Capability = "controllerExpansion" // support volume expansion for controller
CapNodeExpansion Capability = "nodeExpansion" // support volume expansion for node
CapVolumeLimits Capability = "volumeLimits" // support volume limits (can be *very* slow)
CapNodeIndependentVolume Capability = "nodeIndependentVolume" // support node independent volume (unlike hostpath)
Copy link
Member

Choose a reason for hiding this comment

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

How about calling it "singleNodeVolume"? Then multi-node tests are enabled by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it would be better, I thought that kind of thing to not change all drivers but couldn't find a good name to feel it's ability not disability :)

…ndent volume for the drivers that does not support node independent volumes, like hostpath

Signed-off-by: Mucahit Kurt <mucahitkurt@gmail.com>
@mucahitkurt mucahitkurt force-pushed the skip-multi-node-vol-availability-tests-for-hostpath branch from b8a4b4f to f0aa13c Compare September 13, 2019 19:51
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 13, 2019
@msau42
Copy link
Member

msau42 commented Sep 13, 2019

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 13, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: msau42, mucahitkurt

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 Sep 13, 2019
@k8s-ci-robot k8s-ci-robot merged commit c2a3f0b into kubernetes:master Sep 13, 2019
@k8s-ci-robot k8s-ci-robot added this to the v1.17 milestone Sep 13, 2019
@mucahitkurt mucahitkurt deleted the skip-multi-node-vol-availability-tests-for-hostpath branch September 13, 2019 21:59
@@ -155,7 +155,8 @@ const (
CapRWX Capability = "RWX" // support ReadWriteMany access modes
CapControllerExpansion Capability = "controllerExpansion" // support volume expansion for controller
CapNodeExpansion Capability = "nodeExpansion" // support volume expansion for node
CapVolumeLimits = "volumeLimits" // support volume limits (can be *very* slow)
CapVolumeLimits Capability = "volumeLimits" // support volume limits (can be *very* slow)
CapSingleNodeVolume Capability = "singleNodeVolume" // support volume that can run on single node (like hostpath)
Copy link
Contributor

Choose a reason for hiding this comment

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

That can only run on a single node, right?

A network-attached storage system also provides volumes that "can run on a single node"...

Copy link
Member

Choose a reason for hiding this comment

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

Correct

k8s-ci-robot added a commit that referenced this pull request Dec 6, 2019
…-upstream-release-1.15

Automated cherry pick of #82678: skip e2e tests that run on multi node cluster and require
k8s-ci-robot added a commit that referenced this pull request Dec 6, 2019
…-upstream-release-1.16

Automated cherry pick of #82678: skip e2e tests that run on multi node cluster and require
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/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. release-note-none Denotes a PR that doesn't merit a release note. sig/storage Categorizes an issue or PR as relevant to SIG Storage. 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
4 participants