Commit Graph

2798 Commits

Author SHA1 Message Date
Matthias Bertschy
367e8c5578 ignore starting order in RunTogether, add another that does
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
2024-06-02 22:00:40 +02:00
Humble Chirammal
d87bfc8392 update ip-masq-agent and npd to latest versions in cluster addons
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-05-30 09:44:02 +05:30
Kubernetes Prow Robot
4c0afd74c3 Merge pull request #125113 from bzsuni/bz/build/cni
update cni from 1.4.1 to 1.5.0
2024-05-29 13:06:08 -07:00
bzsuni
61a35c2186 update cni from 1.4.1 to 1.5.0
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2024-05-25 10:33:52 +08:00
Kubernetes Prow Robot
ec93d3b71a Merge pull request #123160 from bart0sh/PR133-e2e-node-device-plugin-fix-features
e2e_node: fix DevicePlugin feature flags
2024-05-24 09:23:10 -07:00
Kubernetes Prow Robot
028b457cb5 Merge pull request #125090 from gjkim42/deflake-container-lifecycle-e2e-test
e2e: Increase preStop hook delay to deflake the test
2024-05-23 11:58:46 -07:00
Gunju Kim
65b9e560ce e2e: Increase preStop hook delay to deflake the test
This delays the preStop hook to allow sufficient time for the readiness
probe to be executed.
2024-05-23 21:31:02 +09:00
Kubernetes Prow Robot
5cdab888bb Merge pull request #125027 from haircommander/e2e-swap-v1
e2e_node: skip swap tests on cgroupv1
2024-05-22 13:09:42 -07:00
Kubernetes Prow Robot
790d65b28d Merge pull request #125006 from matthyx/fixoom
increase memory limit for e2e test containers
2024-05-21 15:48:15 -07:00
Peter Hunt
ba80f252bf e2e_node: skip swap tests on cgroupv1
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-05-21 11:39:46 -04:00
Itamar Holder
e9b1a5e185 Expect NoSwap on NodeConformance, test LimitedSwap only in serial tests
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
ab5f84e8ed Refactor: Better pod image, read cgroup file from container
- Improve cgroup file read: execute from container instead of host
- Clean unused variables/functions
- BeTrue/BeFalse -> BeTrueBecause/BeFalseBecause
- Use agnhost instread of stress image
- Improve description and fix typo

Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
b17050927c Update node conformance to use NoSwap
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
bdeb80a846 Add serial tests
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
2230ed7dc6 Refactor: helper functions and quantity improvement
- Add getSleepingPod() helper function
- Refactor: quantity functions to return resource.quantity instead of int64
- Improve helper functions for memory capacity

Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
13403e836a Fix swap feature gate check by introduting IsFeatureGateEnabled()
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
959d01cbbf Remove cgroup v1 support for swap tests
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
eb5d647655 Move current test under its own NodeConformance context
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
9f344f23fb Add NodeSwap as a node feature in nodefeature.go
Also, Remove wrong documentation about
tempSetCurrentKubeletConfig() returning bool

Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Matthias Bertschy
893ab296d7 increase memory limit for e2e test containers
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
2024-05-20 22:40:03 +02:00
Kubernetes Prow Robot
06b813fd29 Merge pull request #124634 from saschagrunert/cri-staging-code
Move `pkg/kubelet/cri/remote` to `cri-client`
2024-05-16 07:33:06 -07:00
Maciej Szulik
ceb0387e39 Update PodSecurityLevel used during tests 2024-05-15 16:50:30 +02:00
Sascha Grunert
2aa9e76be1 Move pkg/kubelet/cri/remote to cri-client
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-05-14 10:58:18 +02:00
Kubernetes Prow Robot
63e85caac5 Merge pull request #124741 from saschagrunert/remote-runtime-logging
Make remote runtime and image service logging independent
2024-05-13 08:52:32 -07:00
Sascha Grunert
9c712466f6 Make remote runtime and image service logging independent
It's now possible to pass around the `*klog.Logger` which can also be
`nil` to disable logging at all.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-05-08 10:32:21 +02:00
Matthias Bertschy
18f9a08463 add coverage tests for probes behavior
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
2024-05-07 07:18:27 +02:00
Kubernetes Prow Robot
65f8129e51 Merge pull request #124668 from bart0sh/PR143-e2e-node-fix-containers-lifecycle
node_e2e: refactor RunTogether function
2024-05-06 15:11:46 -07:00
Ed Bartosh
ba7a74a0be e2e_node: fix DevicePlugin feature flags
Feature:DevicePluginProbe and NodeFeature:DevicePluginProbe
are not used by any of the test-infra jobs.

This commit renames NodeFeature:DevicePluginProbe to NodeFeature:DevicePlugin
and removes Feature:DevicePlugin and Feature:DeviceManager to avoid
having both Feature and NodeFeature tags for the same feature.

NOTE: Test-infra SIG-Node jobs should focus on the
NodeFeature:DevicePlugin to run generic Device Plugins tests.
2024-05-05 23:19:50 +03:00
Kubernetes Prow Robot
de1674829c Merge pull request #123886 from adrianreber/2024-03-12-criu-not-found
Handle containerd "CRIU not found" error message
2024-05-04 06:54:28 -07:00
Ed Bartosh
6ecf0da1a5 node_e2e: refactor RunTogether function 2024-05-02 13:41:47 +03:00
Matthias Bertschy
f7ea5f3fe1 e2e lifecycle: increase delay for restartable init containers
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
2024-05-01 22:12:04 +02:00
Matthias Bertschy
8833b4def0 e2e lifecycle: fix finishing -> exiting
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
2024-05-01 18:27:13 +02:00
Matthias Bertschy
851d149a88 e2e lifecycle: use millisecond resolution for logs
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
2024-05-01 18:27:10 +02:00
Kubernetes Prow Robot
d0fddf143b Merge pull request #122148 from pohly/controllers-context-support
controllers + apiserver: enhance context support
2024-04-30 01:30:09 -07:00
Kubernetes Prow Robot
1fd835ce59 Merge pull request #123398 from ffromani/remove-legacy-checkpoint
node: devicemgr: remove obsolete pre-1.20 checkpoint file support
2024-04-29 14:46:53 -07:00
Patrick Ohly
b92273a760 apiserver + controllers: enhance context support
27a68aee3a introduced context support for events. Creating an event
broadcaster with context makes tests more resilient against leaking goroutines
when that context gets canceled at the end of a test and enables per-test
output via ktesting.

The context could get passed to the constructor. A cleaner solution is to
enhance context support for the apiserver and then pass the context into the
controller's run method. This ripples up the call stack to all places which
start an apiserver.
2024-04-29 20:59:21 +02:00
Ed Bartosh
e4c6adacf0 Revert "add coverage tests for probes behavior"
This reverts commit 9be9832184.
2024-04-24 20:56:46 +03:00
Kubernetes Prow Robot
9db6aac7f3 Merge pull request #124086 from matthyx/probes
add coverage tests for probes behavior
2024-04-23 17:02:17 -07:00
Kubernetes Prow Robot
1a4f5a30f0 Merge pull request #124097 from Nordix/esotsal/cpu_manager_test_clean_code
e2e_node: clean cpu_manager test
2024-04-22 18:26:12 -07:00
Kubernetes Prow Robot
11ca079137 Merge pull request #124396 from mimowo/make-sure-traps-are-registered
Make e2e node tests more resiliant by ensuring the SIGTERM trap is registered
2024-04-22 17:25:40 -07:00
Kubernetes Prow Robot
d8f8c7fae0 Merge pull request #124288 from pohly/test-e2e-node-debugger
e2e node: debugger support
2024-04-22 08:43:27 -07:00
huweiwen
6ec421e2cf test/e2e: do not use global variable for image
We have "-kube-test-repo-list" command line flag to override the image registry. If we store it in global variable, then that overriding cannot take effect.

And this can cause puzzling bugs, e.g.: containerIsUnused() function will compare incorrect image address.
2024-04-22 19:29:39 +08:00
Dan Winship
01c7378531 Fix up pod hostIPs e2e
- The feature is GA so there's no feature gate so it doesn't need any
  special label now.

- The test is not dual-stack-specific, so it shouldn't claim to be.

- It asserted node-IP-assigning behavior that is not guaranteed to
  work on all clouds. (Among other things: that there are no "extra"
  InternalIPs, and that there are InternalIPs of every supported IP
  family, rather than there only being ExternalIPs of some families.)
2024-04-20 10:31:29 -04:00
Michal Wozniak
dccb775d6e Make e2e node tests more resiliant by ensuring the SIGTERM trap is registered 2024-04-19 09:05:36 +02:00
Kubernetes Prow Robot
1d171a7501 Merge pull request #124289 from pohly/test-e2e-node-verbosity-fix
e2e node: fix -v support
2024-04-18 04:24:23 -07:00
Kubernetes Prow Robot
6f995a4bbc Merge pull request #124181 from testwill/close_tmpfile
fix: close tmp file
2024-04-18 03:24:08 -07:00
Kubernetes Prow Robot
7f67cb5960 Merge pull request #123969 from liangyuanpeng/cleanup_rand
cleanup: delete rand.Seed(time.Now().UnixNano()) and using global number generator.
2024-04-18 02:10:26 -07:00
Kubernetes Prow Robot
f88d2454c5 Merge pull request #123950 from kannon92/move-eviction-tests
move system node critical test to eviction test lane
2024-04-18 02:10:17 -07:00
Kubernetes Prow Robot
0c55f74aed Merge pull request #123894 from saschagrunert/cni-plugins
Update cni-plugins to v1.4.1
2024-04-18 01:04:39 -07:00
Patrick Ohly
d97b67d97a e2e node: support running the test binary under a debugger
Single-stepping interactively through a test can be useful to understand what's
happening and to investigate the state at each step.

Similar support was added early to hack/ginkgo-e2e.sh, so the same env variable
is used again.
2024-04-16 11:46:28 +02:00