Commit Graph

2921 Commits

Author SHA1 Message Date
zhifei92
2e182e736b feat: Add cri proxy for e2e_node
add example of using CRI proxy

fix:  Invalid function call

fix:  Optimize getPodImagePullDuration

fix:  Return error if the CRI Proxy is undefined

chore:  add a document
2024-10-16 20:53:28 +08:00
Ed Bartosh
876819b8b6 e2e_node: fix mirror pod test
Modified stopNfsServer function to wait until nfs rpc is unregistered.
This should fix failing pull-kubernetes-node-arm64-ubuntu-serial-gce
job.
2024-10-15 02:05:26 +03:00
Kubernetes Prow Robot
de8f6b0db7 Merge pull request #128037 from dshebib/e2eNode_containerLifecycleContext
[e2e_node] Use shared context in regular container tests
2024-10-14 13:10:28 +01:00
Daniel Shebib
1618dbe695 Add context to tests 2024-10-12 21:23:29 -05:00
Tsubasa Nagasawa
04c6d9324e Check for restarts without being affected by container startup order
The test for checking container restarts in a Pod with restartable-init-1
and regular-1 is flaky. Right now, when we check if restartable-init-1 has
restarted, we see if it hasn’t written the "Started" log after regular-1 has
written its "Started" log.
But even though the startup sequence starts with restartable-init-1 and then
regular-1, there’s no guarantee they’ll finish starting up in that order.
Sometimes regular-1 finishes first and writes its "Started" log before restartable-init-1.

1. restartable-init-1 Starting
2. regular-1 Starting
3. regular-1 Started
4. restartable-init-1 Started

In this test, the startup order doesn’t really matter; all we need to check is
if restartable-init-1 restarted. So I changed the test to simply look for
more than one "Starting" log in restartable-init-1's logs.

There were other places that used the same helper function DoesntStartAfter,
so replaced those as well and deleted the helper function.
2024-10-12 15:17:47 +09:00
Peter Hunt
b94c5387b8 e2e_node: use restart instead of start stop
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-10-11 16:53:33 -04:00
Francesco Romani
cc87438f2f e2e_node: add a test to verify the kubelet starts
with systemd cgroup driver and cpumanager none policy.

This was originally planned to be a correctness check for
https://issues.k8s.io/125923, but it was difficult to reproduce the bug,
so it's now a regression test against it.

Signed-off-by: Francesco Romani <fromani@redhat.com>
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-10-11 11:29:16 -04:00
Tsubasa Nagasawa
82b690ddf6 Add more Node E2E tests to cover pod termination for Sidecar Containers
* A pod with restartable init container that exits with
  a non-zero code is marked as a pod succeeded phase
* A pod with restartable init containers that exits with
  a non-zero code by prestop hook is marked as a pod succeeded phase
* A pod with regular container that exceeds its termination grace period
  seconds is marked as a pod failed phase
* A pod with restartable init containers that exceeds its termination
  grace period seconds is marked as a pod succeeded phase
* A pod with a regular container that exceeded its termination grace
  period seconds by PreStop hook is marked as a pod failed phase
* A pod with restartable init containers that exceeds its termination
  grace period seconds by PreStop hook is marked as a pod succeeded phase

Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2024-10-10 09:43:41 +09:00
Tsubasa Nagasawa
bd00f83578 Add step to existing pod termination Node E2E tests to check the container’s exit code
Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2024-10-10 09:17:43 +09:00
Kubernetes Prow Robot
364c73d5a9 Merge pull request #127637 from dshebib/e2eNode_containersLifecycleFormatting
[e2e_node] containers_lifecycle organize tests
2024-10-09 19:38:22 +01:00
Daniel Shebib
2d28e6803c typo 2024-10-06 07:40:56 -05:00
Daniel Shebib
7155404eb5 format whitespace 2024-10-05 18:46:26 -05:00
Daniel Shebib
252fb59bf9 Encase tests in When() 2024-10-05 18:46:26 -05:00
Anish Shah
91b70a9f19 fix InodeEvictionTest 2024-10-04 22:49:14 +00:00
Anish Shah
a37101a202 gofmt fix 2024-10-04 19:47:21 +00:00
Anish Shah
9af732a349 added a comment to explain the usage of emptyDir volume in eviction test #127864 2024-10-04 18:38:40 +00:00
Anish Shah
7abfa2dafb possible deflake 2024-10-03 16:00:48 +00:00
Kubernetes Prow Robot
f84bbfe94f Merge pull request #127488 from dims/remove-unnecessary-stuff-for-nvidia-gpus
Remove remants of broken stuff - nvidia/autoscaling
2024-09-27 03:38:01 +01:00
Kubernetes Prow Robot
239802e4f7 Merge pull request #127574 from bouaouda-achraf/e2e-test-add-network-subnet-param
feat(test-e2e): support custom network and subnet on remote e2e mode
2024-09-26 03:50:08 +01:00
Achraf BOUAOUDA
d900efafcc feat(test-e2e): support custom network and subnet on remote e2e mode 2024-09-24 00:25:41 +02:00
Davanum Srinivas
2fbbca6279 Remove remants of broken stuff - nvidia/autoscaling
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-09-23 13:17:00 +00:00
HirazawaUi
9d4e272c16 add e2e test for pod grace period being overridden 2024-09-20 22:25:03 +08:00
Kubernetes Prow Robot
f2700895a4 Merge pull request #127422 from srivastav-abhishek/go-vet-fix
Go vet fixes for gotip
2024-09-20 14:37:58 +01:00
Abhishek Kr Srivastav
95860cff1c Fix Go vet errors for master golang
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com>
Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com>
2024-09-20 12:36:38 +05:30
Kubernetes Prow Robot
08aefc8a92 Merge pull request #119362 from pacoxu/add-new-eviction-pid-test
add new e2e test with PodAndContainerStatsFromCRI enabled for pid eviction order
2024-09-20 05:44:45 +01:00
rongfu.leng
0c753d1cb9 fix CPUManagerReconcilePeriod field is not allowed 0
Signed-off-by: rongfu.leng <lenronfu@gmail.com>
2024-09-18 23:54:24 +08:00
Kevin Hannon
67402fe110 Revert "add e2e test for restart kubelet" 2024-09-15 15:47:02 -04:00
joey
40dd01fdbd add e2e test for restart kubelet
when nodes removes the label that satisfies the pod affinity, the running pods are not affected, but restarting the kubelet will kill these pods.

Signed-off-by: joey <zchengjoey@gmail.com>
2024-09-14 15:17:58 +08:00
杨朱 · Kiki
c6904b76d3 Update test/e2e_node/image_volume.go
Co-authored-by: Sascha Grunert <sgrunert@redhat.com>
2024-09-09 16:02:01 +08:00
carlory
8121bc99a8 e2e-node: should succeed with multiple pods and same image
Co-authored-by: Ed Bartosh <eduard.bartosh@intel.com>
2024-09-09 10:32:27 +08:00
Kubernetes Prow Robot
49f486dafa Merge pull request #127018 from saschagrunert/imagevolume-selinux
Allow using SELinux on image volume e2e test
2024-09-06 19:01:34 +01:00
Kubernetes Prow Robot
a105f3683c Merge pull request #126810 from liangyuanpeng/testgrid_podhostips
Do not serial for tests of Pod Host IPs.
2024-09-05 07:03:44 +01:00
Paco Xu
3a21a033bd add new e2e test with PodAndContainerStatsFromCRI enabled for pid pressure e2e 2024-09-05 09:10:27 +08:00
Sascha Grunert
6bd3bb5881 Allow using SELinux on image volume e2e test
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-08-30 10:43:15 +02:00
Sascha Grunert
931b9b3a70 Update cni-plugins to v1.5.1
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-08-28 12:58:36 +02:00
Sascha Grunert
ff50da579e Fix device plugin node ready test assertion
Introduced in d770dd695a and high likely
the issue caused in the failing test:
https://github.com/kubernetes/kubernetes/issues/126915

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-08-26 14:56:59 +02:00
Kubernetes Prow Robot
3f306ae140 Merge pull request #126343 from SergeyKanzhelev/succeededPodReadmitted
Terminated pod should not be re-admitted
2024-08-22 16:32:09 +01:00
Sascha Grunert
14476d88f3 Fix hugepages e2e test assertion
This causes failures in:

- https://testgrid.k8s.io/sig-node-cri-o#ci-crio-cgroupv2-node-e2e-hugepages
- https://testgrid.k8s.io/sig-node-cri-o#ci-crio-cgroupv1-node-e2e-hugepages

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-08-21 13:37:22 +02:00
Lan Liang
85b52c2a86 do not serial for tests of Pod Host IPs.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-08-20 12:08:19 +00:00
Kubernetes Prow Robot
d770dd695a Merge pull request #121888 from SD-13/e2e-gomega-be-true-or-false
Enhance boolean assertions when fail
2024-08-20 04:24:42 -07:00
Kubernetes Prow Robot
a221d3a40c Merge pull request #126602 from haircommander/node-cm-test
Revert "Skip node container manager test on systemd" and fix test
2024-08-15 15:39:58 -07:00
Kubernetes Prow Robot
7576984eec Merge pull request #126444 from bart0sh/PR152-dra-e2e_node-cleanup
DRA: e2e_node: improve readability
2024-08-13 21:03:59 -07:00
Peter Hunt
c7b7ea0514 e2e_node: update node cgroup manager test to verify kubelet recreates kubepods cgroup
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-08-08 16:53:44 -04:00
Peter Hunt
dd2dcc0b0a e2e_node: enable and fix cgroups test for systemd
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-08-08 15:57:49 -04:00
Sujay
223aedcf6b enhance boolean assertions 2024-07-31 15:58:15 +00:00
Ed Bartosh
c5842ca4ad DRA: e2e_node: improve readability 2024-07-29 21:57:44 +03:00
Paco Xu
9ee99a9307 skip if ResourceHealthStatus is disabled 2024-07-29 17:40:44 +08:00
Kevin Hannon
a1bbae8168 fix resource health status test failures in unlabeled jobs 2024-07-26 09:43:48 -04:00
Kubernetes Prow Robot
e9d9a82839 Merge pull request #124101 from haircommander/process_stats-with-pid-fix
kubelet: fix PID based eviction
2024-07-25 11:59:57 -07:00
Sergey Kanzhelev
300128de65 succeeded pod is being re-admitted 2024-07-25 17:45:27 +00:00