Commit Graph

16897 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
329ecaa657 Merge pull request #90898 from wojtek-t/fix_statefulset_test
Fix stateful set test flakiness
2020-05-08 18:28:28 -07:00
Kubernetes Prow Robot
13010d199c Merge pull request #90878 from saikat-royc/snapshotter-provisioner
Pickup Snapshot Provisioner from the snapshot class "driver" info.
2020-05-08 13:43:51 -07:00
Mike Dame
49464d9ec3 Balance node usage before creating victim pods in preemption e2e 2020-05-08 15:53:38 -04:00
Gaurav Singh
af74fbabf4 Remove unused err variable 2020-05-08 14:20:35 -04:00
Kubernetes Prow Robot
5983660ed7 Merge pull request #90543 from giuseppe/fix-tasksaccounting-systemd
test, e2e_node: drop superfluous systemd properties
2020-05-08 10:57:43 -07:00
wojtekt
238dde4bdb Fix statefulset test flakiness 2020-05-08 17:23:03 +02:00
Kubernetes Prow Robot
db9b0b0c0e Merge pull request #90827 from gaurav1086/apimachinery_fix_race_condition
Fix date race in Apimachinery test
2020-05-08 05:23:56 -07:00
Antoni Zawodny
a303346dcc Add option to resize kubemark node objects size 2020-05-08 13:06:49 +02:00
Saikat Roychowdhury
dcfaaefc60 Pickup Snapshot Provisioner from the snapshot class "driver" info.
When using FromFile or FromExisitingClass options, snapshot provisioner
should be picked up from the "driver" tag of VolumeSnapshotClass object.
2020-05-08 05:45:36 +00:00
Davanum Srinivas
b64e904ca8 Drop conformance for a HostPath test
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-07 22:40:00 -04:00
Wei Huang
fc11871c61 test: Use dedicated informerFactory for node lifecycle controller 2020-05-07 15:01:55 -07:00
Kubernetes Prow Robot
c5be566b14 Merge pull request #90707 from jherrera123/fix-issue-88132
Make flexvolume e2e tests runnable again.
2020-05-07 07:35:15 -07:00
Clayton Coleman
3c9959a5d4 netexec: Allow graceful shutdown testing from netexec
The current /exit method is not sufficient to test graceful shutdown
behaviors within Kube that allow services to remain available during
rolling restarts. Add support for `wait=DURATION` and
`timeout=DURATION` to the exit handler and wire that to the Go http
server's graceful termination.

With these methods netexec can be used in a pod to simulate graceful
shutdown by adding a preStop handler that hits the exit endpoint with
a timeout and wait period.
2020-05-07 09:18:27 -04:00
Kubernetes Prow Robot
7f78048594 Merge pull request #90781 from msau42/increase-timeout
Increase timeout waiting for driver to start on nodes
2020-05-06 22:23:08 -07:00
Gaurav Singh
37458b350e Fix date race in storage 2020-05-06 22:57:08 -04:00
Gaurav Singh
254a21b66e Apimachinery test: Fix date race 2020-05-06 22:50:00 -04:00
Kubernetes Prow Robot
b144eec878 Merge pull request #90778 from msau42/update-mock
Update sidecars for csi mock driver
2020-05-06 17:57:08 -07:00
Kubernetes Prow Robot
3416442e4b Merge pull request #90644 from tanjunchen/remove-controller-dependency
test/e2e/framework:remove the direct dependency for k8s.io/kubernetes/pkg
2020-05-06 11:47:12 -07:00
Kubernetes Prow Robot
0a6c826d3e Merge pull request #90715 from jsafrane/gluster-ignore-notfound
Ignore NotFound error when cleaning up Gluster tests
2020-05-06 05:25:09 -07:00
Michelle Au
fc08f74157 Increase timeout waiting for driver to start on nodes to reduce test flakiness
Change-Id: Id553943e4473b387bf0ae14a18a90cb3a1bcd5c1
2020-05-05 18:10:10 -07:00
Kubernetes Prow Robot
8e3766f2a8 Merge pull request #90215 from jasimmons/pr_agnhost_netexec_http
Adds HTTPS logic to agnhost netexec
2020-05-05 18:01:09 -07:00
Michelle Au
b34ad7e8ad Update sidecars for csi mock driver
Change-Id: Ica8ca20404fd15dcfdbb912602934a5b9f24e4c6
2020-05-05 16:21:19 -07:00
Shihang Zhang
3db7275b54 set proper file permission for projected service account volume 2020-05-04 18:25:23 -07:00
Kubernetes Prow Robot
fbacb6e264 Merge pull request #90335 from pohly/cleanup-late-binding
e2e storage: wait for PV deletion also for late binding
2020-05-04 18:05:07 -07:00
Kubernetes Prow Robot
03a927e756 Merge pull request #90535 from gnufied/azure-zone-e2e
Azure - fix create azure disk PV in regions that don't have zones
2020-05-04 13:46:27 -07:00
Kubernetes Prow Robot
dca3e3f6ed Merge pull request #90486 from aojea/iperf
Fix e2e network performance test
2020-05-04 08:10:26 -07:00
Shaun Crampton
73fe9c9915 Avoid early exit when collecting post-E2E failure logs.
collectPodsAndNetworkPolicies() is called to collect diagnostics
after a failure.  Previously, if it encountered a failure in getting
the logs it would call Failf(), discarding the rest of the diagnostics
immediately.
2020-05-04 14:32:04 +01:00
Vincent Boulineau
3bff11244b kubelet: fix /stats/summary endpoint on Windows when init-containers are present on the node
Following changes in #87730, Kubelet is directly hcsshim to gather stats.
However, unlike `docker stats` API that was used before, hcsshim does not
keep information about exited containers.

When the Kubelet lists containers (`docker_container.go:ListContainers()`),
it sets `All: true`, retrieving non-running containers.

When docker stats is called with such container id, it'll return a valid JSON
with all values set to 0. The non-running containers are filtered later on in the process.

When the hcsshim is called with such container id, it'll return an error, effectively
stopping the stats retrieval for all containers.
2020-05-04 14:42:02 +02:00
Jan Safranek
de09560cf0 Ignore NotFound error when cleaning up Gluster tests
"Volumes GlusterFS should be mountable" is a bit flaky in a downstream CI.

This PR make "should be mountable" test on par with the other GlusterFS
tests (in_tree.go: DeleteVolume())
2020-05-04 12:57:45 +02:00
Giuseppe Scrivano
b21b1a5436 test, e2e_node: drop superfluous systemd properties
commit 43c56eb403 introduced a change
where CPUAccounting, CPUAccounting and TasksAccounting are enabled for
the systemd service.

It causes a regression on RHEL 7.8 where systemd-run doesn't allow to
set TasksAccounting.

Since Delegate= already enables all the controllers, it is superfluous
to specify them.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-05-04 09:22:35 +02:00
Jesus Herrera
aeb654495b Fix usage of incorrect TestContext variable 2020-05-03 15:34:43 -04:00
Kubernetes Prow Robot
e01f553ddd Merge pull request #90135 from claudiubelu/tests/subpath-retry-exec
tests: Retries exec after container restart due to liveness
2020-05-02 06:02:25 -07:00
Kubernetes Prow Robot
7e627e01ef Merge pull request #90640 from gongguan/clean-port-flag
clean some dead constants
2020-05-01 00:42:22 -07:00
Kubernetes Prow Robot
6b594c25c8 Merge pull request #90615 from dims/drop-conformance-tag-for-tests-that-rely-directly-on-kubelet-logs-api
Drop conformance tag for tests that rely directly on kubelet /logs API
2020-05-01 00:42:12 -07:00
Kubernetes Prow Robot
cff910b890 Merge pull request #90509 from knight42/fix/flaky-explain-test
fix flaky conformance test
2020-05-01 00:40:18 -07:00
Kubernetes Prow Robot
a0344973a3 Merge pull request #90591 from cofyc/fix-e2e-namespace-creation
e2e: regenerate namespace name if the name is already taken
2020-04-30 15:56:13 -07:00
tanjunchen
caddb3ffd3 test/e2e/framework:remove the direct dependency for k8s.io/kubernetes/pkg 2020-04-30 23:08:33 +08:00
louisgong
9390ff35a1 clean some dead configs 2020-04-30 20:07:08 +08:00
Kubernetes Prow Robot
8876563700 Merge pull request #90360 from tnozicka/fix-client-ca-reload
Fix client-ca dynamic reload in apiserver
2020-04-30 01:10:18 -07:00
Davanum Srinivas
3292bb6145 Drop conformance tag for tests that rely directly on kubelet /logs API
In caf0d1d61874a2c8687b7deb773eca30ddaee5b6 we documented a policy to
ensure that conformance tests should not rely in existence or use of
kubelet apis directly. So based on that we should drop conformance for
the two tests here that use the "/logs" endpoint directly.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-29 20:16:51 -04:00
Hemant Kumar
9d4329f62c Check for empty zone string 2020-04-29 10:46:15 -04:00
Tomas Nozicka
b22a170d46 Fix client-ca dynamic reload in apiserver 2020-04-29 16:03:09 +02:00
tanjunchen
3b5ea194ea test/e2e/framework : move AddOrUpdateTaintOnNode to subpackage node 2020-04-29 21:29:38 +08:00
Claudiu Belu
06a1b7b491 tests: Retries exec after container restart due to liveness
The test "should not change the subpath mount on a container restart if the environment variable changes"
creates a pod with the liveness probe: cat /volume_mount/test.log. The test then
deletes that file, which causes the probe to fail and the container to be restarted.
After which it recreates the file by exec-ing into the pod, but there is a chance
that the container was not created yet, or it did not start yet.

This commit adds a few retries to the exec command.
2020-04-29 03:22:30 -07:00
Claudiu Belu
707883d52b tests: Refactors Variable Expansion tests 2020-04-29 03:21:35 -07:00
Yecheng Fu
38c5da01ad regenerate namespace name if the name is already taken 2020-04-29 17:27:52 +08:00
Aaron Crickenberger
c209fe8439 fix .import-restrictions to work with import-boss --include-test-files
this is mainly to ensure integration tests (which all end in _test)
are properly bossed around for their imports

I had to adjust some of the _test files to adhere to existing
reverse_rules specified elsewhere
2020-04-28 08:41:36 -07:00
Aaron Crickenberger
81881e4a12 prune .import-restrictions
specifically:

- cmd/kubeadm/.import-restrictions
  - we don't need to explicitly allow k8s.io repos (external or published)
- rm pkg/controller/.import-restrictions
  - pkg/client/unversioned was removed in 59042
- pkg/kubectl/.import-restrictions
  - pkg/printers is no longer used
  - pkg/api was masking all of the pkg/apis prefixes
- rm staging/src/k8s.io/code-generator/cmd/lister-gen/.import-restrictions
  - noop / empty file
- test/e2e/framework/.import-restrictions
  - we don't need to explicitly allow k8s.io repos (external or published)
2020-04-28 08:41:36 -07:00
Aaron Crickenberger
f306a0dbb4 convert .import-restrictions to yaml
yaml has comments, so we can explain why we have certain rules or
certain prefixes

for those files that weren't already commented yaml, I converted them to
yaml and took a best guess at comments based on the PRs that introduced
or updated them
2020-04-28 08:41:36 -07:00
knight42
b9fb9b82f3 test(kubectl::explain): move the flaky test out of conformance
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-04-28 21:35:30 +08:00