• Kubernetes Submit Queue's avatar
    Merge pull request #50332 from ianchakeres/local-e2e-mntpnt · bc2f0490
    Kubernetes Submit Queue authored
    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`
    bc2f0490
Name
Last commit
Last update
..
apimachinery Loading commit data...
apps Loading commit data...
auth Loading commit data...
autoscaling Loading commit data...
chaosmonkey Loading commit data...
common Loading commit data...
framework Loading commit data...
generated Loading commit data...
instrumentation Loading commit data...
kubectl Loading commit data...
lifecycle Loading commit data...
manifest Loading commit data...
network Loading commit data...
node Loading commit data...
perftype Loading commit data...
scalability Loading commit data...
scheduling Loading commit data...
storage Loading commit data...
testing-manifests Loading commit data...
upgrades Loading commit data...
BUILD Loading commit data...
README.md Loading commit data...
dashboard.go Loading commit data...
e2e-example-config.json Loading commit data...
e2e.go Loading commit data...
e2e_test.go Loading commit data...
events.go Loading commit data...
example_cluster_dns.go Loading commit data...
examples.go Loading commit data...
generated_clientset.go Loading commit data...
gke_local_ssd.go Loading commit data...
gke_node_pools.go Loading commit data...
limit_range.go Loading commit data...
network_partition.go Loading commit data...
pod_gc.go Loading commit data...
podpreset.go Loading commit data...
pods.go Loading commit data...
pre_stop.go Loading commit data...
resource_quota.go Loading commit data...
ssh.go Loading commit data...
taints_test.go Loading commit data...
ubernetes_lite.go Loading commit data...