Commit Graph

17210 Commits

Author SHA1 Message Date
Caleb Woodbine
1bdb854e7e Add resource deleting if there wasn't a delete watch event found 2020-05-25 14:59:25 +12:00
Caleb Woodbine
9f0c24ddcf Fix checks, amount checking 2020-05-25 13:33:48 +12:00
Caleb Woodbine
b63b147d12 Update name, watch event occurence checking 2020-05-25 11:49:57 +12:00
Jorge Alarcon Ochoa
a069eec2bb Added cadvisor test suite to flag info message
The cadvisor test suite is not mentioned in the remote runner's
`--test-suite` flag.
This PR will mention the existence of the cadvisor test suite.
2020-05-23 19:10:32 -04:00
Kubernetes Prow Robot
f01d848c48
Merge pull request #91329 from dims/switch-kube-controller-manager-to-distroless-image
Switch kube-controller-manager to distroless image
2020-05-22 17:23:10 -07:00
Stephen Augustus
b692502a9d Update CNI to v0.8.6
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-05-22 17:48:56 -04:00
Christopher M. Luciano
2b091f60ca
ingress: Add Ingress to v1 API and update backend to defaultBackend
ingress: use new serviceBackend split

ingress: remove all v1beta1 restrictions on creation

This change removes creation and update restrictions enforced by
k8s 1.18 for not allowing resource backends.

Paths are no longer
required to be valid regex and a PathType is now user-specified
and no longer defaulted.

Also remove all TODOs in staging/net/v1 types

Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-05-22 11:57:41 -04:00
alejandrox1
ebd84a5517 Tuned npb is workload resources
Lowering the amount of cpu allocated to this workload will set the
resources allocated to be similar to the other npb and tf workload in
this tests.
This will also allow to run all three workloads in a n1-standard-12 gcp
instance - which has 16 cpus and 60 GB.

Signed-off-by: alejandrox1 <alarcj137@gmail.com>
2020-05-22 09:30:43 -04:00
Kubernetes Prow Robot
9e06faa1fb
Merge pull request #91240 from tosi3k/bump-am-version
Update kube-addon-manager to v9.1.1
2020-05-21 19:40:37 -07:00
Davanum Srinivas
b1742f19ef
Switch kube-controller-manager to distroless image
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-21 22:33:54 -04:00
Stephen Heywood
d373bef4e4 Use polling while deleting the collection of pod templates 2020-05-22 01:33:20 +00:00
Kubernetes Prow Robot
bded41a817
Merge pull request #90689 from aojea/nfsv6
add ipv6 support to the e2e nfs tests
2020-05-21 03:30:36 -07:00
Aaron Crickenberger
4857893a0c Promote preemption e2e tests to Conformance 2020-05-20 23:05:15 -07:00
Caleb Woodbine
32e0da39fc Update to use watcher 2020-05-21 15:58:55 +12:00
Kubernetes Prow Robot
d32875543b
Merge pull request #91227 from aojea/kcliwait
kubectl run test: the pod wait (some time) until attach before printing
2020-05-20 19:41:20 -07:00
Kubernetes Prow Robot
97145d685c
Merge pull request #91077 from brianpursley/kubectl-501-2
Changed kubectl config set-cluster and set-credentials to support process substitution for filenames
2020-05-20 16:45:25 -07:00
Kubernetes Prow Robot
6eefe7d7d3
Merge pull request #90552 from dims/separate-out-cri-related-code-into-self-contained-package
Separate out cri related code into self contained package
2020-05-20 16:44:46 -07:00
Kubernetes Prow Robot
57b0c310b7
Merge pull request #90390 from ii/promote-serviceaccount-resource-lifecycle-test
Promote ServiceAccount resource lifecycle test - +3 conformance coverage
2020-05-20 16:44:33 -07:00
Kubernetes Prow Robot
62a4cb930b
Merge pull request #90367 from julianvmodesto/conformance-diff-dry-run
Promote diff and dry-run to conformance
2020-05-20 16:44:19 -07:00
Caleb Woodbine
82d76e2d6d Add dynamic client resource watch function 2020-05-21 10:00:17 +12:00
Julian V. Modesto
3e93f99262 Remove deprecated --server-dry-run.
For the beta server-side dry-run feature, `kubectl apply` provided the
`--server-dry-run` flag.

As of 1.18, this flag was deprecated and marked to be removed after 1
release.
2020-05-20 16:53:53 -04:00
Davanum Srinivas
0608e8be25
update bazel BUILD files
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-20 10:57:47 -04:00
Davanum Srinivas
5692926914
Move packages for slightly better UX for consumers
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-20 10:57:46 -04:00
Antoni Zawodny
15e491eb2f Update kube-addon-manager to v9.1.1 2020-05-20 09:50:20 +02:00
Caleb Woodbine
a3248a7ba8 Add documentation; Update base from invarients 2020-05-20 16:28:01 +12:00
Stephen Heywood
758e3c76a4 Removing extra boilerplate from test 2020-05-20 01:21:04 +00:00
Stephen Heywood
7772a42114 Switch pod template to use Agnhost 2020-05-19 23:44:19 +00:00
Kubernetes Prow Robot
739a61a871
Merge pull request #91221 from gnufied/tolerate-pod-not-found
Tolerate pod not found errors in storage e2e
2020-05-19 16:32:33 -07:00
Kubernetes Prow Robot
6cf4ab3c8c
Merge pull request #91071 from alculquicondor/integration_new_node
Add test case for a pod becoming schedulable when a node is added
2020-05-19 15:22:33 -07:00
Kubernetes Prow Robot
0e8a2d2244
Merge pull request #90793 from pohly/flaky-mount-volume-calls
mock e2e test: reduce flakiness by not testing all calls
2020-05-19 15:22:19 -07:00
Julian V. Modesto
f0eb68c0cf Make client-side apply safer
- Remove the ServerDryRun field and delegate it entirely to the resource.Helper
- Use resource.Helper for deletions (as in `kubectl apply --force`)
instead of using the pruner's method that uses a dynamic client
- Reduce the resource.Helpers and times we check for server-side dry-run
in apply
2020-05-19 17:01:47 -04:00
Davanum Srinivas
fb7cb4307e
Move nfs-provisioner from quay.io/kubernetes_incubator to staging-csi
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-19 14:46:33 -04:00
Hemant Kumar
155db11b73 Do not fail test if pod is not found 2020-05-19 14:16:25 -04:00
Davanum Srinivas
5c966e3beb
Use staging-csi to work around quay.io availability
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-19 12:51:54 -04:00
Antonio Ojea
a0f0e58373 kubectl run test wait until pod terminates
the test "executing a command with run and attach without stdin"
is inherently flaky, there are several discussion but seems that
it requires changing the way the kubectl run and attach works.

The test fails if we are not able to attach before the container prints
"stdin closed", but hasn't exited yet.

Because the race seems difficult to solve, we can wait 5 seconds
 before printing to give time to kubectl to attach to the container.
2020-05-19 13:09:32 +02:00
Jefftree
c7216b9a1b Fix unmarshal for tests without behaviors 2020-05-18 23:35:25 -07:00
Jefftree
ceb67482c4 link 2 pod conformance tests with behaviors 2020-05-18 23:35:25 -07:00
Stephen Heywood
8ccf59027e Add: test to ensure that a set of pod templates can be removed by delete collection 2020-05-19 04:33:08 +00:00
Stephen Heywood
cb7a680896 Add: test to ensure that a set of events can be removed by delete collection 2020-05-18 21:49:30 +00:00
Kubernetes Prow Robot
0d4464d014
Merge pull request #91150 from brianpursley/e2e-delete-pods
Add code to delete pods at the end of e2e tests to free up capacity
2020-05-18 13:33:48 -07:00
Antoni Zawodny
6b1393a3c5 Remove unnecessary logging info from kubemark nodes annotation 2020-05-18 16:01:50 +02:00
Caleb Woodbine
fcb04acd70 Add WIP watch event tooling 2020-05-18 16:32:38 +12:00
Kubernetes Prow Robot
1911ca213f
Merge pull request #91045 from saschagrunert/port-forward-deflake
Deflake port-forward e2e test
2020-05-16 19:00:14 -07:00
Kubernetes Prow Robot
d4ce66fe0b
Merge pull request #90660 from Huang-Wei/synced-sched-err-call
Move unschedulable Pod to internal schedulingQ synchronously
2020-05-16 19:00:06 -07:00
Kubernetes Prow Robot
b170451caa
Merge pull request #90183 from dims/update-kubernetes-to-klog-v2
Update kubernetes to klog v2
2020-05-16 18:59:51 -07:00
Kubernetes Prow Robot
052f9c8e7d
Merge pull request #90861 from dims/drop-conformance-tag-for-a-hostpath-test
Remove [Conformance] from "HostPath should give a volume the correct mode" test
2020-05-16 07:36:40 -07:00
Davanum Srinivas
07d88617e5
Run hack/update-vendor.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:33 -04:00
Davanum Srinivas
442a69c3bd
switch over k/k to use klog v2
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:27 -04:00
Wei Huang
133a02540f
Move unschedulable Pod to internal schedulingQ synchronously
- use in-cache Pod instead of real-time Pod (by calling API server) to mark it as unschedulable
  in internal schedulingQ
- remove the backoff logic as now we don't call API server
- the whole logic is changed to a synchronous call
2020-05-15 19:27:28 -07:00
Brian Pursley
20642720c6 Added pod deletion utility methods and added code to delete remaining pods in some e2e tests to try to prevent exceeding node capacity 2020-05-15 21:21:37 -04:00
Brian Pursley
84d5e664af Changed kubectl config set-cluster and set-credentials to support process substitution for filenames 2020-05-15 09:22:59 -04:00
Kubernetes Prow Robot
32680e1c1e
Merge pull request #91039 from Jefftree/conformance-fix-space
remove empty line before ConformanceIt
2020-05-15 02:48:39 -07:00
Kubernetes Prow Robot
78abe8b270
Merge pull request #90978 from brianpursley/kubernetes-89259
Changed scheduler to use patch when updating pod status
2020-05-15 02:47:53 -07:00
Kubernetes Prow Robot
f12799e787
Merge pull request #90718 from fasaxc/improve-netpol-diags
Avoid early exit when collecting post-E2E failure logs.
2020-05-15 02:47:26 -07:00
Kubernetes Prow Robot
8cb57dd09a
Merge pull request #90180 from JacobTanenbaum/e2eTest-conntrack
add a test that shows the preservation UDP traffic when server pod cycles
2020-05-15 02:47:12 -07:00
Kubernetes Prow Robot
53a707daae
Merge pull request #88885 from julianvmodesto/kubectl-field-managers
Improve kubectl field manager names for clearer conflicts
2020-05-15 02:46:58 -07:00
zhouya0
bbf41448f6 Fix kubectl create secret docker-registry 2020-05-15 12:14:03 +08:00
Brian Pursley
9eb8e7a6d6 Changed scheduler to use patch when updating pod status to avoid potential conflicts 2020-05-14 15:17:53 -04:00
Kubernetes Prow Robot
5bda0c1b3b
Merge pull request #83726 from cofyc/fix56180
scheduler: Move all volume binding code into VolumeBinding plugin
2020-05-14 10:08:23 -07:00
Aldo Culquicondor
c8e2d5ba7c Add test case for a pod becoming schedulable when a node is added
We have little coverage around node addition and removal. Since distinct event handlers interact, it is important to cover this in integration tests.

Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-05-14 11:59:41 -04:00
Aldo Culquicondor
35b9ab1227 Remove unnecessary clientset arg from initPausePod
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-05-14 11:47:12 -04:00
Kubernetes Prow Robot
438debfb72
Merge pull request #91057 from ingvagabund/start-informers-outside-of-InitTestScheduler
integration: start informer and scheduler outside of InitTestScheduler
2020-05-14 06:22:22 -07:00
Kubernetes Prow Robot
9978c281ec
Merge pull request #90773 from gnufied/fix-csi-e2e-orphans
Fix CSI e2e leaving pods in terminating state
2020-05-13 22:14:21 -07:00
Kubernetes Prow Robot
9188bbbdaa
Merge pull request #90990 from hasheddan/guestbook
Retry resolving TCP address in agnhost/guestbook
2020-05-13 15:59:24 -07:00
Kubernetes Prow Robot
4339ac30a0
Merge pull request #90554 from vboulineau/vboulineau/fix_win_stats_init_containers
kubelet: fix `/stats/summary` endpoint on Windows when init-containers are present on the node
2020-05-13 15:58:51 -07:00
Jacob Tanenbaum
59082e80e3 Add a test that checks if conntrack entries are cleaned up for UDP traffic
ensure that when a pod servicing UDP traffic is deleted the conntrack entries
are cleaned up and another backend can pick up the traffic  with minimal
interruption

When using NodePort services and long running connections that on pod deletion
stale conntrack entries can halt the flow of traffic. Add a test case to check
that conntrack entries are cleaned up.
2020-05-13 16:45:58 -04:00
Julian V. Modesto
7af0011884 Promote diff and dry-run to conformance 2020-05-13 13:04:41 -04:00
Jan Chaloupka
65e9826f79 integration: start informer and scheduler outside of InitTestScheduler
In case two or more controllers share the informers created through InitTestScheduler,
it's not safe to start the informers until all controllers set their informer
indexers. Otherwise, some controller might fail to register their indexers
in time. Thus, it's responsibility of each consumer to make sure all informers
are started after all controllers had time to get initiliazed.
2020-05-13 18:19:43 +02:00
Hemant Kumar
da941d8d3e Create mock CSI driver resources in different namespace 2020-05-13 11:16:00 -04:00
Hemant Kumar
708261e06c Make AfterSuite hooks ordered
ginkgo has a weird bug that - AfterEach does not get called when
testsuite exits with certain kind of interrupt (Ctrl-C for example).
More info - https://github.com/onsi/ginkgo/issues/222

We workaround this issue in Kubernetes by adding a special hook into
AfterSuite call, but AfterSuite can not be used to peforms certain
kind of cleanup because it can race with AfterEach hook and
framework.AfterEach hook will set framework.ClientSet to nil.

This presents a problem in cleaning up CSI driver and testpods. This
PR removes cleanup of driver manifest via CleanupAction because that
is not safe and racy (such as f.ClientSet may disappear!) and makes
AfterSuite hooks run in a ordered fashion
2020-05-13 11:15:27 -04:00
Kubernetes Prow Robot
98d404d280
Merge pull request #90963 from justaugustus/kube-cross
base-images: Update to kube-cross:v1.13.9-5
2020-05-13 00:19:03 -07:00
Kubernetes Prow Robot
620b7720e6
Merge pull request #90828 from gaurav1086/fix_data_race_storage
Fix date race in storage tests
2020-05-13 00:18:40 -07:00
Sascha Grunert
c7648f5984
Deflake port-forward e2e test
We should read and verify the data before actually closing the
connection to avoid connection based-races within the test.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-05-13 08:53:31 +02:00
Kubernetes Prow Robot
07e916b05a
Merge pull request #90155 from robscott/endpointslice-test
Improving EndpointSlice tests
2020-05-12 21:00:26 -07:00
Jefftree
365f1d7d82 remove space before ConformanceIt 2020-05-12 17:55:32 -07:00
Kubernetes Prow Robot
6acceaeb2d
Merge pull request #91019 from aojea/rejected
improve error logging on e2e pod create function
2020-05-12 15:50:26 -07:00
Stephen Augustus
b5117ae8b5 base-images: Update to kube-cross:v1.13.9-5
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-05-12 18:14:33 -04:00
hasheddan
921b76ceaa
Move getting IP address into retry loop for agnhost/guestbook
Removes the fatal error from getIP and moves it to
retry loop so that application will not immediately
crash on failure.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-05-12 13:55:17 -05:00
Kubernetes Prow Robot
53ba2ce026
Merge pull request #90865 from Huang-Wei/dedicated-informfactory-node-controller
test: Use dedicated informerFactory for node lifecycle controller
2020-05-12 08:24:59 -07:00
Kubernetes Prow Robot
9fce6b7147
Merge pull request #89023 from k-toyoda-pi/e2e_pdb_remove_unnecessary_error
Remove unnecessary return value in e2e/apps/disruption
2020-05-12 08:24:36 -07:00
hasheddan
9081dfb68d
Improve error messages in agnhost/guestbook
This updates the error messages when registering a
node to be more explicit about what error occurred
and how long it will wait to retry.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-05-12 09:58:53 -05:00
Antonio Ojea
aa4df0422b
improve error logging on e2e pod create function 2020-05-12 13:41:56 +02:00
Yecheng Fu
c14b749521 scheduler/volumebinding: move all volume binding logic into VolumeBinding plugin 2020-05-12 10:13:05 +08:00
Kubernetes Prow Robot
ec0eec68b2
Merge pull request #90979 from damemi/fix-preemption-error
Add missing resource limits for e2e preemption
2020-05-11 15:23:07 -07:00
Kubernetes Prow Robot
f553458bbd
Merge pull request #90925 from gaurav1086/fix_namespace_datarace
Fix data race in namespace error handling
2020-05-11 15:22:58 -07:00
Kubernetes Prow Robot
437c2df36f
Merge pull request #90855 from wojtek-t/remove_listwatchuntil
Remove ListWatchUntil
2020-05-11 15:22:35 -07:00
Kubernetes Prow Robot
fc2c410a5a
Merge pull request #90806 from tosi3k/kubemark_node_size_objects
Add option to resize kubemark node objects size
2020-05-11 15:22:21 -07:00
hasheddan
0cacc44fc9
Retry resolving TCP address in agnhost/guestbook
Currently the guestbook application will fail if unable
to resolve TCP address on first attempt. If pod networking
is not setup when the application starts then it will be
unable to resolve, leading to frequent failures. This moves
the address resolution into the retry block so it will try
again if unsuccessful on first attempt.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-05-11 13:45:28 -05:00
Tim Allclair
029a144ae9 Remove tallclair from some OWNERS files 2020-05-11 11:44:38 -07:00
Gaurav Singh
d8a752ff72 Fix data race in namespace
Code review changes
2020-05-11 10:46:18 -04:00
wojtekt
ead12b02fe Remove ListWatchUntil 2020-05-11 16:34:18 +02:00
Mike Dame
e623cc3abf Add missing resource limits for e2e preemption 2020-05-11 10:01:57 -04:00
Gaurav Singh
93fa760c0a Code review changes 2020-05-11 08:40:27 -04:00
Kubernetes Prow Robot
7937aa60a3
Merge pull request #90687 from aojea/connt
use conntrack instead of the /proc file for the e2e test TCP CLOSE_WAIT
2020-05-10 18:57:50 -07:00
Kubernetes Prow Robot
3c159bb10f
Merge pull request #88532 from zioproto/drop-network-tier-alpha-gate
Drop the alpha gating for Network Service Tier configuration support
2020-05-10 12:13:50 -07:00
Kubernetes Prow Robot
d63d77dc4c
Merge pull request #89547 from smarterclayton/graceful
netexec: Allow graceful shutdown testing from netexec
2020-05-09 16:49:50 -07:00
Julian V. Modesto
360c348d0e Set kubectl field manager names 2020-05-09 13:24:39 -04:00
Antonio Ojea
6f9c0f9edd track debian-iptables test image version 2020-05-09 16:54:23 +02:00
Antonio Ojea
5c8b88ec08 use conntrack instead of the /proc file
use the debian-iptables image, that is the base image used for the
kube-proxy one.

It already has the conntrack command, so no need to check for it.
2020-05-09 15:22:05 +02:00
Kubernetes Prow Robot
78e3ea1f20
Merge pull request #90740 from damemi/improve-preemption-e2es
Balance node usage before creating victim pods in preemption e2e
2020-05-09 00:44:28 -07:00
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
Patrick Ohly
5aa3805a5f mock e2e test: reduce flakiness by not testing all calls
kubelet sometimes calls NodeStageVolume an NodePublishVolume too
often, which breaks this test and leads to flakiness. The test isn't
about that, so we can relax the checking and it still covers what it
was meant to cover.
2020-05-06 11:43:16 +02: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
Antonio Ojea
26a00f9032
add ipv6 support to the e2e nfs tests
nfs mount command need to use the IP enclosed with square brackets
if is an IPv6 address
2020-05-03 11:06:10 +02: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
Caleb Woodbine
bd9269f444 Fix formatting 2020-04-30 14:21:04 +12: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
Kubernetes Prow Robot
f86bf71dbe
Merge pull request #89560 from gavinfish/direct-k8s-pod
e2e/framework: remove direct imports to /pkg/api/v1/pod
2020-04-27 22:26:05 -07:00
Hemant Kumar
850da22c02 Azure - do not use 0 zone or empty string for zone when creating PVs 2020-04-27 17:14:50 -04:00
Antonio Ojea
2c2e9cdd72
Fix e2e network performance test 2020-04-27 11:57:10 +02:00
Patrick Ohly
e3d258d6ca e2e storage: wait for PV deletion also for late binding
When a test pattern or storage class uses late binding, the cleanup
code didn't know about the PV that may have been created for the PVC
since setting it up and thus then also didn't wait for PV deletion.

This is problematic for test isolation because the next test was
allowed to be started before fully cleaning up. Worse, it the driver
gets removed after the test, the volume might never get deleted.
2020-04-27 10:34:50 +02:00
Gaurav Singh
8240f21753 Convert index variable to interface{} 2020-04-26 11:10:00 -04:00
Gaurav Singh
98051aaba2 Fix race condition in logging 2020-04-25 22:01:21 -04:00
Kubernetes Prow Robot
4e45845530
Merge pull request #90095 from agadelshin/87893-ingress-egress-test
Add test for ingress/egress combination
2020-04-25 05:57:28 -07:00
Kubernetes Prow Robot
52ba6dc560
Merge pull request #89594 from wojtek-t/beta_immutable_secrets
Promote Immutable Secrets/ConfigMaps to Beta
2020-04-25 03:17:29 -07:00
Kubernetes Prow Robot
d0f10f1d4f
Merge pull request #90465 from wojtek-t/fix_loadbalancer_tets
Migrate ingress test manifests to networking API group
2020-04-24 15:32:37 -07:00
Kubernetes Prow Robot
b68bf25531
Merge pull request #90448 from soltysh/issue87851
Fix run command when waiting for pods
2020-04-24 15:32:17 -07:00
Kubernetes Prow Robot
219f062769
Merge pull request #64829 from dixudx/e2e_hostpath_type
fix bug on checking non directory HostPathType and add e2e tests for HostPathType
2020-04-24 15:31:29 -07:00
Kubernetes Prow Robot
7fdb2b16ae
Merge pull request #90468 from liggitt/fix-cache-control
Restore cache-control header filter
2020-04-24 14:01:29 -07:00
Jordan Liggitt
5efcc9e633 Restore cache-control header filter 2020-04-24 15:38:51 -04:00
wojtekt
b112393394 Migrate ingress test manifests to networking API group 2020-04-24 20:41:48 +02:00
Maciej Szulik
6f1484256d
waitForPod should use different exitCondition depending on restart policy 2020-04-24 16:30:46 +02:00
Kubernetes Prow Robot
70c18e4a15
Merge pull request #90404 from beautytiger/200423-nil-check
cleanup: delete unnacessary nil check before range
2020-04-24 04:42:06 -07:00
Kubernetes Prow Robot
f7b9960767
Merge pull request #90313 from tangcong/fix-scheduler-static-checkerr
fix e2e scheduling staticcheck error
2020-04-23 23:30:20 -07:00
Kubernetes Prow Robot
a62cfe8451
Merge pull request #75111 from tnozicka/fix-e2e-watches
Fix watches in e2e tests
2020-04-23 19:20:07 -07:00
Kubernetes Prow Robot
aef471ec3c
Merge pull request #90392 from tanjunchen/remove-direct-dependency
test/e2e_node/gpu_device_plugin_test.go:Remove direct prometheus dependencies from k/k
2020-04-23 17:20:20 -07:00
Kubernetes Prow Robot
775feed217
Merge pull request #90018 from wojtek-t/deprecate_default_conversions
Deprecate default conversions
2020-04-23 10:23:10 -07:00
Tomas Nozicka
c62db98e95 Update Bazel 2020-04-23 17:27:13 +02:00
Tomas Nozicka
d0a4c52392 Fix watches in apparmor e2e 2020-04-23 17:26:28 +02:00
Tomas Nozicka
df8994c202 Fix watches in e2e framework 2020-04-23 17:17:26 +02:00
Tomas Nozicka
c0ddbb0e97 Fix watches in init container e2e tests 2020-04-23 16:52:29 +02:00
Tomas Nozicka
2256991c93 Fix watches in StatefulSet e2e tests 2020-04-23 16:08:32 +02:00
Guangming Wang
bbd4fea21c cleanup: delete unnacessary nil check before range 2020-04-23 20:28:14 +08:00
Kubernetes Prow Robot
c12aeb2b77
Merge pull request #89753 from ii/promote-event-resource-lifecycle-test
Promote Event resource lifecycle test  +5 test endpoint coverage
2020-04-23 03:57:45 -07:00
tanjunchen
de99aaf8d2 test/e2e_node/gpu_device_plugin_test.go:Remove prometheus dependencies from k/k 2020-04-23 14:23:43 +08:00
Caleb Woodbine
e09e781a0c Promote ServiceAccount resource lifecycle test 2020-04-23 16:32:54 +12:00
Di Xu
3f5e09b6e2 add e2e tests for HostPathType and mark as slow 2020-04-23 10:52:40 +08:00
Kubernetes Prow Robot
7ad2eb04af
Merge pull request #90354 from ii/mark-replicationcontroller-resource-lifecycle-test-as-flaky
Mark ReplicationController resource lifecycle test as flaky
2020-04-22 19:22:43 -07:00
Kubernetes Prow Robot
53374fa519
Merge pull request #90343 from neolit123/1.19-remove-kubernetes-anywhere
remove kubernetes-anywhere from this repository
2020-04-22 19:22:24 -07:00
Kubernetes Prow Robot
c13a9401ca
Merge pull request #90193 from ii/create-serviceaccount-resource-lifecycle-test
Create ServiceAccount resource lifecycle test - +3 endpoint coverage
2020-04-22 19:22:00 -07:00
Kubernetes Prow Robot
43cd2ff239
Merge pull request #89549 from happinesstaker/sa-rotate
Monitoring safe rollout of time-bound service account token.
2020-04-22 17:01:58 -07:00
Jiajie Yang
ae0e52d28c Monitoring safe rollout of time-bound service account token. 2020-04-22 11:59:16 -07:00
Laszlo Janosi
af33c2f7e8 Add CreateSCTPServiceWithPort() to the framework in preparation for the coming SCTP e2e tests 2020-04-22 15:59:59 +00:00
Kubernetes Prow Robot
fc9d174102
Merge pull request #88248 from claudiubelu/tests/reduce-to-agnhost-mounttest
tests: Replaces mounttest images used with agnhost (part 4)
2020-04-22 04:53:52 -07:00
Caleb Woodbine
39e5122153 Update ReplicationController resource lifecycle test to be marked as flaky 2020-04-22 15:07:10 +12:00
Caleb Woodbine
9a53b0ec57 Add check for error in listing ServiceAccounts 2020-04-22 12:08:00 +12:00
Caleb Woodbine
c6e1701bda Add checks to watches; Update to patch different subproperty 2020-04-22 10:45:17 +12:00
Lubomir I. Ivanov
820c87c069 remove kubernetes-anywhere from this repository
The project has been deprecated since Dec 2018 and is unused.

Cleanup in:
- /test/e2e/framework/
- /cluster/
2020-04-21 22:52:51 +03:00
Kubernetes Prow Robot
66fd1335fa
Merge pull request #90305 from wojtek-t/enable_couple_large_cluster_tests
Enable couple networking tests for large clusters
2020-04-21 07:52:56 -07:00
Jason Simmons
d0f19815d2 Updates agnhost image VERSION and README 2020-04-21 09:43:58 -04:00
Kubernetes Prow Robot
72cdc8c211
Merge pull request #89256 from yue9944882/integration-test-flowcontrol
Priority-level isolation integration test
2020-04-21 05:42:55 -07:00
Kubernetes Prow Robot
07179d0207
Merge pull request #87998 from msau42/e2e-reattach-stress
Add stress test to repeatedly restart Pods with PVCs in parallel
2020-04-21 03:04:57 -07:00
Kubernetes Prow Robot
4362bf7919
Merge pull request #89505 from knight42/fix/kubectl-explain-crd
fix(kubectl): explain crds whose resource name is the same as builtin objects
2020-04-21 01:44:56 -07:00
toyoda
47e4f51da2 Add checking error for disruption e2e test 2020-04-21 09:52:49 +09:00
Kubernetes Prow Robot
d6f44b0ea9
Merge pull request #90278 from aojea/closewait
Deflake TCP Closewait e2e test
2020-04-20 17:44:56 -07:00
tangcong
eab22fd805 fix e2e scheduling staticcheck error 2020-04-21 07:11:26 +08:00
Kubernetes Prow Robot
d92fdebd85
Merge pull request #89897 from giuseppe/test-e2e-node
kubelet: fix e2e-node cgroups test on cgroup v2
2020-04-20 15:54:12 -07:00
Kubernetes Prow Robot
0e072a8214
Merge pull request #85478 from bart0sh/PR0084-e2e_node-inspect-inspect-image-before-pulling
e2e_node: check if image exists locally before pulling
2020-04-20 14:05:40 -07:00
Kubernetes Prow Robot
be9427e253
Merge pull request #90252 from dims/no-need-to-vendor-bazel-gazelle/buildtools/kazel
Separate go module for tools to avoid polluting root go.mod
2020-04-20 12:19:41 -07:00
wojtekt
da1ed9d1ed Enable couple networking tests for large clusters 2020-04-20 21:11:34 +02:00
Kubernetes Prow Robot
2c80046ed1
Merge pull request #90286 from smarterclayton/preempt
test: PriorityClass resource quota tests should not cause preemption
2020-04-20 10:42:04 -07:00
wojtekt
0360e4d1a1 Promote Immutable Secrets/ConfigMaps feature to Beta 2020-04-20 18:04:43 +02:00
Kubernetes Prow Robot
7f7378eddf
Merge pull request #89854 from SataQiu/fix-session-affinity-test-20200404
Increase the session affinity timeout to ensure that the test passes
2020-04-20 02:49:39 -07:00
Ed Bartosh
88478f3749 e2e_node: check if image exists locally before pulling
'docker pull' is a time consuming operation. It makes sense to check
if image exists locally before pulling it from a registry.

Checked if image exists by running 'docker inspect'. Only pull if
image doesn't exist.
2020-04-20 12:27:29 +03:00
Antonio Ojea
e3df13439a fix service allocation concurrency issues
The service allocator is used to allocate ip addresses for the
Service IP allocator and NodePorts for the Service NodePort
allocator. It uses a bitmap backed by etcd to store the allocation
and tries to allocate the resources directly from the local memory
instead from etcd, that can cause issues in environment with
high concurrency.

It may happen, in deployments with multiple apiservers, that the
resource allocation information is out of sync, this is more
sensible with NodePorts, per example:

1. apiserver A create a service with NodePort X
2. apiserver B deletes the service
3. apiserver A creates the service again

If the allocation data of apiserver A wasn't refreshed with the
deletion of apiserver B, apiserver A fails the allocation because
the data is out of sync. The Repair loops solve the problem later,
but there are some use cases that require to improve the concurrency
in the allocation logic.

We can try to not do the Allocation and Release operations locally,
and try instead to check if the local data is up to date with etcd,
and operate over the most recent version of the data.
2020-04-20 09:50:00 +02:00
Kubernetes Prow Robot
1aa2c99a27
Merge pull request #90254 from smarterclayton/flaky_test
test: IngressClass exclusion test races with admission cache
2020-04-19 21:11:40 -07:00
SataQiu
fc3d282b10 kube-proxy: increase the session affinity timeout to ensure that the test passes in ipvs mode
Signed-off-by: SataQiu <1527062125@qq.com>
2020-04-20 10:22:30 +08:00
Davanum Srinivas
12146cb4df
Do not include bazel related deps in root go.mod
- add ./hack/tools/go.mod, this makes ./hack/tools a distinct module
- hack/tools/tools.go undescore imports bazel related tools, over time we
can add others.
- hack/*.sh scripts will cd to hack/tools and go install tools from there

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-19 22:01:50 -04:00
Clayton Coleman
1e4e0759e8
test: PriorityClass resource quota tests should not cause preemption
During a parallel test run these tests were observed to cause a
preemption of another test:

```
Apr 19 16:59:06.749: INFO: At 2020-04-19 16:58:52 +0000 UTC - event for pod-init-b6fbd440-dbc2-454a-b31a-ce44266298d1: {default-scheduler } Scheduled: Successfully assigned e2e-init-container-7691/pod-init-b6fbd440-dbc2-454a-b31a-ce44266298d1 to ip-10-0-148-234.us-west-2.compute.internal
Apr 19 16:59:06.750: INFO: At 2020-04-19 16:58:54 +0000 UTC - event for pod-init-b6fbd440-dbc2-454a-b31a-ce44266298d1: {default-scheduler } Preempted: Preempted by e2e-resourcequota-priorityclass-8850/testpod-pclass9 on node ip-10-0-148-234.us-west-2.compute.internal
```

These tests have no need to actually land on a node to validate resource quota and so we can set an impossible scheduling condition. Hopefully we don't have tests that too broadly check impossible scheduling conditions.
2020-04-19 15:08:00 -04:00
Clayton Coleman
77973b5279
test: IngressClass exclusion test races with admission cache
The admission cache may take longer to see both ingress classes
than it takes to create the ingress. We must loop until we see
the appropriate error, cleaning up after ourselves as we go.
2020-04-19 10:28:46 -04:00
Antonio Ojea
6efe6e1284 e2e TCP Close-wait don't set conn deadline
Don't set a connection deadline for reading, because the read operation will
fail if no data is reaceived after the deadline, and will not keep the
connection in the close_wait status.
2020-04-19 13:52:49 +02:00
Antonio Ojea
4b423ad073 e2e kube-proxy don't delete inmediatly 2020-04-19 13:37:34 +02:00
Antonio Ojea
638e077b4b e2e kube_proxy pull only if not available 2020-04-19 13:11:31 +02:00
Kubernetes Prow Robot
e95106106b
Merge pull request #90243 from soltysh/issue90074
Revert "stop defaulting kubeconfig to http://localhost:8080"
2020-04-18 23:07:36 -07:00
Kubernetes Prow Robot
640b3c0582
Merge pull request #89916 from tanjunchen/update-20200407
test/e2e/autoscaling: refactor installNVIDIADriversDaemonSet()
2020-04-17 14:43:36 -07:00
yue9944882
df5dfb46b7 assert shared concurrency 2020-04-18 01:15:54 +08:00
Kubernetes Prow Robot
87eb688ec9
Merge pull request #90234 from jsafrane/remove-prestop-hook
Sync csi-hostpath manifests
2020-04-17 07:41:06 -07:00
Maciej Szulik
a871738c86
Revert "stop defaulting kubeconfig to http://localhost:8080"
This reverts commit b19ad9e7a7.
2020-04-17 16:37:15 +02:00
Kubernetes Prow Robot
72fb952dd6
Merge pull request #89915 from YuikoTakada/move_e2e_framework_WaitForService
Move WaitForService() into e2eservice
2020-04-17 04:49:07 -07:00
Jan Safranek
4bcb3cd34e Sync csi-hostpath manifests
Copy csi-hostpath driver manifests from
kubernetes-csi/csi-driver-host-path. It bumps version of all images to the
release shipped along Kubernetes 1.18.
2020-04-17 09:49:24 +02:00
Kubernetes Prow Robot
7c53c1eb91
Merge pull request #89819 from pohly/enhance-podlogs-master
tests: enhance podlogs
2020-04-16 22:19:07 -07:00
Kubernetes Prow Robot
ae8d30631d
Merge pull request #90214 from pohly/stop-pod-master
storage tests: really wait for pod to disappear
2020-04-16 20:49:07 -07:00
Yuiko Mori
9c87deb487 Move WaitForService() into e2eservice 2020-04-17 00:11:13 +00:00
Michelle Au
6596e20b18 Make stress test parameters configurable
Change-Id: Ia062f3433b6043825a51a54c7c07eb4cdf809631
2020-04-16 14:18:21 -07:00
Kubernetes Prow Robot
aa0665dfee
Merge pull request #90147 from gnufied/use-random-node-zone-for-inline-e2e
Use random zone for inline volume e2e tests
2020-04-16 13:59:08 -07:00
Patrick Ohly
0cdd5365a1 storage tests: really wait for pod to disappear
As seen in one case (https://github.com/intel/pmem-csi/issues/587), a
pod can reach the "not running" state although its ephemeral volumes
are still being torn down by kubelet and the CSI driver. What happens
then is that the test returns too early and even deleting the
namespace and thus the pod succeeds before the NodeVolumeUnpublish
really finishes.

To avoid this, StopPod now waits for the pod to really disappear.
2020-04-16 21:10:56 +02:00
Jason Simmons
c56d8df5e3 Adds HTTPS logic to agnhost netexec
The agnhost image used for testing has a `netexec` path which supports
two new flags, `--tls-cert-file` and `--tls-private-key-file`. If the
former is provided, the HTTP server will be upgraded to HTTPS, using the
certificate (and private key) provided.

By default, there are keys already mounted into the container at
`/localhost.crt` and `/localhost.key`, which contain PEM-encoded TLS
certs with IP SANs for `127.0.0.1` and `[::1]`.
2020-04-16 11:42:37 -04:00
Kubernetes Prow Robot
b0806d0c02
Merge pull request #90165 from ScrapCodes/fix_flake_run_apply
Fixed flaky test by changing get_object_assert -> wait_object_assert.
2020-04-16 08:38:59 -07:00
Kubernetes Prow Robot
da5e6ad347
Merge pull request #90052 from tosi3k/reenable-ilb-test
Remove the 'DisabledForLargeClusters' tag from ILB correctness test
2020-04-16 02:14:45 -07:00
Caleb Woodbine
e31baf82da Fix build 2020-04-16 17:52:10 +12:00
Caleb Woodbine
23d4367cff Add ServiceAccount resource lifecycle test 2020-04-16 16:34:59 +12:00
Prashant Sharma
5a765b1e15 Changed get_object_assert -> wait_object_assert, to fix the flaky test. 2020-04-16 10:01:18 +05:30
tanjunchen
2e8e029737 test/e2e/autoscaling: refactor installNVIDIADriversDaemonSet() 2020-04-16 11:36:56 +08:00
Kubernetes Prow Robot
51d41dfdb1
Merge pull request #89542 from julianvmodesto/diff-dry-run-conformance
Add kubectl diff and server-side dry-run to e2e tests
2020-04-15 19:50:45 -07:00
Michelle Au
e132b77ae4 Add stress test to repeatedly restart Pods with PVCs in parallel
Change-Id: I499571cc86b1058d0e16d79e5e998d1dedfd9a4a
2020-04-15 18:10:35 -07:00
Kubernetes Prow Robot
b35fdbc037
Merge pull request #89904 from alculquicondor/raw-extension-plugin-args
Use RawExtension and Object for external and internal, respectively, scheduling plugin args
2020-04-15 15:22:59 -07:00
Kubernetes Prow Robot
b7a6d53f5e
Merge pull request #88924 from dims/add-support-for-listing-conformance-tests-in-e2e.test
Add support for listing conformance tests in e2e.test
2020-04-15 13:14:45 -07:00
Kubernetes Prow Robot
413c81a793
Merge pull request #90171 from kubernetes/revert-89421-disabled_for_large_cluster
Revert "Remove the 'DisabledForLargeClusters' tags from LB network tests."
2020-04-15 11:36:50 -07:00
Kubernetes Prow Robot
5ccc6e0142
Merge pull request #90166 from claudiubelu/test-images/owner-files-part-2
test images: Adds OWNERS files for images (part 2)
2020-04-15 11:36:42 -07:00
Kubernetes Prow Robot
a06d735829
Merge pull request #89152 from claudiubelu/image-promoter/reenable-windows
Image promoter: Reenable Windows test image building
2020-04-15 11:35:46 -07:00
Rob Scott
c0f58ba23a
Improving EndpointSlice tests
This adds 2 new tests covering EndpointSlices, including new coverage of
the self referential Endpoints and EndpointSlices that need to be
created by the API Server and the lifecycle of EndpointSlices from
creation to deletion. This also removes the [feature] indicator from the
name to ensure that this test will run more often now that it is enabled
by default.
2020-04-15 10:21:00 -07:00
Kubernetes Prow Robot
4cf56b0996
Merge pull request #88114 from pohly/storage-capacity-tests
storage capacity tests
2020-04-15 07:02:02 -07:00
Wojciech Tyczynski
5dca58d852
Revert "Remove the 'DisabledForLargeClusters' tags from LB network tests." 2020-04-15 13:45:42 +02:00
Artur Gadelshin
bf30bdddb1 add error check for network policy test 2020-04-15 11:47:02 +02:00
Hemant Kumar
7d6712632c Use random zone for inline volume e2e tests 2020-04-14 23:37:21 -04:00
tanjunchen
87f2ef51f4 test/e2e/framework:remove direct k8s.io/kubernetes depedencies 2020-04-15 09:39:22 +08:00
Kubernetes Prow Robot
d0183703cb
Merge pull request #90059 from ahg-g/ahg-nodeinfo2
Cleanup obsolete NodeInfo methods
2020-04-14 17:32:04 -07:00
Kubernetes Prow Robot
548124828c
Merge pull request #90113 from claudiubelu/windows-tests/gmsa-nanoserver
Windows tests: Makes gMSA test more nanoserver friendly
2020-04-14 12:34:26 -07:00
Kubernetes Prow Robot
ea2d784545
Merge pull request #89895 from jingyih/update_etcd_server_3p4p7
Update default etcd server to 3.4.7 in k8s v1.19
2020-04-14 12:34:06 -07:00
Aldo Culquicondor
ce05382b58 Use RawExtension and Object for external and internal scheduling plugin args, respectively
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-14 13:44:42 -04:00
Claudiu Belu
2321378fe5 test images: Adds OWNERS files for images (part 3)
Adds reviewers to the OWNERS files in the kubernetes/test/images folder.
The reviewers are added automatically, based on their contributions on
an image (>= 20% code churn).

Note that the code churn is taken into account for authors, and not committers.

Adds OWNERS files for: cuda-vector-add, nonewprivs, pets, redis, volume.
2020-04-14 05:26:22 -07:00
Claudiu Belu
2b5fb5366f test images: Adds OWNERS files for images (part 2)
Adds reviewers to the OWNERS files in the kubernetes/test/images folder.
The reviewers are added automatically, based on their contributions on
an image (>= 20% code churn).

Note that the code churn is taken into account for authors, and not committers.

Adds ONWERS files for: apparmor-loader, echoserver, jessie-dnsutils, metadata-concealment,
sample-apiserver.
2020-04-14 05:18:34 -07:00
Claudiu Belu
94ffe582e9 Image promoter: Reenable Windows test image building
The build times are a bit high for the image builder (~50 minutes), and it will a bit more
when Windows support will be added to the other test images. This commit changes the
machineType to N1_HIGHCPU_8.

Reenables Windows test image building. Added DOCKER_CERT_BASE_PATH (default value: $HOME),
which will contain the path where the certificates needed for Remote Docker Connection can
be found.

If a REMOTE_DOCKER_URL was not set for a particular OS version, exclude that image from the
manifest list. This fixes an issue where, if REMOTE_DOCKER_URL was not set for Windows Server 1909,
the Windows were completely excluded from the manifest list, including for Windows Server 1809
and 1903 which could have been built and pushed.

Sets "test-webserver" as the default CMD for kitten and nautilus. Since they are now based on
agnhost, they should be set to run test-webserver to maintain previous behaviour.

Bumps the agnhost version to 2.13, as 2.12 has already been promoted. 2.13 will contain
Windows support.

Adds Windows support for the kitten and nautilus images, so they can promoted together
with agnhost (they were not previously promoted).

Adds OWNERS files to: agnhost, busybox, kitten, nautilus.
2020-04-14 05:12:46 -07:00
Patrick Ohly
2ae6cf5984 mock tests: per-test timeout for ResourceExhausted
The timeout for the two loops inside the test itself are now bounded
by an upper limit for the duration of the entire test instead of
having their own, rather arbitrary timeouts.
2020-04-14 09:11:42 +02:00
tanjunchen
f76da50c7d test/e2e/framework/util.go:move DsFromManifest to test/e2e/framework/manifest , and rename it to DaemonSetFromURL 2020-04-14 09:54:41 +08:00
jingyih
394df132bd Update default etcd server to 3.4.7 2020-04-13 14:37:56 -07:00
Kubernetes Prow Robot
c894c7b121
Merge pull request #88393 from abhiraut/e2e-exc-multiple
Add e2e test for stacked NetworkPolicies with overlapping CIDR
2020-04-13 13:37:48 -07:00
Claudiu Belu
335dc6e2ee Windows tests: Makes gMSA test more nanoserver friendly
Nanoserver does not have powershell. This commit will replace the powershell
command with its cmd equivalent.
2020-04-13 08:05:16 -07:00
yue9944882
875407a450 add flowcontrol integration test to import whitelist 2020-04-13 22:33:08 +08:00
yue9944882
30bc0fce48 integration test for priority-level isolation 2020-04-13 22:33:07 +08:00
Artur Gadelshin
4164b5c892 Add egress check to deny-all policy 2020-04-13 09:40:49 +02:00
toyoda
64fee7d58b Remove unnecessary return value in e2e/apps/disruption 2020-04-13 15:04:00 +09:00
Kubernetes Prow Robot
b17ddac4df
Merge pull request #78944 from avorima/golint_fix_job
Fix golint errors in pkg/controller/job
2020-04-12 21:57:47 -07:00
Kubernetes Prow Robot
6239abe698
Merge pull request #89225 from andrewsykim/apparmor-api
move apparmor annotation constants to k8s.io/api/core/v1
2020-04-12 19:11:50 -07:00
Abdullah Gharaibeh
bed9b2f23b Cleanup obsolete NodeInfo methods 2020-04-12 18:13:46 -04:00
Artur Gadelshin
875f80e3a3 Add test for ingress/egress combination 2020-04-12 23:36:16 +02:00
Kubernetes Prow Robot
ee6b88ddf9
Merge pull request #90000 from SataQiu/staging-scheduler-20200409
scheduler: remove direct import to pkg/master/ports
2020-04-11 10:46:01 -07:00
Kubernetes Prow Robot
4bba193bea
Merge pull request #89666 from julianvmodesto/kubectl-scale-dry-run
Support kubectl scale --dry-run=server|client
2020-04-11 10:45:47 -07:00
SataQiu
41d3e44a2f scheduler: remove direct import to pkg/master/ports
Signed-off-by: SataQiu <1527062125@qq.com>
2020-04-11 13:56:53 +08:00
Kubernetes Prow Robot
f13051c28c
Merge pull request #90060 from oomichi/WaitForAvailableEndpoint
Make WaitForAvailableEndpoint() local
2020-04-10 22:05:47 -07:00
gavinfish
bc0cfd273e e2e/framework: remove direct imports to /pkg/api/v1/pod 2020-04-11 11:12:36 +08:00
Kubernetes Prow Robot
92356963fd
Merge pull request #90035 from alejandrox1/mv-manifests-to-framework
Moved e2e/manifests to e2e test framework
2020-04-10 14:40:01 -07:00
Kubernetes Prow Robot
1c01efe10f
Merge pull request #89945 from k-toyoda-pi/add_error_check_e2e_disruption
Add error check for marshaling json in e2e/apps/disruption
2020-04-10 12:26:01 -07:00
Kubernetes Prow Robot
81d2707797
Merge pull request #89889 from tanjunchen/move-func-20200406
move function RemoveTaintOffNode in test/e2e/framework/util.go  to subpackage node
2020-04-10 12:25:48 -07:00
Kenichi Omichi
76833e2c37 Make WaitForAvailableEndpoint() local
WaitForAvailableEndpoint() is only used in e2eservice.
So this makes the function() local clearly.
2020-04-10 18:08:13 +00:00
wojtekt
f624314f91 Fix multiple conversion tests 2020-04-10 17:03:35 +02:00
Antoni Zawodny
4030da9e34 Remove the 'DisabledForLargeClusters' tag from ILB correctness test 2020-04-10 13:55:15 +02:00
Kubernetes Prow Robot
157b2aa820
Merge pull request #89918 from tanjunchen/improve-code
test/e2e/scheduling : improve code
2020-04-10 02:17:46 -07:00
alejandrox1
bf984efcc7 Moved e2e/manifests to e2e test framework
The functionality included in the e2e/manifests is useful for writing
e2e tests and will be a good addition to the test framework as a
sub-package.

Signed-off-by: alejandrox1 <alarcj137@gmail.com>
2020-04-09 20:48:52 -04:00
Kubernetes Prow Robot
0c9245a29f
Merge pull request #89974 from ahg-g/ahg-info
scheduler's NodeInfo tracks PodInfos instead of Pods
2020-04-09 09:19:58 -07:00
Kubernetes Prow Robot
897c10e7b2
Merge pull request #89551 from zlabjp/restore-kubectl-prune-multiple-namespaces
Restore the ability to `kubectl apply --prune` without -n flag
2020-04-09 07:49:43 -07:00
Giuseppe Scrivano
43c56eb403
e2e_node: adapt tests to cgroup v2
and fix node_container_manager_test to run with the systemd cgroup
manager.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-09 16:18:05 +02:00
Kubernetes Prow Robot
1634d9c120
Merge pull request #89982 from neolit123/1.19-fix-kubeadm-integration-tests
cleanup the kubeadm integration tests and related scripts
2020-04-09 04:55:44 -07:00
knight42
397f107a08
fix(kubectl): explain crds with the same resource name with builtin objects 2020-04-09 16:44:17 +08:00
Tatsuhiro Tsujikawa
7af3b01f24 Restore the ability to kubectl apply --prune without -n flag
Before https://github.com/kubernetes/kubernetes/pull/83084, `kubectl
apply --prune` can prune resources in all namespaces specified in
config files.  After that PR got merged, only a single namespace is
considered for pruning.  It is OK if namespace is explicitly specified
by --namespace option, but what the PR does is use the default
namespace (or from kubeconfig) if not overridden by command line flag.
That breaks the existing usage of `kubectl apply --prune` without
--namespace option.  If --namespace is not used, there is no error,
and no one notices this issue unless they actually check that pruning
happens.  This issue also prevents resources in multiple namespaces in
config file from being pruned.

kubectl 1.16 does not have this bug.  Let's see the difference between
kubectl 1.16 and kubectl 1.17.  Suppose the following config file:

```yaml
apiVersion: v1
kind: ConfigMap
metadata:
  creationTimestamp: null
  name: foo
  namespace: a
  labels:
    pl: foo
data:
  foo: bar
---
apiVersion: v1
kind: ConfigMap
metadata:
  creationTimestamp: null
  name: bar
  namespace: a
  labels:
    pl: foo
data:
  foo: bar
```

Apply it with `kubectl apply -f file`.  Then comment out ConfigMap foo
in this file.  kubectl 1.16 prunes ConfigMap foo with the following
command:

$ kubectl-1.16 apply -f file -l pl=foo --prune
configmap/bar configured
configmap/foo pruned

But kubectl 1.17 does not prune ConfigMap foo with the same command:

$ kubectl-1.17 apply -f file -l pl=foo --prune
configmap/bar configured

With this patch, kubectl once again can prune the resource as before.
2020-04-09 02:54:10 +00:00
Kubernetes Prow Robot
4bdb72ed11
Merge pull request #89113 from claudiubelu/test-images/fixes-and-cleanups
test images: Adds various fixes and cleanups to the image building process
2020-04-08 18:19:44 -07:00
Abdullah Gharaibeh
b8ddd00312 scheduler's NodeInfo tracks PodInfos instead of Pods 2020-04-08 17:53:20 -04:00
Lubomir I. Ivanov
9bbd321fec remove /cluster/kubeadm.sh and /test/cmd/kubeadm.sh
/cluster/kubeadm.sh is used to find the kubeadm binary.
This file is legacy and is removed.

Remove /test/cmd/kubeadm.sh. This file contains a function that is used
to build kubeadm and invoke "make test". Move the function contents
to hack/make-rules/test-cmd.cmd.

Stop sourcing /test/cmd/kubeadm.sh in /test/cmd/legacy-script.sh.

Also remove the --kubeadm-path invocation as this can be handled
with an env. variable directly.
2020-04-09 00:47:15 +03:00
tanjunchen
e358e75681 test/e2e/scheduling:improve code 2020-04-08 18:03:15 +08:00
tanjunchen
bf170e1db1 /test/e2e/apimachinery/:fix bug 2020-04-08 17:46:01 +08:00
toyoda
effd064ef7 Add error check for marshaling json 2020-04-08 15:26:10 +09:00
tanjunchen
6532b40f21 move function RemoveTaintOffNode in test/e2e/framework/util.go to subpackage node 2020-04-08 09:59:44 +08:00
Kubernetes Prow Robot
53ffaa7175
Merge pull request #76443 from mgdevstack/promote-service-sessionaffinity
Promote e2e "verifying service's sessionAffinity for ClusterIP and NodePort services" to Conformance
2020-04-07 18:47:44 -07:00
Kubernetes Prow Robot
172553bf94
Merge pull request #89926 from wojtek-t/cleanup_default_conversions_2
Stop relying on default conversions for metav1beta1 and e2e-node tests
2020-04-07 16:46:23 -07:00