Commit Graph

29034 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
a504b1b4eb Merge pull request #135755 from pohly/dra-logging
DRA: log more information
2025-12-18 02:10:38 -08:00
Kubernetes Prow Robot
cb74fe988b Merge pull request #135723 from danwinship/netpol-test-cleanup
minor Netpol test cleanups
2025-12-18 02:10:22 -08:00
Kubernetes Prow Robot
17cb08ffa3 Merge pull request #135691 from bart0sh/PR210-DRA-e2e-add-extended-resources-tests
DRA: add new e2e tests for extended resources
2025-12-18 02:09:49 -08:00
Kubernetes Prow Robot
06ff302857 Merge pull request #135680 from dgrisonnet/increase-memory-values
test/e2e: fix pod resize test flakes on CRI-O/runc environments
2025-12-18 02:09:33 -08:00
Kubernetes Prow Robot
f83f687475 Merge pull request #135674 from Phaow/volume-expand
test: Add XFS filesystem support to volume expansion e2e tests
2025-12-18 02:09:25 -08:00
Kubernetes Prow Robot
861e9cde52 Merge pull request #135623 from jsafrane/fix-preemption-e2e
Run RWOP preemption test as serial
2025-12-17 23:28:42 -08:00
Kubernetes Prow Robot
508074f023 Merge pull request #135615 from soltysh/drop_autoscaling_v2betaX
Drop autoscaling v2beta1 and v2beta2
2025-12-17 23:28:25 -08:00
Kubernetes Prow Robot
fdf8aefa87 Merge pull request #135610 from soltysh/err_race
test/e2e: explicitly use new err variable inside parallelized code
2025-12-17 23:28:17 -08:00
Kubernetes Prow Robot
246fa57363 Merge pull request #135604 from dims/better-support-for-cri-stats
kubelet: improve CRI stats for resource metrics and testing
2025-12-17 23:28:10 -08:00
Kubernetes Prow Robot
30fcf30805 Merge pull request #135522 from petern48/graduate_workqueue_metrics
Promote workqueue metrics from ALPHA to BETA
2025-12-17 23:27:15 -08:00
Kubernetes Prow Robot
d9c281159a Merge pull request #135494 from Argh4k/readme-fix
Fix example with profiling in README
2025-12-17 22:36:21 -08:00
Kubernetes Prow Robot
91fd6eff40 Merge pull request #135476 from ardaguclu/deflake-subresource-test
Filter out the nodes created by other tests
2025-12-17 22:35:59 -08:00
Kubernetes Prow Robot
5e5a422b72 Merge pull request #135457 from duanwei33/vol-resize
Fix volume expansion e2e tests to use actual allocated size
2025-12-17 22:35:51 -08:00
Kubernetes Prow Robot
43cfcac7cc Merge pull request #135434 from yliaog/quota_abuse
Fixes the loophole that allows users to workaround resource quota set by system admin
2025-12-17 22:35:28 -08:00
Kubernetes Prow Robot
c96663a4b7 Merge pull request #135372 from ingvagabund/e2e-scheduler-preemption-async-fix
fix(SchedulerPreemption/Async): schedule all medium priority pods first so all low priority pods can be preempted
2025-12-17 21:42:15 -08:00
Kubernetes Prow Robot
a2a97119bb Merge pull request #135361 from Karthik-K-N/cel-test-imporvements
CEL test imporvements to use test context across test instead of generic context
2025-12-17 21:41:45 -08:00
Kubernetes Prow Robot
fefd7ddc37 Merge pull request #135348 from brejman/issue-134393-perf
Add perf test for scheduling pods matching existing pods antiaffinity
2025-12-17 21:41:29 -08:00
Kubernetes Prow Robot
285eb9fdba Merge pull request #135325 from brejman/issue-134393
Fix queue hint for inter-pod anti-affinity
2025-12-17 20:01:02 -08:00
Kubernetes Prow Robot
f9761d1319 Merge pull request #135301 from bwsalmon/bsalmon-batch-after
Fix a bug in scheduler_perf integration test
2025-12-17 20:00:39 -08:00
Penghao
7e68ec0ffc test: refine vgs resources clean up (#135250)
* test: refine vgs resources clean up

Signed-off-by: Penghao <pewang@redhat.com>

* fix: refine structure

Signed-off-by: Penghao <pewang@redhat.com>

* fix: typo and proper data structure usage

Signed-off-by: Penghao <pewang@redhat.com>

---------

Signed-off-by: Penghao <pewang@redhat.com>
2025-12-17 20:00:09 -08:00
yliao
3e34de29c4 fixed the loophole that allows user to get around resource quota set by system admin 2025-12-18 00:56:20 +00:00
Kubernetes Prow Robot
d6c073990b Merge pull request #134623 from adrianmoisey/service-headless
Refactor 'Services should implement service.kubernetes.io/headless' test
2025-12-17 16:26:47 -08:00
Kubernetes Prow Robot
243404b870 Merge pull request #134515 from carlory/e2e-autoscaling
e2e: improve test/e2e/framework/autoscaling/autoscaling_utils.go
2025-12-17 16:26:32 -08:00
Kubernetes Prow Robot
1078cf59b9 Merge pull request #133964 from K-Diger/fix/dra-plugin-unreachable-code
kubelet: refactor DRA plugin health client initialization
2025-12-17 16:26:03 -08:00
Kubernetes Prow Robot
97e95711c5 Merge pull request #133654 from kwohlfahrt/kubelet-cert
Fix kubelet certificate reload when connecting by IP address
2025-12-17 16:25:32 -08:00
Kubernetes Prow Robot
e14cdadc5a Merge pull request #132807 from iholder101/feature/ImageVolumeWithDigest
[KEP-5365] Implement Image Volume with Digest
2025-12-17 16:25:17 -08:00
Davanum Srinivas
914ddf4468 kubelet: improve CRI stats for resource metrics and testing
properly support the resource metrics endpoint when `PodAndContainerStatsFromCRI` is enabled and fix the related e2e tests.

Stats Provider:
- add container-level CPU and memory stats to `ListPodCPUAndMemoryStats` so the resource metrics endpoint has complete data
- add `aggregatePodSwapStats` to compute pod-level swap from container stats (CRI doesn't provide pod-level swap directly)
- add missing memory stats fields: `AvailableBytes`, `PageFaults`, and `MajorPageFaults`
- add platform-specific implementations for Linux and Windows

Tests:
- skip cAdvisor metrics test when `PodAndContainerStatsFromCRI` is enabled (cAdvisor metrics aren't available in that mode)
- fix expected metrics in `ResourceMetricsAPI` test
- `node_swap_usage_bytes` is only available with cAdvisor (need to verify!)
- Add `dumpResourceMetricsForPods` helper to log actual metric values when tests fail, making debugging easier

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-12-17 10:52:32 -05:00
Bartosz
49035d1404 Add perf test for scheduling pods matching existing pods antiaffinity 2025-12-16 13:02:11 +00:00
Bartosz
d6d8639349 Fix queue hint for interpod antiaffinity 2025-12-16 13:01:15 +00:00
Patrick Ohly
5d536bfb8e DRA: log more information
For debugging double allocation of the same
device (https://github.com/kubernetes/kubernetes/issues/133602) it is necessary
to have information about pools, devices and in-flight claims. Log calls get
extended and the config for DRA CI jobs updated to enable higher verbosity for
relevant source files.

Log output in such a cluster at verbosity 6 looks like this:

I1215 10:28:54.166872       1 allocator_incubating.go:130] "Gathered pool information" logger="FilterWithNominatedPods.Filter.DynamicResources" pod="dra-8841/tester-3" node="kind-worker2" pools={"count":1,"devices":["dra-8841.k8s.io/kind-worker2/device-00"],"meta":[{"InvalidReason":"","id":"dra-8841.k8s.io/kind-worker2","isIncomplete":false,"isInvalid":false}]}
I1215 10:28:54.166941       1 allocator_incubating.go:254] "Gathered information about devices" logger="FilterWithNominatedPods.Filter.DynamicResources" pod="dra-8841/tester-3" node="kind-worker2" allocatedDevices={"count":2,"devices":["dra-8841.k8s.io/kind-worker/device-00","dra-8841.k8s.io/kind-worker3/device-00"]} minDevicesToBeAllocated=1
2025-12-16 09:58:05 +01:00
Dan Winship
f2408aa83f Rearrange setup code in Netpol tests to be consistent between tests 2025-12-11 11:52:00 -05:00
Dan Winship
d8a9c58535 Rename a weirdly named field in Netpol tests 2025-12-11 11:51:58 -05:00
Dan Winship
a6e12205bd Drop unneeded NewWindowsModel from Netpol tests
The SCTP tests are already skipped on Windows, so we don't need any
other special handling.
2025-12-10 15:36:51 -05:00
Penghao
a9f878111e test: Add XFS filesystem support to volume expansion e2e tests
Signed-off-by: Penghao <pewang@redhat.com>
2025-12-11 02:39:24 +08:00
Ed Bartosh
8a573b92ff DRA: add new e2e tests for extended resources 2025-12-10 10:09:50 +02:00
Damien Grisonnet
a2cf7f770d test/e2e: increase memory limits in pod resize tests
The pod resize e2e tests use memory limits as low as 20Mi for Guaranteed
QoS pods. On OpenShift/CRI-O, the container runtime (runc) runs inside
the pod's cgroup and requires ~20-22MB of memory during container
creation and restart operations. This causes intermittent OOM kills
when the pod's memory limit is at or below runc's memory footprint.

This issue does not occur on containerd-based clusters because
containerd's shim runs outside the pod's cgroup by default (ShimCgroup=""),
so runc's memory is not charged against the pod's limit.

Increase memory limits to provide sufficient headroom for runc:
- originalMem: 20Mi -> 35Mi
- reducedMem: 15Mi -> 30Mi
- increasedMem: 25Mi -> 40Mi

The test validates resize behavior, not minimal memory limits, so
larger values do not reduce test coverage.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2025-12-09 12:15:25 +01:00
bzsuni
2c811fdd3a etcd: Update etcd to v3.6.6
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2025-12-08 05:37:15 +00:00
Kubernetes Prow Robot
ff9971ec7f Merge pull request #135586 from pohly/dra-upgrade-downgrade-skew-range
DRA upgrade/downgrade: roll over only after -alpha.0
2025-12-05 09:22:56 -08:00
Jan Šafránek
eb13761338 Update test/e2e/storage/testsuites/readwriteoncepod.go
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2025-12-05 16:07:53 +01:00
Jan Safranek
618bec889d Fix the preemption test
It needs to run as [Serial], so it accidentally does not evict other Pods.

Consider this scenario on a busy clusters, with all nodes at their attachment limit.

1. pod1 of the preemption test runs, pod2 is created.
2. The scheduler evicts pod1. That frees the RWOP volume and it also frees the last attachment slot on the node.
3. Some other e2e tests creates a Pod and scheduler puts it on a node, taking the last attachment slot.
4. The scheduler schedules pod2 agaian and it sees there is no node with a free attachment slot -> new round of eviction, now evicting a pod of unrelated e2e tests. The unrelated test will fail.
2025-12-05 15:26:13 +01:00
Maciej Szulik
e347aa994b React to removing autoscaling v2beta1 and v2beta2
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-12-05 11:59:30 +01:00
Maciej Szulik
9eb57b6291 test/e2e: explicitly use new err variable inside parallelized code
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-12-05 11:17:34 +01:00
Carlos Panato
eae2a1bd5f Bump images and versions to go 1.25.5 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-12-05 10:40:45 +01:00
Kubernetes Prow Robot
2711e8cb53 Merge pull request #135499 from aojea/crazy_ipallocator
ipallocator: handle errors correctly
2025-12-04 10:21:02 -08:00
k-diger
b255410b4f Remove duplicate connection management in DRA plugin Fixes 2025-12-05 01:34:44 +09:00
Patrick Ohly
91e221b047 DRA upgrade/downgrade: roll over only after -alpha.0
All version up to and including x.y.z-alpha.0 are treated as if we were
still the previous minor version x.(y-1). There are two reason for this:

- During code freeze around (at?) -rc.0, the master branch already
  identfies itself as the next release with -alpha.0. Without this
  special case, we would change the version skew testing from what
  has been tested and been known to work to something else, which
  can and at least once did break.

- Early in the next cycle the differences compared to the previous
  release are small, so it's more interesting to go back further.
2025-12-04 14:25:12 +01:00
Antonio Ojea
51f614a156 ipallocator: handle errors correctly
The ipallocator was blindly assuming that all errors are retryable, that
causes that the allocator tries to exhaust all the possibilities to
allocate an IP address.

If the error is not retryable this means the allocator will generate as
many API calls as existing available IPs are in the allocator, causing
CPU exhaustion since this requests are coming from inside the apiserver.

In addition to handle the error correctly, this patch also interpret the
error to return the right status code depending on the error type.

Co-authored-by: carlory <baofa.fan@daocloud.io>
2025-12-03 10:39:57 +00:00
Maciej Wyrzuc
9a8c2a4001 Fix example with profiling in README 2025-12-01 10:44:15 +00:00
Peter Nguyen
d06b805d81 Update instrumentation/documentation.md 2025-11-30 11:51:52 -08:00
Peter Nguyen
4525702095 Update documentation-list.yaml 2025-11-30 11:48:08 -08:00