Commit Graph

3081 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
ba742a9aec Merge pull request #129574 from p-shah256/imagefs-tests
Separate SeparateDiskTests from eviction
2025-03-19 20:12:33 -07:00
Kubernetes Prow Robot
6ec6faad61 Merge pull request #130681 from saschagrunert/image-volume-subpath-e2e
[KEP-4639] Image volume subpath e2e
2025-03-19 17:54:36 -07:00
Sascha Grunert
d7ed3f1c9b Add image volume subpath e2e tests
Adding new test cases for subpath handling for image volumes.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-03-19 20:15:32 +01:00
Kubernetes Prow Robot
1039822a74 Merge pull request #130491 from swatisehgal/cpu-allocation-numa-spread-metric
Add metrics to capture CPU allocation spread across NUMA nodes
2025-03-19 11:52:40 -07:00
Kubernetes Prow Robot
fba63656c9 Merge pull request #130498 from swatisehgal/distribute-across-numa-e2e-tests
node: cpumgr: e2e: Tests for `distribute-cpus-across-numa` policy option
2025-03-19 10:19:06 -07:00
Kubernetes Prow Robot
dc6f70c12d Merge pull request #130290 from nokia/4540-strict-cpu-reservation-beta
KEP-4540: strict-cpu-reservation beta
2025-03-19 10:18:58 -07:00
Swati Sehgal
327ebcffc8 node: cpumgr: e2e: Define constants and use them instead of literals
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2025-03-19 13:19:20 +00:00
Swati Sehgal
c90f0539c8 node: cpumgr: e2e: Tests for distribute-cpus-across-numa policy option
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2025-03-19 13:19:03 +00:00
Swati Sehgal
b6a3ac47de node: cpumgr: e2e: tests for NUMA allocation spread metrics
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2025-03-19 13:13:56 +00:00
Mark Sasnal
5625483527 KEP-4540: added e2e tests for strict-cpu-reservation option 2025-03-18 11:52:25 -04:00
Kubernetes Prow Robot
f8cc9c92d6 Merge pull request #130858 from dims/trying-to-fix-provider-kubelet_config_dir_test
Fix kubelet_config_dir_test after KubeletServiceAccountTokenForCredentialProviders was added
2025-03-17 10:43:49 -07:00
Kevin Hannon
aa187d2d5a add separate container runtime filesystem tests 2025-03-17 12:07:10 -04:00
Davanum Srinivas
410dc1d654 Trying to fix kubelet_config_dir_test
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-16 18:38:23 -04:00
Kubernetes Prow Robot
f007012f5f Merge pull request #130700 from pohly/dra-kubeletplugin-helper
DRA kubeletplugin: turn helper into wrapper
2025-03-16 01:55:47 -07:00
Kubernetes Prow Robot
555efba04a Merge pull request #128123 from felipeagger/feat/add-updatepodsandbox-cri-method
[FG:InPlacePodVerticalScaling] Add UpdatePodSandboxResources CRI method
2025-03-14 23:07:46 -07:00
Patrick Ohly
ec12727957 DRA kubeletplugin: revise socket path handling
When supporting rolling updates, we cannot use the same fixed socket paths for
old and new pod. With the revised API, the caller no longer specifies the full
socket paths, only directories. The logic about how to name sockets then can be
in the helper.

While at it, avoid passing a context to the gRPC helper code when
all that the helper code needs is a logger. That leads to confusion
about whether cancellation has an effect.
2025-03-14 14:19:56 +01:00
Filipe Xavier
b27c303ac2 update cri-api runtime interface and cri-client add new method 2025-03-14 09:33:32 -03:00
Francesco Romani
5c17e7bd9c node: cpumgr: metrics: add uncore cache alignment metrics
add missing metric about uncore / L3 / Last-Level cache alignment,
plus its e2e tests.

Exposing uncore alignment requires a bit of refactoring in the static
policy implementation because, differently from full PCPUs alignment
and NUMA alignment, can't be easily and safely inferred by construction.

The main reason for this is that uncore cache alignment is preferred,
not mandatory, thus the cpu allocator can legally use cross-uncore
allocation. Because of that, the final cpuset union step can
create a final cpuset which is not uncore-aligned even though all
its parts are uncore-aligned.

The safest way seems thus to run just a final uncore-alignment check
once the final cpuset is computed.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-03-14 09:08:54 +01:00
Francesco Romani
9cfe1863ce node: e2e: clarify test description
fix test name. Cosmetic only.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-03-14 09:06:21 +01:00
Kubernetes Prow Robot
396c3ebe4c Merge pull request #130711 from lauralorenz/crashloopbackoff-featuregate-reducedefaultcrashloopbackoffdelay
KEP-4603: Add ReduceDefaultCrashLoopBackoffDecay featuregate, feature and unit and e2e tests
2025-03-13 14:55:47 -07:00
Kubernetes Prow Robot
96dd5508f6 Merge pull request #129714 from esotsal/fix-reset-injector-because-cri-proxy-undefined
testing: Skip test if cri proxy is disabled or undefined
2025-03-12 21:19:46 -07:00
Kubernetes Prow Robot
761f5646be Merge pull request #130138 from rata/userns-enabled-by-default
features: Enable user namespaces by default
2025-03-12 20:13:48 -07:00
Kubernetes Prow Robot
7b6c56e5fb Merge pull request #130135 from saschagrunert/image-volume-beta
[KEP-4639] Graduate image volume sources to beta
2025-03-12 18:03:58 -07:00
Kubernetes Prow Robot
05bfdbc6dd Merge pull request #129950 from ffromani/alignment-error-detail-metrics
node: metrics for alignment failures
2025-03-12 18:03:46 -07:00
lauralorenz
256a576651 Add featuregate, feature and unit and e2e tests
Signed-off-by: lauralorenz <lauralorenz@google.com>
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2025-03-12 23:43:16 +00:00
Anish Ramasekar
2090a01e0a add e2e test with the gcp-credential-provider test plugin
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-03-11 20:36:36 -07:00
Sascha Grunert
f9e5dd84ad Graduate image volume sources to beta
Graduate the feature to beta, by:

- Allowing `subPath`/`subPathExpr` for image volumes
- Modifying the CRI to pass down the (resolved) sub path
- Adding metrics which are outlined in the KEP

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-03-11 13:41:45 +01:00
Kubernetes Prow Robot
b82260f003 Merge pull request #130391 from bart0sh/PR174-e2e_node-fix-eviction-kubetest2
e2e_node: fix ImageGCNoEviction test for kubetest2
2025-03-10 08:57:53 -07:00
Kubernetes Prow Robot
0eaee48ecb Merge pull request #130569 from dims/update-to-latest-cadvisor-v0.52.0
Update to latest cadvisor @ v0.52.1 and new opencontainer/cgroups and drops opencontainers/runc
2025-03-07 17:09:51 -08:00
Kubernetes Prow Robot
2effa5e3cf Merge pull request #130352 from natasha41575/kubelet-pod-observedgen
[FG:PodObservedGenerationTracking] Kubelet sets pod `status.observedGeneration` when updating the pod status
2025-03-07 13:33:45 -08:00
Kubernetes Prow Robot
74cb75c884 Merge pull request #130396 from bart0sh/PR173-e2e_node-fix-getting-pod-logs
e2e_node: remote: fix getting pod logs
2025-03-07 05:21:45 -08:00
Natasha Sarkar
eab9197d1a Add observedGeneration and validation to pod status and conditions 2025-03-06 20:08:06 +00:00
Sotiris Salloumis
b345f64c76 Skip test if cri proxy is disabled or undefined 2025-03-06 19:10:09 +01:00
Davanum Srinivas
5ecddb6571 update to latest cadvisor @ v0.52.0
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-05 06:36:39 -05:00
Francesco Romani
04129d1dc8 node: metrics for alignment failures
Add metrics to report alignment allocation failures
See: https://github.com/kubernetes/enhancements/pull/5108

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-03-04 19:50:08 +01:00
Kubernetes Prow Robot
4f3fd12bc1 Merge pull request #130116 from AkihiroSuda/rro
KEP-3857: Recursive Read-only (RRO) mounts: promote to GA
2025-03-03 19:55:49 -08:00
Kubernetes Prow Robot
88d2355c41 Merge pull request #129951 from parkjeongryul/add-e2e-topology-manager-for-init-ctn
Add e2e test for topology manager with restartable init containers
2025-02-28 04:38:23 -08:00
parkjeongryul
dca3f56f64 Add e2e test for topology manager with restartable init containers 2025-02-28 00:48:27 +09:00
Davanum Srinivas
fb3b163ca0 Ensure we switch to k8s root directory for dockerized builds during e2e-node ci job
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-02-27 10:05:45 -05:00
Ed Bartosh
65c792ca9b e2e_node: remote: fix getting pod logs 2025-02-27 09:04:43 +02:00
Kubernetes Prow Robot
27cbe54b09 Merge pull request #130163 from ffromani/e2e-node-fix-cpu-quota-test
e2e: node: cpumgr: cleanup after each test case
2025-02-25 05:08:29 -08:00
Ed Bartosh
4c0b24b06d e2e_node: eviction: fix ImageGCNoEviction test
ImageGCNoEviction fails when tests run by kubetest2 as the test depends
on the prepulled test images (framework.TestContext.PrepullImages), but
kubetest2 --prepull-images command line option is set to false by
default.

Prepulling images explicitly for the only test that uses them
should fix the issue.
2025-02-24 18:27:38 +02:00
Ed Bartosh
cf70b06e37 e2e_node: improve logging for eviction test 2025-02-24 10:39:04 +02:00
Francesco Romani
323410664c e2e: node: cpumgr: check CPU allocatable for CFS quota test
add (admittedly pretty crude) CPU allocatable check.
A more incisive refactoring is needed, but we need
to unbreak CI first, so this seems the minimal decently clean test.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-02-18 10:04:57 +01:00
Rodrigo Campos
3b7926824e e2e_node: Don't use userns in DefaultPocMount tests
When proc mount is set to default, it should mask /proc.

The DefaultProcMount test was setting "hostUsers: false" which means to
create a user namespaces. This was not causing issues before, because
user namespaces was disabled by default and therefore the field was
completely ignored. Now that userns is enabled by default, the test is
failing as the runtime doesn't always have userns support.

One option would be to filter for runtimes that do have userns support.
But the default case (/proc is masked) for sure we want to test it
without userns support, as it will be applied to all pods.

To that end, we add a param "hostUsers bool" to testProcMount that will
enable it or not. Then, both test cases that call this function set it
accordingly: the default case sets it to true (no user namespace), and
the unmasked case with a privileged pod sets it to false (use a user
namespace), to verify the /proc mount is unmasked in this case.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-02-17 11:51:55 +01:00
carlory
c48499d360 fix ci
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-17 11:49:24 +08:00
Francesco Romani
844c2ef39d e2e: node: cpumgr: cleanup after each test case
Our CI machines happen to have 1 fully allocatable CPU for test workloads.
This is really, really the minimal amount. But still should be sufficient for the tests to run
the tests; the CFS quota pod, however, does create a series of pods (at time of writing, 6)
and does the cleanup only at the very end the end. This means pods
requiring resources accumulate on the CI machine node.

The fix implemented here is to just clean up after each subcase.
Doing so the cpu test footprint is equal to the higher requirement (say, 1000 millicores) vs
the sum of all the subcases requirements.

Doing like this doesn't change the test behavior, and make it possible
to run it on very barebones machines.
2025-02-14 15:45:36 +01:00
Akihiro Suda
d6a6dda2fa KEP-3857: Recursive Read-only (RRO) mounts: promote to GA
Discussed in kubernetes/enhancements PR 5157

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2025-02-13 20:43:35 +09:00
Kubernetes Prow Robot
5d57d0c110 Merge pull request #129845 from bitoku/fix-flake
Reduce the number of processes used in e2e to prevent unexpected OOM
2025-02-12 13:16:20 -08:00
Kubernetes Prow Robot
5e1c31b9db Merge pull request #130053 from iholder101/bugfix/swap-resource-metrics-e2e-bug
[KEP-2400] [failing-test] resource metrics e2e tests: expect swap node and container level stats
2025-02-12 12:02:28 -08:00