• Kubernetes Submit Queue's avatar
    Merge pull request #65117 from mkimuram/issue/56803v2 · 9f3e2010
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 64593, 65117, 65629, 65827, 65686). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Add e2e tests for volumeMode of persistent volume
    
    This set of e2e tests is to confirm that persistent volume works well for all volumeModes.
    Coverage of the tests are shown in the figure of [Test cases], below.
    
    Once implementation policy is confirmed to be good, we can add plugins and test cases to this.
    [Test cases]
    ```
     #   plugin      volumeMode    Test case                                                Expectation
    --- ---------- -------------- ------------------------------------------------------ ------------
     1    iSCSI      Block         (a) Create Pod with PV and confirm Read/Write to PV    Success
     2    iSCSI      Block         (b) Create Pod and restart kubelet and confirm PV      Success
     3    iSCSI      Block         (c) Create Pod and restart kubelet while deleting PV   Success
     4    iSCSI      FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
     5    iSCSI      FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
     6    iSCSI      FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
     7    RBD        Block         (a) Create Pod with PV and confirm Read/Write to PV    Success
     8    RBD        Block         (b) Create Pod and restart kubelet and confirm PV      Success
     9    RBD        Block         (c) Create Pod and restart kubelet while deleting PV   Success
    10    RBD        FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
    11    RBD        FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
    12    RBD        FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
    13    CephFS     Block         (a) Create Pod with PV and confirm Read/Write to PV    Fail
    14    CephFS     FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
    15    CephFS     FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
    16    CephFS     FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
    17    NFS        Block         (a) Create Pod with PV and confirm Read/Write to PV    Fail
    18    NFS        FileSystem    (a) Create Pod with PV and confirm Read/Write to PV    Success
    19    NFS        FileSystem    (b) Create Pod and restart kubelet and confirm PV      Success
    20    NFS        FileSystem    (c) Create Pod and restart kubelet while deleting PV   Success
    ```
    
    
    
    
    **What this PR does / why we need it**:
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #56803
    
    **Special notes for your reviewer**:
    /sig storage
    @gnufied  @rootfs @jsafrane @jeffvance 
    
    This PR is intend to reflect the comments for the below PR.
    https://github.com/kubernetes/kubernetes/pull/56804
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    9f3e2010
Name
Last commit
Last update
.github Loading commit data...
Godeps Loading commit data...
api Loading commit data...
build Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
docs Loading commit data...
hack Loading commit data...
logo Loading commit data...
pkg Loading commit data...
plugin Loading commit data...
staging Loading commit data...
test Loading commit data...
third_party Loading commit data...
translations Loading commit data...
vendor Loading commit data...
.bazelrc Loading commit data...
.generated_files Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.kazelcfg.json Loading commit data...
BUILD.bazel Loading commit data...
CHANGELOG-1.10.md Loading commit data...
CHANGELOG-1.11.md Loading commit data...
CHANGELOG-1.2.md Loading commit data...
CHANGELOG-1.3.md Loading commit data...
CHANGELOG-1.4.md Loading commit data...
CHANGELOG-1.5.md Loading commit data...
CHANGELOG-1.6.md Loading commit data...
CHANGELOG-1.7.md Loading commit data...
CHANGELOG-1.8.md Loading commit data...
CHANGELOG-1.9.md Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
Makefile.generated_files Loading commit data...
OWNERS Loading commit data...
OWNERS_ALIASES Loading commit data...
README.md Loading commit data...
SECURITY_CONTACTS Loading commit data...
SUPPORT.md Loading commit data...
WORKSPACE Loading commit data...
code-of-conduct.md Loading commit data...
labels.yaml Loading commit data...