kubernetes/test/e2e_node
Kubernetes Submit Queue 0dad2d0803 Merge pull request #47983 from yguo0905/memcg
Automatic merge from submit-queue (batch tested with PRs 48092, 47894, 47983)

Enables memcg notification in cluster/node e2e tests

Ref: https://github.com/kubernetes/kubernetes/issues/42676

This PR sets Kubelet flag `--experimental-kernel-memcg-notification=true` when running cluster/node e2e tests on COS and Ubuntu images.

Tested:
```
e2e-node-cos:
I0623 00:09:06.641776    1080 server.go:147] Starting server "kubelet" with command "/usr/bin/systemd-run --unit=kubelet-777178888.service --slice=runtime.slice --remain-after-exit /tmp/node-e2e-20170622T170739/kubelet --kubelet-cgroups=/kubelet.slice --cgroup-root=/ --api-servers http://localhost:8080 --address 0.0.0.0 --port 10250 --read-only-port 10255 --volume-stats-agg-period 10s --allow-privileged true --serialize-image-pulls false --pod-manifest-path /tmp/node-e2e-20170622T170739/pod-manifest571288056 --file-check-frequency 10s --pod-cidr 10.100.0.0/24 --eviction-pressure-transition-period 30s --feature-gates  --eviction-hard memory.available<250Mi,nodefs.available<10%%,nodefs.inodesFree<5%% --eviction-minimum-reclaim nodefs.available=5%%,nodefs.inodesFree=5%% --v 4 --logtostderr --network-plugin=kubenet --cni-bin-dir /tmp/node-e2e-20170622T170739/cni/bin --cni-conf-dir /tmp/node-e2e-20170622T170739/cni/net.d --hostname-override tmp-node-e2e-bfe5799d-cos-stable-59-9460-64-0 --experimental-mounter-path=/tmp/node-e2e-20170622T170739/cluster/gce/gci/mounter/mounter --experimental-kernel-memcg-notification=true"

e2e-node-ubuntu:
I0623 00:03:28.526984    2279 server.go:147] Starting server "kubelet" with command "/usr/bin/systemd-run --unit=kubelet-1407651753.service --slice=runtime.slice --remain-after-exit /tmp/node-e2e-20170622T170203/kubelet --kubelet-cgroups=/kubelet.slice --cgroup-root=/ --api-servers http://localhost:8080 --address 0.0.0.0 --port 10250 --read-only-port 10255 --volume-stats-agg-period 10s --allow-privileged true --serialize-image-pulls false --pod-manifest-path /tmp/node-e2e-20170622T170203/pod-manifest083943734 --file-check-frequency 10s --pod-cidr 10.100.0.0/24 --eviction-pressure-transition-period 30s --feature-gates  --eviction-hard memory.available<250Mi,nodefs.available<10%%,nodefs.inodesFree<5%% --eviction-minimum-reclaim nodefs.available=5%%,nodefs.inodesFree=5%% --v 4 --logtostderr --network-plugin=kubenet --cni-bin-dir /tmp/node-e2e-20170622T170203/cni/bin --cni-conf-dir /tmp/node-e2e-20170622T170203/cni/net.d --hostname-override tmp-node-e2e-e48cdd73-ubuntu-gke-1604-xenial-v20170420-1 --experimental-kernel-memcg-notification=true"

e2e-node-containervm:
I0623 00:14:35.392383    2774 server.go:147] Starting server "kubelet" with command "/tmp/node-e2e-20170622T171318/kubelet --runtime-cgroups=/docker-daemon --kubelet-cgroups=/kubelet --cgroup-root=/ --system-cgroups=/system --api-servers http://localhost:8080 --address 0.0.0.0 --port 10250 --read-only-port 10255 --volume-stats-agg-period 10s --allow-privileged true --serialize-image-pulls false --pod-manifest-path /tmp/node-e2e-20170622T171318/pod-manifest507536807 --file-check-frequency 10s --pod-cidr 10.100.0.0/24 --eviction-pressure-transition-period 30s --feature-gates  --eviction-hard memory.available<250Mi,nodefs.available<10%,nodefs.inodesFree<5% --eviction-minimum-reclaim nodefs.available=5%,nodefs.inodesFree=5% --v 4 --logtostderr --network-plugin=kubenet --cni-bin-dir /tmp/node-e2e-20170622T171318/cni/bin --cni-conf-dir /tmp/node-e2e-20170622T171318/cni/net.d --hostname-override tmp-node-e2e-9e3fdd7c-e2e-node-containervm-v20161208-image"

e2e-cos:
Jun 23 17:54:38 e2e-test-ygg-minion-group-t5r0 kubelet[2005]: I0623 17:54:38.646374    2005 flags.go:52] FLAG: --experimental-kernel-memcg-notification="true"

e2e-ubuntu:
Jun 23 18:25:27 e2e-test-ygg-minion-group-19qp kubelet[1547]: I0623 18:25:27.722253    1547 flags.go:52] FLAG: --experimental-kernel-memcg-notification="true"

e2e-containervm:
I0623 18:55:51.886632    3385 flags.go:52] FLAG: --experimental-kernel-memcg-notification="false"
```

**Release note**:
```
None
```

/sig node
/area node-e2e
/assign @dchen1107 @dashpole
2017-06-26 21:08:10 -07:00
..
builder autogenerated 2017-04-14 10:40:57 -07:00
conformance Merge pull request #46327 from supereagle/mark-network-plugin-dir-deprecated 2017-06-19 11:23:54 -07:00
environment Run cAdvisor on the same interface as kubelet 2017-06-08 16:43:38 -04:00
jenkins Use cos-stable-59-9460-64-0 instead of cos-beta-59-9460-20-0. 2017-06-16 13:48:50 -07:00
perftype Logs node e2e perf data to standalone json files 2017-06-12 14:27:56 -07:00
remote Enables memcg notification in cluster/node e2e tests 2017-06-26 11:40:22 -07:00
runner Wait for cloud-init to finish before starting tests. 2017-06-05 10:50:24 -07:00
services run hack/update-all 2017-06-22 11:31:03 -07:00
system Support validating package versions in node conformance test 2017-05-30 17:44:40 -07:00
allocatable_eviction_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
apparmor_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
benchmark_util.go Logs node e2e perf data to standalone json files 2017-06-12 14:27:56 -07:00
BUILD run hack/update-all 2017-06-22 11:31:03 -07:00
container.go run hack/update-all 2017-06-22 11:31:03 -07:00
container_manager_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
critical_pod_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
density_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
disk_eviction_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
dynamic_kubelet_configuration_test.go Remove angle brackets in the test name. 2017-02-07 16:22:59 -08:00
e2e_node_suite_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
garbage_collector_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
gpus.go run hack/update-all 2017-06-22 11:31:03 -07:00
gubernator.sh Logs node e2e perf data to standalone json files 2017-06-12 14:27:56 -07:00
image_id_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
image_list.go Bump up npd version to v0.4.1 2017-06-22 13:13:50 -07:00
inode_eviction_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kubelet_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
lifecycle_hook_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
local_storage_allocatable_eviction_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
local_storage_isolation_eviction_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
log_path_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
memory_eviction_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
mirror_pod_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
node_container_manager_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
node_problem_detector_linux.go Merge pull request #47892 from ajitak/npd-config 2017-06-23 18:05:46 -07:00
OWNERS Add derekwaynecarr to approvers list for test/e2e_node 2017-03-31 18:00:15 -04:00
pods_container_manager_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
README.md Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
resource_collector.go run hack/update-all 2017-06-22 11:31:03 -07:00
resource_usage_test.go e2e: bump kubelet's resurce usage limit 2017-06-23 09:55:18 -07:00
restart_test.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
runtime_conformance_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
security_context_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
simple_mount.go run hack/update-all 2017-06-22 11:31:03 -07:00
summary_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
util.go run hack/update-all 2017-06-22 11:31:03 -07:00
volume_manager_test.go run hack/update-all 2017-06-22 11:31:03 -07:00