k3s/test/e2e/storage
Kubernetes Submit Queue bc2f049067 Merge pull request #50332 from ianchakeres/local-e2e-mntpnt
Automatic merge from submit-queue (batch tested with PRs 50670, 50332)

e2e test for local storage mount point

**What this PR does / why we need it**:

We discovered that kubernetes can treat local directories and actual mountpoints differently. For example, https://github.com/kubernetes/kubernetes/issues/48331. The current local storage e2e tests use directories.

This PR introduces a test that creates a tmpfs and mounts it, and runs one of the local storage e2e tests.

**Which issue this PR fixes**: fixes https://github.com/kubernetes/kubernetes/issues/49126

**Special notes for your reviewer**:

I cherrypicked PR https://github.com/kubernetes/kubernetes/pull/50177, since local storage e2e tests are broken in master on 2017-08-08 due to "no such host" error. This PR replaces NodeExec with SSH commands.

You can run the tests using the following commands:
``` 
$ NUM_NODES=1 KUBE_FEATURE_GATES="PersistentLocalVolumes=true" go run hack/e2e.go -- -v --up
$ go run hack/e2e.go -- -v --test --test_args="--ginkgo.focus=\[Feature:LocalPersistentVolumes\]"
```

Here are the summary of results from my test run:
```
Ran 9 of 651 Specs in 387.905 seconds
SUCCESS! -- 9 Passed | 0 Failed | 0 Pending | 642 Skipped PASS

Ginkgo ran 1 suite in 6m29.369318483s
Test Suite Passed
2017/08/08 11:54:01 util.go:133: Step './hack/ginkgo-e2e.sh --ginkgo.focus=\[Feature:LocalPersistentVolumes\]' finished in 6m32.077462612s
```

**Release note**:
`NONE`
2017-08-16 01:38:08 -07:00
..
BUILD Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
OWNERS Update OWNERS to correct members' handles. 2017-08-04 15:00:15 +08:00
empty_dir_wrapper.go volume i/o tests for storage plugins 2017-07-18 17:59:15 -07:00
flexvolume.go Add basic install and mount flexvolumes e2e tests 2017-08-04 10:39:24 -04:00
framework.go Make storage e2e tests start with [sig-storage] instead of [k8s.io]. 2017-07-12 11:11:16 -07:00
pd.go Add project to pd delete node gcloud command 2017-07-20 15:54:37 -07:00
persistent_volumes-disruptive.go volume i/o tests for storage plugins 2017-07-18 17:59:15 -07:00
persistent_volumes-gce.go Cleanup storage e2e test names by removing redundant [sig-storage] tags and [Volume] tags 2017-07-20 11:11:40 -07:00
persistent_volumes-local.go Added logic and tests for creating and using a tmpfs volume in localPV e2e tests 2017-08-14 20:30:32 -07:00
persistent_volumes-vsphere.go e2e test changes 2017-08-02 08:06:09 -07:00
persistent_volumes.go Cleanup storage e2e test names by removing redundant [sig-storage] tags and [Volume] tags 2017-07-20 11:11:40 -07:00
pv_reclaimpolicy.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
pvc_label_selector.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
volume_io.go update clientset.Core() to clientset.CoreV1() in test 2017-08-14 16:53:55 +08:00
volume_provisioning.go Add rbac.authorization.k8s.io/v1 2017-08-09 17:04:54 -04:00
volumes.go update clientset.Core() to clientset.CoreV1() in test 2017-08-14 16:53:55 +08:00
vsphere_utils.go e2e test changes 2017-08-02 08:06:09 -07:00
vsphere_volume_diskformat.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
vsphere_volume_fstype.go e2e test changes 2017-08-02 08:06:09 -07:00
vsphere_volume_ops_storm.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
vsphere_volume_placement.go e2e test changes 2017-08-02 08:06:09 -07:00
vsphere_volume_vsan_policy.go e2e test changes 2017-08-02 08:06:09 -07:00