Davanum Srinivas
b4ef4015a2
Avoid pulling mounter.tar through the CDN
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-07-28 22:15:55 -04:00
upodroid
a65d207507
calculate the correct machine-type
2023-07-26 23:10:06 +00:00
upodroid
7d13c9b096
set map to nil if an empty string is passed
2023-07-26 10:32:27 +03:00
upodroid
1c99f9591b
add node-env and instance-type flags to node-e2e tests
2023-07-21 21:46:37 +00:00
Gunju Kim
e0a6eb93a1
node_e2e: Fix createStaticSystemNodeCriticalPod's invalid spec
...
This fixes `createStaticSystemNodeCriticalPod` to set pod's
restartPolicy instead of container's restartPolicy.
2023-07-20 20:18:05 +09:00
Itamar Holder
ee82654e39
Add pod_swap_usage_bytes as an expected metric in e2e test
...
Use haveKeys() matcher from previous commit to ensure
required keys exist.
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-19 14:44:05 +03:00
Itamar Holder
81abfca407
Add a haveKeys() helper function to match multiple keys
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-19 14:44:04 +03:00
Kubernetes Prow Robot
b4d793c450
Merge pull request #118865 from iholder101/kubelet/add-swap-to-summary-stats
...
Add swap to stats to Summary API and Prometheus endpoints (`/stats/summary` and `/metrics/resource`)
2023-07-17 19:49:18 -07:00
Kubernetes Prow Robot
da2fdf8cc3
Merge pull request #118764 from iholder101/Swap/burstableQoS-impl
...
Add full cgroup v2 swap support with automatically calculated swap limit for LimitedSwap and Burstable QoS Pods
2023-07-17 19:49:07 -07:00
Kubernetes Prow Robot
d17f3ba2cf
Merge pull request #119168 from gjkim42/sidecar-allow-probes-and-lifecycle-hooks
...
Allow all probes and lifecycle for restartable init containers
2023-07-17 18:11:07 -07:00
Itamar Holder
4cb5547f93
Adjust summary API e2e test
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-18 02:55:56 +03:00
Gunju Kim
3bf282652f
Allow restartable init containers to have lifecycle
2023-07-18 08:12:24 +09:00
Kubernetes Prow Robot
92856db662
Merge pull request #118973 from ffromani/kubelet-podresources-getallocatable-ga
...
node: podresources: getallocatable: move to GA
2023-07-17 13:47:33 -07:00
Kubernetes Prow Robot
900237fada
Merge pull request #118635 from ffromani/devmgr-check-pod-running
...
kubelet: devices: skip allocation for running pods
2023-07-15 05:43:16 -07:00
Itamar Holder
619be9c153
Add a swap e2e test
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-14 14:52:28 +03:00
Shiming Zhang
b2613dd381
Add e2e to check that hostIPs and Downward API works
2023-07-14 09:35:31 +08:00
Kubernetes Prow Robot
047d040ce7
Merge pull request #119012 from pohly/dra-batch-node-prepare
...
kubelet: support batched prepare/unprepare in v1alpha3 DRA plugin API
2023-07-12 10:57:37 -07:00
Patrick Ohly
d743c50bb9
kubelet: support batched prepare/unprepare in v1alpha3 DRA plugin API
...
Combining all prepare/unprepare operations for a pod enables plugins to
optimize the execution. Plugins can continue to use the v1beta2 API for now,
but should switch. The new API is designed so that plugins which want to work
on each claim one-by-one can do so and then report errors for each claim
separately, i.e. partial success is supported.
2023-07-12 14:50:30 +02:00
Francesco Romani
01c3a51a78
node: podresources: getallocatable: move to GA
...
lock the feature gate to GA, and remove the now-redundant code.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2023-07-12 14:11:22 +02:00
Francesco Romani
d78671447f
e2e: node: add test to check device-requiring pods are cleaned up
...
Make sure orphanded pods (pods deleted while kubelet is down) are
handled correctly.
Outline:
1. create a pod (not static pod)
2. stop kubelet
3. while kubelet is down, force delete the pod on API server
4. restart kubelet
the pod becomes an orphaned pod and is expected to be killed by HandlePodCleanups.
There is a similar test already, but here we want to check device
assignment.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2023-07-12 13:25:36 +02:00
Francesco Romani
5cf50105a2
e2e: node: devices: improve the node reboot test
...
The recently added e2e device plugins test to cover node reboot
works fine if runs every time on CI environment (e.g CI) but
doesn't handle correctly partial setup when run repeatedly on
the same instance (developer setup).
To accomodate both flows, we extend the error management, checking
more error conditions in the flow.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2023-07-12 13:25:36 +02:00
Francesco Romani
b926aba268
e2e: node: devicemanager: update tests
...
Fix e2e device manager tests.
Most notably, the workload pods needs to survive a kubelet
restart. Update tests to reflect that.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2023-07-12 13:25:36 +02:00
Kubernetes Prow Robot
da61644869
Merge pull request #119179 from gjkim42/add-prestop-e2e-test
...
node-e2e: Add container lifecycle e2e tests for preStop hook
2023-07-11 10:33:23 -07:00
Kubernetes Prow Robot
86038ae590
Merge pull request #116846 from moshe010/e2e--node-pod-resources
...
kubelet pod-resources: add e2e for KubeletPodResourcesGet feature
2023-07-11 04:53:24 -07:00
Gunju Kim
8fb5b6eb4c
node-e2e: Add container lifecycle e2e tests for preStop hook
...
This ensures that the container's pre-stop hook is invoked if the
startup or liveness probe fails.
2023-07-10 08:55:48 +09:00
Kubernetes Prow Robot
0e14098333
Merge pull request #116429 from SergeyKanzhelev/sidecar
...
Add SidecarContainers feature
2023-07-07 17:39:03 -07:00
Gunju Kim
03c2217687
Sidecar: Add e2e tests
...
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com >
2023-07-08 07:26:12 +09:00
Davanum Srinivas
10dc1ca084
Skip GracefulNodeShutdown on older systemd versions
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-07-07 16:08:42 -04:00
Kubernetes Prow Robot
ddb2013363
Merge pull request #119103 from pohly/e2e-unexpected-args
...
e2e: detect unexpected command line arguments
2023-07-07 04:37:04 -07:00
Kubernetes Prow Robot
d48fc2ad2d
Merge pull request #119035 from saschagrunert/critical-pod
...
Fix `should be able to create and delete a critical pod` test
2023-07-06 00:51:03 -07:00
Kubernetes Prow Robot
88e42040b1
Merge pull request #118981 from ffromani/e2e-podres-deflake
...
e2e: node: podresources: cooldown the rate limit
2023-07-05 12:00:50 -07:00
Patrick Ohly
16e9cc42c1
e2e node: remove unused test/e2e_node/gcp
...
The test package was not included anywhere and thus just dead code that doesn't
need to be maintained anymore.
2023-07-05 14:31:32 +02:00
Patrick Ohly
932d0337b8
e2e: detect unexpected command line arguments
...
Invalid flags are detected by flag parsing, but optional arguments are just
passed through to the E2E suites. None of them support any, so rejecting them
with an error message is useful because it helps catch typos (like a missing
hyphen before a flag).
2023-07-05 13:34:09 +02:00
Sascha Grunert
bcbc12cd79
Fix should be able to create and delete a critical pod test
...
The namespace the crictical pod was referring to was wrong, because it
was using the generated one instead of `kube-system`. This and the
resulting test condition is now fixed.
The test seems to run only in `ci-crio-cgroupv1-node-e2e-flaky` for now.
Closes https://github.com/kubernetes/kubernetes/issues/109296
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2023-07-03 11:15:59 +02:00
Davanum Srinivas
b01a4145b2
Install ecr-credential-provider during node e2e tests
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-06-30 09:18:44 -04:00
Kubernetes Prow Robot
3180aa4272
Merge pull request #118977 from dims/copy-container-logs-for-easier-debugging
...
Copy container logs for easier debugging
2023-06-29 12:09:43 -07:00
Davanum Srinivas
f96d83af66
Copy container logs for easier debugging
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-06-29 11:56:00 -04:00
Francesco Romani
dfc150ca18
e2e: node: podresources: cooldown the rate limit
...
We have a e2e test which want to get a rate limit error. To do so, we
sent an abnormally high amount of calls in a tight loop.
The relevant test per se is reportedly fine, but wwe need to play nicer
with *other* tests which may run just after and which need to query the API.
If the testsuite runs "too fast", it's possible an innocent test falls in the
same rate limit watch period which was saturated by the ratelimit test,
so the innocent test can still be throttled because the throttling period
is not exhausted yet, yielding false negatives, leading to flakes.
We can't reset the period for the rate limit, we just wait "long enough" to
make sure we absorb the burst and other legit queries are not rejected.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2023-06-29 17:40:36 +02:00
Davanum Srinivas
52ef833b6c
Bump cadvisor version in tests to v0.47.2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-06-29 09:58:31 -04:00
Kubernetes Prow Robot
9516a25ce4
Merge pull request #118951 from dims/drop-docker.log-and-add-cloud-init-output.log
...
Drop docker.log and add cloud init output.log
2023-06-29 03:51:47 -07:00
Davanum Srinivas
931456a142
Simplify the node name for metrics - just use localhost
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-06-28 18:21:12 -04:00
Davanum Srinivas
3e5fafd57a
Drop docker.log and add cloud-init-output.log
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-06-28 18:08:40 -04:00
Kubernetes Prow Robot
2190775b69
Merge pull request #118280 from stlaz/e2e_psa_labels
...
Set all PSa labels in tests
2023-06-28 11:14:43 -07:00
Kubernetes Prow Robot
470889278f
Merge pull request #118910 from dims/better-url-for-scraping-metrics-from-kubelet
...
Better URL for scraping metrics from kubelet in node e2e tests
2023-06-27 16:00:41 -07:00
Kubernetes Prow Robot
48a6fb0c42
Merge pull request #118909 from dims/bump-to-latest-node-problem-detector-version-with-arm64
...
Bump to latest node-problem-detector version with arm64
2023-06-27 14:58:42 -07:00
Kubernetes Prow Robot
e4b3b4f20c
Merge pull request #118904 from dims/cleanup-pods-at-the-end-in-pod-conditions-e2e-node-test
...
Cleanup pods at the end in Pod conditions e2e node test
2023-06-27 14:58:31 -07:00
Davanum Srinivas
a75b00ea39
Better URL for scraping metrics from kubelet
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-06-27 16:14:59 -04:00
Davanum Srinivas
685b0c5efa
Bump to latest node-problem-detector version with arm64
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-06-27 16:04:12 -04:00
Kubernetes Prow Robot
76b2198da1
Merge pull request #118901 from dims/set-aws-specific-credential-provider-when-running-there
...
Set AWS specific credential provider when running there
2023-06-27 08:56:51 -07:00
Davanum Srinivas
6c587b43e9
Cleanup pods at the end in Pod conditions e2e node test
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-06-27 09:36:00 -04:00