Commit Graph

130 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
e9eef19379 Merge pull request #129240 from KevinTMtz/evict-terminated-pods-on-disk-pressure
E2e test for cleaning of terminated containers
2025-09-10 11:47:57 -07:00
Kevin Torres
86e3ad233f Revert trapping TERM for podWithCommand 2025-09-04 18:46:54 +00:00
carlory
36cf728281 Drop SizeMemoryBackedVolumes after the feature GA-ed in 1.32
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-08-29 14:01:39 +08:00
Kevin Torres
7cf39066b3 Remove sleepAfterExecuting param from diskConsumingPod 2025-08-27 18:24:18 +00:00
Kevin Torres
388046c3ea ImageGCTerminatedPodsContainersCleanup e2e node test
Updated ImageGCTerminatedPodsEviction to ImageGCTerminatedPodsContainersCleanup to test that
terminated containers are being cleaned up, instead of testing if terminated pods were being evicted
2025-08-27 18:24:11 +00:00
Kevin Torres
c9ccbae0d9 Remove terminated pods eviction code 2025-08-27 18:07:26 +00:00
Kevin Torres
2cad51f6c0 Add ImageGCTerminatedPodsEviction e2e node test
Removed TerminatedPodsEvictionOnDiskPressure, since it did not test the expected functionality

gofmt ./pkg/kubelet/eviction/eviction_manager_test.go
2025-08-27 18:03:21 +00:00
Kevin Torres
a59ce54d79 TerminatedPodsEvictionOnDiskPressure e2e node test 2025-08-27 18:01:56 +00:00
Kevin Hannon
e83e5815e5 always pull pause image for eviction tests 2025-08-01 00:55:10 -04:00
Kubernetes Prow Robot
63011fe547 Merge pull request #132277 from KevinTMtz/pod-level-resources-eviction-manager
[PodLevelResources] Pod Level Resources Eviction Manager
2025-07-24 16:44:34 -07:00
Kevin Torres
976a617d05 E2E tests for pod level resources eviction manager 2025-07-24 17:07:09 +00:00
Itamar Holder
25d9d8d9ba refactor: use getLocalNode() to avoid code duplication
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-07-08 15:48:35 +03:00
Itamar Holder
bc9e8e1a91 add a context argument to prePodCreationModificationFunc()
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-07-08 15:45:42 +03:00
Itamar Holder
90bbce56b9 PriorityMemoryEvictionOrdering: allocate more memory when swap is provisioned
Whenever swap is provisioned on the node,
the kernel might be able to reclaim much more memory,
hence it is harder to get the node to be memory pressured.

This will add another container that allocates
the same amount as the swap capacity to help
bring the node to memory pressure.

Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-07-03 21:14:44 +03:00
Itamar Holder
25498cd34d Eviction tests: small refactor
This small refactor:
- Adds swap log statistics.
- Adds a pre pods modification function.

The later can be used in order to perform
changes to pods before creation.

Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-07-03 21:14:43 +03:00
Kevin Hannon
a237f429fc Revert "Separate SeparateDiskTests from eviction" 2025-03-21 12:29:30 -04:00
Kevin Hannon
aa187d2d5a add separate container runtime filesystem tests 2025-03-17 12:07:10 -04: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
Ayato Tokubi
dbb34a04cc Reduce the number of processes used in e2e to prevent unexpected OOM
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2025-02-12 17:39:56 +00:00
Kevin Hannon
bae4122f56 deprecate nodefeature for feature labels 2025-01-20 17:02:59 -05:00
Kevin Hannon
8495df64b2 deprecate nodefeature for feature labels 2024-12-17 13:58:12 -05:00
carlory
060c653b53 scheduling e2e tests: add feature-gate label when these tests depend feature-gate 2024-12-06 17:22:43 +08:00
Kubernetes Prow Robot
453efd7a4b Merge pull request #121604 from pacoxu/image-pull-e2e
[node-e2e] add test cases for serialize and parallel image pulling
2024-10-31 08:01:26 +00:00
Paco Xu
2bbc09b49d add e2e test for image pull serialize and parallel
- wait for pod pulled: running/failed(no restart)
2024-10-22 09:21:00 +08:00
Kevin Hannon
1d752200af promote size backed memory volumes to stable 2024-10-16 17:15:02 -04: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
HirazawaUi
9d4e272c16 add e2e test for pod grace period being overridden 2024-09-20 22:25:03 +08:00
Paco Xu
3a21a033bd add new e2e test with PodAndContainerStatsFromCRI enabled for pid pressure e2e 2024-09-05 09:10:27 +08:00
Kevin Hannon
7d8ba7849b priority pid tests should match on processes
pids 0
process should not be nonzero
2024-07-22 10:54:42 -04:00
Michal Wozniak
780191bea6 review remarks for graduating PodDisruptionConditions 2024-06-28 17:32:27 +02:00
Michal Wozniak
bf0c9885a4 Graduate PodDisruptionConditions to stable 2024-06-28 16:36:51 +02:00
Kevin Hannon
19ae61bab0 innocent-pod should not be evicted due to exceeding requests/limits 2024-03-12 13:37:11 -04:00
Akihiro Suda
e8b08cd056 e2e_node: replace registry.k8s.io/stress:v1 with agnhost
agnhost now contains the stress functionality (PR 123258).

Fix issue 123146

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-02-14 19:37:13 +09:00
Patrick Ohly
f2cfbf44b1 e2e: use framework labels
This changes the text registration so that tags for which the framework has a
dedicated API (features, feature gates, slow, serial, etc.) those APIs are
used.

Arbitrary, custom tags are still left in place for now.
2023-11-01 15:17:34 +01:00
Kevin Hannon
1ae5429629 add potential fixes for flakiness in eviction tests 2023-10-13 11:36:44 -04:00
carlory
d5d7fb595e e2e_node: stop using deprecated framework.ExpectEqual 2023-10-09 16:42:42 +08:00
jinye
a774887262 cleanup:e2e:stop using deprecated framework.ExpectNotEqual 2023-09-05 18:16:57 +08:00
Todd Neal
ede524e1a6 fix a pidpressure test flake
With the new busybox, ash has a built-in sleep command. Prior to this
change we were creating half the pids expected since `sleep` wasn't
actually launching a new binary.  Use the full path to /bin/sleep which
avoids the built-in and actually launches a new process.
2023-08-30 22:44:36 -05:00
Paco Xu
709eb6c030 eviction for pid trigger PIDPressure condition slowly on CRI-O
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-07-17 16:34:28 +08:00
Stanislav Laznicka
7f532891c9 e2e tests: set all PSa labels instead of just enforcing 2023-06-21 15:05:13 +02:00
Paco Xu
743e5525ed fix eviction failing test for nil feature gates assignment 2023-06-06 17:05:04 +08:00
Patrick Ohly
41f23f52d0 test: fix ginkgolinter issues
All of these issues were reported by https://github.com/nunnatsa/ginkgolinter.
Fixing these issues is useful (several expressions get simpler, using
framework.ExpectNoError is better because it has additional support for
failures) and a necessary step for enabling that linter in our golangci-lint
invocation.
2023-02-22 19:36:05 +01:00
Patrick Ohly
2f6c4f5eab e2e: use Ginkgo context
All code must use the context from Ginkgo when doing API calls or polling for a
change, otherwise the code would not return immediately when the test gets
aborted.
2022-12-16 20:14:04 +01:00
Patrick Ohly
df5d84ae81 e2e: accept context from Ginkgo
Every ginkgo callback should return immediately when a timeout occurs or the
test run manually gets aborted with CTRL-C. To do that, they must take a ctx
parameter and pass it through to all code which might block.

This is a first automated step towards that: the additional parameter got added
with

    sed -i 's/\(framework.ConformanceIt\|ginkgo.It\)\(.*\)func() {$/\1\2func(ctx context.Context) {/' \
        $(git grep -l -e framework.ConformanceIt -e ginkgo.It )
    $GOPATH/bin/goimports -w $(git status | grep modified: | sed -e 's/.* //')

log_test.go was left unchanged.
2022-12-10 19:50:18 +01:00
Michal Wozniak
c803892bd8 Enable the feature into beta 2022-11-09 09:02:40 +01:00
Michal Wozniak
52cd6755eb Add pod disruption conditions for kubelet initiated failures 2022-11-07 11:23:22 +01:00