Commit Graph

18267 Commits

Author SHA1 Message Date
Jan Safranek
ead8707f3a Delete pre-provisioned Cinder volume by ID 2020-09-23 14:38:45 +02:00
jornshen
40474d7e2a Replace e2essh on e2e service tests
test can execute whever hosts have ssh or not

relevant case:

"should be able to up and down services"
"should implement service.kubernetes.io/service-proxy-name"
"should implement service.kubernetes.io/headless"
2020-09-23 19:21:57 +08:00
Krzysztof Siedlecki
a96cbba6fb using kubectl apply to create metric adapter 2020-09-23 11:13:32 +02:00
Kubernetes Prow Robot
d19aec8bf1
Merge pull request #92985 from serathius/summary
Move Kubelet Summary API to staging directory
2020-09-22 22:30:08 -07:00
Kubernetes Prow Robot
3783e03dc9
Merge pull request #87266 from claudiubelu/tests/agnhost-usage-refactor
tests: Refactor agnhost image pod usage
2020-09-22 19:40:08 -07:00
Kubernetes Prow Robot
61a2d0d34e
Merge pull request #94740 from tangwz/feat_use_Ticker_in_throughput
scheduler_perf: use time.Ticker in throughput measurement
2020-09-22 18:34:08 -07:00
Claudiu Belu
89eae73323 tests: Refactors agnhost image pod usage in tests
A previous commit created a few agnhost related functions that creates agnhost
pods / containers for general purposes.

Refactors tests to use those functions.
2020-09-22 13:09:49 -07:00
Antonio Ojea
f7a28c3904 Revert "Merge pull request #93837 from jayunit100/DialFromContainerB"
This reverts commit 61490bba46, reversing
changes made to 9ecab1b4b2.

Some methods from the networking e2e tools are dialing from a
containter to another container, and failing the test if there was no
connectivity. This PR modified the methods to return an error instead of
failing the test.
However, these methods were used by other tests in the framework, and
they are not checking if the method returns an error, expecting that
the method fail the test. With this change, any connectivity problem
will go unnoticed on the tests that are not asserting the error, so we
need to revert to previous state.
2020-09-22 21:53:10 +02:00
Kubernetes Prow Robot
f2fcbac083
Merge pull request #94292 from Jiawei0227/stress-test
[e2e]Fail early on stress test and improve logging
2020-09-22 12:23:11 -07:00
Kubernetes Prow Robot
3b568bbe5d
Merge pull request #94232 from swetharepakula/multiple-services
Add e2e multiple endpoint services test
2020-09-22 12:23:00 -07:00
Kubernetes Prow Robot
61490bba46
Merge pull request #93837 from jayunit100/DialFromContainerB
intra-pod test improvements for bug-triage and node-level reporting
2020-09-22 12:22:50 -07:00
Marek Siarkowicz
7d309e0104 Move Kubelet Summary API to staging repo 2020-09-22 18:23:28 +02:00
Antonio Ojea
1dbf915e7b wait until the iptables rules are programmed 2020-09-22 15:50:22 +02:00
wojtekt
a65fec2a8a Add test for listing Leases from all namespace 2020-09-22 14:27:49 +02:00
Kubernetes Prow Robot
82d924cea5
Merge pull request #94840 from dashpole/update_owners
Move dashpole to emeritus in kubelet
2020-09-21 21:23:02 -07:00
Kubernetes Prow Robot
dd466bccde
Merge pull request #94527 from brahmaroutu/mount-utils-2
Change code to use  staging/k8s.io/mount-utils
2020-09-21 17:46:47 -07:00
Kubernetes Prow Robot
cdc7a2949b
Merge pull request #94760 from harche/crio_tests_fix
Add a check for crio service before starting node e2e tests
2020-09-21 08:56:31 -07:00
Claudiu Belu
46c820e793 test images: uses nanoserver
Using Windows nanoserver container images as a base instead of the current
Windows servercore image will reduce the image size by about ~10x.

However, the nanoserver image lacks several things we need:
- netapi32.dll
- powershell
- certain powershell commands
- chocolatey cannot be used

When building the nanoserver images, we are going to use a Windows servercore helper,
in which we are going to install the necessary dependencies, and then copy them over
to our nanoserver image, including necessary DLLs.

Other notable changes include:
- switch from wget to curl (wget was a powershell alias).
- implement in code getting the DNS suffix list and DNS server list.
- reimplement getting file permissions for mounttest.
2020-09-21 04:53:44 -07:00
tangwz
518c502f54 scheduler_perf: use time.Ticker in throughput measurement 2020-09-19 09:36:17 +08:00
Kubernetes Prow Robot
b86e725694
Merge pull request #91785 from mattcary/filtereddial
Specify a DialContext in storage plugin clients
2020-09-18 15:08:27 -07:00
Harshal Patil
2ad5f014a1 Add a check for crio service before starting node e2e tests
Signed-off-by: Harshal Patil <harpatil@redhat.com>
2020-09-18 18:09:54 +05:30
Kubernetes Prow Robot
085beca6e1
Merge pull request #94854 from knight42/fix/run_kubectl_apply_tests
test(apply): deflake run_kubectl_apply_tests(round 3)
2020-09-17 19:34:45 -07:00
Matthew Cary
299a296c7a update-bazel
Change-Id: Iebc99ee13587f0cd4c43ab85c7295d458d679d1e
2020-09-18 00:44:39 +00:00
Matthew Cary
f2e23afcf1 Adds filtering of hosts to DialContexts.
The provided DialContext wraps existing clients' DialContext in an attempt to
preserve any existing timeout configuration. In some cases, we may replace
infinite timeouts with golang defaults.

- scaleio: tcp connect/keepalive values changed from 0/15 to 30/30
- storageos: no change
2020-09-18 00:07:32 +00:00
Matthew Cary
74dbf274d9 update storageos vendor for FilteredDial change 2020-09-18 00:07:32 +00:00
Kubernetes Prow Robot
ff1d6e8c1d
Merge pull request #93252 from adtac/scheduler-perf
scheduler_perf: refactor to allow arbitrary workloads
2020-09-17 14:08:46 -07:00
Adhityaa Chandrasekar
71bc9ce9c2 scheduler_perf: refactor to allow arbitrary workloads
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-09-17 19:22:20 +00:00
Stephen Augustus
00a07cfd86 build: Update to debian-iptables:buster-v1.3.0
- Uses iptables 1.8.5

Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-09-17 13:06:27 -04:00
Kubernetes Prow Robot
73b4f09dce
Merge pull request #94777 from claudiubelu/test-images/echoserver-fix
test images: Fixes echoserver s390x image
2020-09-17 08:12:45 -07:00
knight42
57619aa9d7
test(apply): deflake run_kubectl_apply_tests
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-09-17 22:51:19 +08:00
Kubernetes Prow Robot
660e1e4969
Merge pull request #94789 from zhouya0/cleanup_ns_flag
Clean up remaining ns flag
2020-09-17 07:08:45 -07:00
Kubernetes Prow Robot
3eb90c19d0
Merge pull request #94693 from smarterclayton/busybox_substitute
test/e2e: Busybox image is not being templatized
2020-09-17 05:24:58 -07:00
Rajas Kakodkar
7566da7f81 Add support for s390x
Signed-off-by: Rajas Kakodkar <rajas.kakodkar@ibm.com>
2020-09-17 02:50:20 -07:00
Claudiu Belu
d663b07f7d test images: Fixes echoserver s390x image
When trying to build the s390x image, it would fail when running the apk
command with the following error:

ERROR: Unable to open root: Bad address
ERROR: Failed to open apk database: Bad address

This can be fixed by updating the third_party/multiarch/qemu-user-static/register/register.sh
and third_party/multiarch/qemu-user-static/register/qemu-binfmt-conf.sh scripts
and their usage to a newer version [1].

Additionally, the packages nginx-mod-http-lua and nginx-mod-http-lua-upstream
cannot be found in the regular http://dl-cdn.alpinelinux.org/alpine/v3.9/main/s390x/
repository, but we can use an older one [2].

[1] https://github.com/qemu/qemu/blob/master/scripts/qemu-binfmt-conf.sh
[2] http://dl-cdn.alpinelinux.org/alpine/v3.8/main
2020-09-17 09:34:40 +00:00
Srini Brahmaroutu
fbe5daed73 Change code to use staging/k8s.io/mount-utils 2020-09-16 21:51:24 -07:00
Kubernetes Prow Robot
51184187b9
Merge pull request #94823 from zhouya0/fix_e2e_hpa_failure
Fix e2e autoscaling namespace error
2020-09-16 21:12:44 -07:00
Kubernetes Prow Robot
09b3f6dbb3
Merge pull request #93214 from trashhalo/prefer-error
test: prefer NoError/Error over Nil/NotNil
2020-09-16 15:10:45 -07:00
Clayton Coleman
aaa90476cb
test/e2e: Busybox image is not being templatized
All images used by e2e tests must use templates in order to allow
relocation. In addition this is hitting Dockerhub which will be
getting throttled soon.
2020-09-16 14:54:03 -04:00
David Ashpole
0ffc149ccc move dashpole to emeritus in kubelet 2020-09-16 11:52:35 -07:00
Kubernetes Prow Robot
338d233c50
Merge pull request #93961 from aledbf/kubectl
Refactor kubectl stdin test
2020-09-16 07:45:19 -07:00
Kubernetes Prow Robot
5d095c8a44
Merge pull request #94785 from robscott/endpointslice-e2e-gc
Increasing acceptable timeout for EndpointSlice garbage collection
2020-09-16 06:29:19 -07:00
Manuel Alejandro de Brito Fontes
ee2c4e514f
Refactor kubectl without stdin test 2020-09-16 09:31:59 -03:00
Antonio Ojea
3eeed2f7fe e2e sctp support for ipv6 2020-09-16 11:47:11 +02:00
Kubernetes Prow Robot
fcba5fe4e4
Merge pull request #94800 from mborsz/revert-92643-connDebug
Revert "conntrack e2e test debug connections"
2020-09-16 02:35:20 -07:00
Kubernetes Prow Robot
0a02eda2a2
Merge pull request #94380 from julianvmodesto/update-diff-csa-to-ssa-test
Ensure `kubectl diff --server-side` does not conflict with client-side apply
2020-09-16 01:25:20 -07:00
zhouya0
3b8603acbc Fix e2e autoscaling namespace error 2020-09-16 14:01:44 +08:00
Rob Scott
4aef5b8f4c
Increasing acceptable timeout for EndpointSlice garbage collection
This should help minimize flakiness for these tests.
2020-09-15 21:32:48 -07:00
zhouya0
59bc823547 Delete namespace parameter in create adapter 2020-09-16 11:44:30 +08:00
Kubernetes Prow Robot
3e8e0dbf4a
Merge pull request #94482 from oomichi/expect_no_error-2
Use ExpectNoError(err) for some e2e tests
2020-09-15 18:27:19 -07:00
Kubernetes Prow Robot
303810c7a2
Merge pull request #94782 from adtac/SpreadServiceOrFail
ubernetes_lite.go: remove image argument from SpreadServiceOrFail
2020-09-15 16:21:33 -07:00
Kubernetes Prow Robot
aed5ffd195
Merge pull request #94449 from justaugustus/go115
[go1.15] Update to go1.15.2
2020-09-15 15:15:19 -07:00
Kubernetes Prow Robot
e7b9453972
Merge pull request #93537 from timuthy/enhancement.move-resourcequota
Move ResourceQuota admission to k8s.io/apiserver lib
2020-09-15 12:26:58 -07:00
Kubernetes Prow Robot
396dd2555d
Merge pull request #91993 from nodo/89274-change-of-managefields-via-subresources
Do not allow manual changes to manageFields via subresources
2020-09-15 12:26:43 -07:00
Kubernetes Prow Robot
fd9828b02a
Merge pull request #92632 from RenaudWasTaken/move-podresources-api
Move external facing podresources apis to staging
2020-09-15 10:04:07 -07:00
Kubernetes Prow Robot
825cf52702
Merge pull request #94747 from pwang7/patch-1
e2e test support microk8s
2020-09-15 08:58:21 -07:00
Renaud Gaubert
4eadf40448 Run gofmt
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
2020-09-15 06:22:44 -07:00
Renaud Gaubert
ba95a8c641 run hack/update-vendor.sh
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
2020-09-15 05:13:33 -07:00
Renaud Gaubert
60304452ff Move podresources api to k8s.io/kubelet/pkg/apis
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
2020-09-15 05:13:33 -07:00
Maciej Borsz
bb6d0f9820
Revert "conntrack e2e test debug connections" 2020-09-15 12:16:56 +02:00
Harshal Patil
feea9f3708 Move the RuntimeClass tests out of node-kubelet-orphans
Signed-off-by: Harshal Patil <harpatil@redhat.com>
2020-09-15 12:51:38 +05:30
Kubernetes Prow Robot
e36e68f5f6
Merge pull request #94779 from SergeyKanzhelev/supportPidLimitsGAFollowUp
follow up cleanup after SupportPodPidLimits GA
2020-09-15 00:12:07 -07:00
wojtekt
af61e8fbdf Test watchcache being updated in multietcd setup 2020-09-15 08:19:13 +02:00
zhouya0
438ec9be49 Clean up remaining ns flag 2020-09-15 10:43:51 +08:00
Kubernetes Prow Robot
76e0e25118
Merge pull request #94609 from soltysh/kubectl_e2e
Use namespace flag passed to RunKubectl* methods
2020-09-14 19:16:06 -07:00
Adhityaa Chandrasekar
9970966844 ubernetes_lite.go: remove image argument from SpreadServiceOrFail
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-09-14 20:32:06 +00:00
Sergey Kanzhelev
2a9228eb3c follow up cleanup after SupportPodPidLimits GA 2020-09-14 18:50:24 +00:00
Kubernetes Prow Robot
54df1fdc90
Merge pull request #94090 from deads2k/podpreset
remove pod presets
2020-09-14 10:43:13 -07:00
David Eads
c0c033b12f generated 2020-09-14 09:24:41 -04:00
David Eads
c7911a384c remove pod presets 2020-09-14 09:24:40 -04:00
Stephen Augustus
fc673df1e4 test/{images,utils/image}: Add justaugustus as reviewer
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-09-14 09:11:50 -04:00
Pu Wang
40f2d1b8ff
e2e test support microk8s
microk8s run kubelet service as `snap.microk8s.daemon-kubelet.service`, instead of `kubelet.service`.
so e2e should use `systemctl list-units *kubelet* --state=running` to find out kubelet service of microk8s.
2020-09-13 16:11:50 +08:00
Kubernetes Prow Robot
66334f02e8
Merge pull request #94731 from spiffxp/rm-http-ingress-gce-tests
Remove tests related to HTTPS support for ingress-gce
2020-09-12 04:08:56 -07:00
David Ashpole
20863a8b43 add retry for creating metrics grabber to fix test flakes 2020-09-11 13:52:45 -07:00
Aaron Crickenberger
deffddbfb5 Remove tests related to HTTPS support for ingress-gce 2020-09-11 13:32:27 -07:00
Mike Danese
d182ecc1f9 output go_binary rule directly from go_binary_conditional_pure
And same for go_test_conditional_pure.

Instead of aliasing. Aliases are annoying in a number of ways. This is
specifically bugging me now because they make the action graph harder to
analyze programmatically. By using aliases here, we would need to handle
potentially aliased go_binary targets and dereference to the effective
target.

The comment references an issue with `pure = select(...)` which appears
to be resolved considering this now builds.
2020-09-11 13:19:37 -07:00
Stephen Augustus
a4a98f440c [go1.15] Update to go1.15.2
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-09-11 13:15:12 -07:00
Maciej Szulik
eec4a04c2d
Use namespace flag passed to RunKubectl* methods 2020-09-11 14:51:03 +02:00
Kubernetes Prow Robot
f5a42d69c9
Merge pull request #93475 from ravisantoshgudimetla/fix-kubelet-scc
Strip unnecessary security contexts on Windows
2020-09-10 18:14:14 -07:00
Kubernetes Prow Robot
c7d6f796fe
Merge pull request #94144 from gnufied/prevent-stale-pv-read
Reduce offline volume expansion flake
2020-09-10 14:22:31 -07:00
Kubernetes Prow Robot
ac6447c76f
Merge pull request #94318 from gnufied/fix-namespace-deletion
Prevent deletion  of namespace again
2020-09-10 10:46:03 -07:00
Kubernetes Prow Robot
6085d90897
Merge pull request #92064 from roycaihw/storage-version/serve-api
Serve storage-versions API in kube-apiserver
2020-09-10 10:45:48 -07:00
Lee Verberne
bf0a33d1de Use EphemeralContainers for storage validation
When updating ephemeral containers, convert Pod to EphemeralContainers
in storage validation. This resolves a bug where admission webhook
validation fails for ephemeral container updates because the webhook
client cannot perform the conversion.

Also enable the EphemeralContainers feature gate for the admission
control integration test, which would have caught this bug.
2020-09-10 17:24:52 +02:00
Hemant Kumar
4614817100 Increase time it takes for second pod to startup for offline resizing 2020-09-10 10:03:12 -04:00
Kubernetes Prow Robot
c3b888f647
Merge pull request #93930 from pohly/multi-volume-generic-ephemeral-test-fix
e2e storage: skip multi-volume generic ephemeral volume test
2020-09-10 02:33:45 -07:00
Kubernetes Prow Robot
88e3c95d7c
Merge pull request #94647 from pohly/ephemeral-fixes
storage E2E: explicitly wait for PV deletion after ephemeral test
2020-09-09 20:43:44 -07:00
Kubernetes Prow Robot
b56d0acaf5
Merge pull request #94653 from jsafrane/tolerate-missing-objects
Tolerate NotFound errors when deleting snapshots
2020-09-09 12:21:46 -07:00
Hemant Kumar
c4ce420667 Prevent deletion of namespace again 2020-09-09 11:22:08 -04:00
Kubernetes Prow Robot
293a53f2c0
Merge pull request #94140 from derekwaynecarr/pid-ga
Promote PidLimits to GA
2020-09-09 06:35:52 -07:00
Jan Safranek
7df879ea95 Tolerate NotFound errors when deleting snapshots 2020-09-09 14:50:11 +02:00
Patrick Ohly
16635f5902 storage E2E: explicitly wait for PV deletion after ephemeral test
Even with foreground deletion, removal of the PVs that may have been
created for a pod with generic ephemeral volumes happens
asynchronously, in the worst case after the test has completed and the
driver for the volume got removed.

Perhaps this can be fixed in Kubernetes itself, but for now we need to
deal with it as part of the test.
2020-09-09 13:14:46 +02:00
Haowei Cai
07506ab384 generated 2020-09-08 19:14:36 -07:00
Chao Xu
86dd4ce3b5 Let kube-apiserver host the storage version API
Co-authored-by: Haowei Cai <haoweic@google.com>
2020-09-08 19:14:36 -07:00
Wei Huang
d8def59871
Initialize scheduler's podInformer in sharedInformerFactory
Scheduler's specific podInfomer is now initialized inside the sahredInformerFactory.
2020-09-08 12:57:17 -07:00
Kubernetes Prow Robot
7d4fb9dc2b
Merge pull request #94614 from sttts/sttts-fix-non-unique-test-env-var
e2e: fix deployment non-unique env vars to avoid SSA error
2020-09-08 09:43:43 -07:00
Kubernetes Prow Robot
4847c69ced
Merge pull request #91442 from saschagrunert/seccomp-ga-e2e
Update seccomp e2e test for GA
2020-09-08 04:53:58 -07:00
Dr. Stefan Schimanski
aa04982471 e2e: fix deployment non-unique env vars to avoid SSA error 2020-09-08 13:45:32 +02:00
Kubernetes Prow Robot
b16070f3ce
Merge pull request #92643 from aojea/connDebug
conntrack e2e test debug connections
2020-09-07 05:03:42 -07:00
Kubernetes Prow Robot
1f708f6e62
Merge pull request #94112 from damemi/sort-endpoints
Remove canonicalization of endpoints by endpoints controller for better comparison
2020-09-04 22:13:40 -07:00
Stephen Solka
203679cc61 prefer NoError/Error over Nil/NotNil 2020-09-04 18:35:52 -04:00
Tim Usner
70d440bc7e Move ResourceQuota admission to k8s.io/apiserver 2020-09-04 14:53:52 +02:00
Antonio Ojea
0004b199d5 do not mutate endpoints in the apiserver
the endpoints API handler was using the Canonicalize() method to
reorder the endpoints, however, due to differences with the
endpoint controller RepackSubsets(), the controller was considering
the endpoints different despite they were not, generating unnecessary
updates evert resync period.
2020-09-04 08:42:45 -04:00
Kenichi Omichi
12c0eaef25 Use ExpectNoError(err)
We missed another pattern to check error doesn't happen on e2e tests.
This covers the pattern for consistent test implementation.
2020-09-03 23:29:07 +00:00
Kubernetes Prow Robot
48d5d204c3
Merge pull request #92614 from tnqn/onfailure-recreate
Don't create a new sandbox for pod with RestartPolicyOnFailure if all containers succeeded
2020-09-03 14:57:40 -07:00
Kubernetes Prow Robot
f736be5721
Merge pull request #94397 from wojtek-t/stop_setting_selflink
Stop setting SelfLink in kube-apiserver.
2020-09-03 12:31:55 -07:00
Kubernetes Prow Robot
8da7c92a2f
Merge pull request #93975 from avr1254/master
Removed broken link to Analytics
2020-09-03 06:16:09 -07:00
Matthew Fenwick
81219ca9d2 address review comments 2020-09-02 21:49:45 -04:00
Kubernetes Prow Robot
0455c2d5e7
Merge pull request #94407 from lavalamp/big-rename
Control Plane is a better name
2020-09-02 14:49:55 -07:00
Kubernetes Prow Robot
17efe1d627
Merge pull request #93394 from liggitt/shorten-apimachinery-test
Shorten watch restart test, run in parallel
2020-09-02 12:09:06 -07:00
Daniel Smith
a86afc12df update scripts 2020-09-02 10:49:40 -07:00
Daniel Smith
15e0e3e90e rename 2020-09-02 10:48:26 -07:00
Daniel Smith
75f835aa08 move port definitions to a common location 2020-09-02 10:48:25 -07:00
Antonio Ojea
b0dfe256f5 remove iperf e2e test ip family tags 2020-09-02 17:39:38 +02:00
Kubernetes Prow Robot
bdcdfe42be
Merge pull request #89582 from fedepaol/testsctppolicy
Add SCTP Network Policy tests
2020-09-02 00:41:06 -07:00
Kubernetes Prow Robot
dd6c53d035
Merge pull request #93946 from alexzimmer96/68026-pkg-controller-resourcequota
Refactor pkg/controllers/resourcequota to fix golint errors
2020-09-01 19:41:06 -07:00
Kubernetes Prow Robot
3cb89eb948
Merge pull request #94373 from MHBauer/fix-94370
relax matcher for ResourceMetricsAPI test
2020-09-01 18:44:28 -07:00
Kubernetes Prow Robot
6e663379ed
Merge pull request #94204 from tkashem/impersonation-with-apf
Impersonated user with a specified group should not fail flow schema match in Priority & Fairness
2020-09-01 18:44:00 -07:00
Kubernetes Prow Robot
19820b7bf1
Merge pull request #93876 from jsafrane/fix-wait-errormsg
Fix waiting for PVC to get bound
2020-09-01 18:43:42 -07:00
Swetha Repakula
e6428ae214 Add e2e multiple endpoint services test
- ensures that when multiple services with the same selector will
 function even if one of the services is deleted
2020-09-01 16:36:33 -07:00
Kubernetes Prow Robot
b49724d5fc
Merge pull request #94287 from jingyih/update_etcd_server_3p4p13
Update default etcd server to 3.4.13
2020-09-01 15:35:20 -07:00
wojtekt
2539912a22 Stop setting SelfLink in kube-apiserver. 2020-09-01 20:57:38 +02:00
Kubernetes Prow Robot
e23d83eead
Merge pull request #93710 from Jiawei0227/attachable2non
Detect volume attach-ability in the middle of attaching
2020-08-31 17:39:50 -07:00
Julian V. Modesto
690c6b2f25 Update kubectl diff --server-side test.
In 1.19, we made it so that upgrading from client-side `kubectl apply`
to server-side `kubectl apply --server-side` does not conflict.

This means that `kubectl diff --server-side` should work the same:
server-side apply diffing a resource managed originally with client-side apply
should not result in conflicts.
2020-08-31 15:49:44 -04:00
Morgan Bauer
8936adc146
relax matcher for ResourceMetricsAPI test
Instead of requiring only exactly the pods created, allow other pods
to exist by ignoring any extra matches.
2020-08-31 09:53:33 -07:00
Stephen Augustus
e59d9f372d Update CNI plugins to v0.8.7
ref: https://github.com/containernetworking/plugins/releases/tag/v0.8.7

Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-08-31 09:01:07 -04:00
Federico Paolinelli
254905caa7 Mark SCTPConnectivity tests as disruptive.
Since the SCTP module verification tests were added, their result may be affected by
running the SCTPConnectivity tests. For this reason, they are now marked as disruptive.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2020-08-31 10:39:32 +02:00
Federico Paolinelli
345cab6ee9 Add tests for SCTP network policies.
Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2020-08-31 10:39:29 +02:00
Claudiu Belu
13849214c1 tests: Refactor agnhost image pod usage
Creates a few agnhost related functions that creates agnhost
pods / containers for general purposes.

The following commits will refactor tests to use those functions.
2020-08-29 15:48:03 -07:00
Kubernetes Prow Robot
044f9102dd
Merge pull request #94054 from vareti/shorten-test-run-time
start kube-apiserver and webhook server only once to shorten the webhook audit test time
2020-08-29 07:11:19 -07:00
Kubernetes Prow Robot
2ca9ee3928
Merge pull request #94229 from derekwaynecarr/verify-container-state-running
Verify running mirror pod has running containers
2020-08-28 22:15:19 -07:00
Kubernetes Prow Robot
9ac9616361
Merge pull request #94310 from twosigma/movee2etestfqdn
Moving SetHostnameAsFQDn e2e tests to e2e_node directory to include tests in Node Testgrid
2020-08-28 17:15:19 -07:00
Andi Li
673af97bcd Fix testpattern check 2020-08-28 13:44:42 -04:00
Javier Diaz-Montes
0f5a03195b Moving e2e tests to e2e_node directory 2020-08-28 12:54:12 -04:00
Andi Li
d915463451 Combine switch case into one case 2020-08-28 12:36:15 -04:00
Andi Li
5b4dffb6b7 Ran hack/update-bazel.sh but discarded changes to root build file 2020-08-28 12:36:15 -04:00
Andi Li
e748ec3de2 Move common portion of dynamic snapshot out of switch statement 2020-08-28 12:36:15 -04:00
Andi Li
7918f69055 Remove custom hash function, generate a random UUID for snapshot and snapcontent name instead 2020-08-28 12:36:15 -04:00
Andi Li
86af5a5ec3 Stack snapshot tests into one to reuse snapshot resource and reduce time taken on prow. 2020-08-28 12:36:15 -04:00
Andi Li
a4498846b1 Quick commit 2020-08-28 12:36:15 -04:00
Andi Li
854645d7c3 Remove snapshot class from prepv test because it is not needed.
Prepv snapshots only need to specify driver.
2020-08-28 12:36:15 -04:00
Andi Li
42b2d1c52c Combine two tests with overlap to reduce overall snapshot test suite time 2020-08-28 12:36:15 -04:00
Andi Li
e78aee9965 Add pre provisioned snapshot tests
Make pre provisioned snapshots using CSI driver by
1. Take a dynamic snapshot with retain policy
2. Delete the dynamic snapshot and content
3. Create a preprovisioned snapshot with snapshotHandle

This commit adds a preprovisiond test pattern, all snapshots made using
create snapshot resource become prepv snapshots. All exisitng test cases
now run again with prepv snapshots.
2020-08-28 12:36:15 -04:00
Siva
f3ede26e20 start kube-apiserver and webhook server only once to shorten the webhook audit test time 2020-08-28 11:31:46 -05:00
Andi Li
ed85129831 Minor cleanup in snapshot test suite. 2020-08-28 12:29:07 -04:00
Kubernetes Prow Robot
3a79bb68bd
Merge pull request #94238 from jingxu97/Aug/subpathtest
Set snapshotType for tests with NTFS.
2020-08-28 08:04:55 -07:00
Kubernetes Prow Robot
d9789c4fa3
Merge pull request #93587 from liggitt/daemonset-test-name
Clean up daemonset test names
2020-08-28 06:37:40 -07:00
Kubernetes Prow Robot
9ff9e8798a
Merge pull request #93498 from luigibk/use-ebtables-from-utils
Update k8s.io/utils dependency and use ebtables from there
2020-08-28 06:37:21 -07:00
Kubernetes Prow Robot
936fadb56a
Merge pull request #93380 from yue9944882/apf-int-test-reject
Integration: Ensure no rejections in PL isolation test
2020-08-28 06:37:02 -07:00
Kubernetes Prow Robot
0eeb676468
Merge pull request #93162 from julianvmodesto/before-first-apply-test
Add tests for stopped managed fields tracking
2020-08-28 06:35:35 -07:00
Kubernetes Prow Robot
f6d169c7ca
Merge pull request #93120 from msau42/e2e-export
Export WaitForCSIDriverRegistrationOnAllNodes
2020-08-28 06:34:53 -07:00
jingyih
c96b93fbd4 Update default etcd server to 3.4.13 2020-08-28 21:19:24 +08:00
Kubernetes Prow Robot
db9916673a
Merge pull request #93081 from oomichi/MasterUpgradeGKE
Move MasterUpgrade() out from e2e framework
2020-08-28 03:20:53 -07:00
Kubernetes Prow Robot
a04f1b8d59
Merge pull request #93046 from oomichi/WatchUntilWithoutRetry
Move WatchUntilWithoutRetry() from e2e framework
2020-08-28 02:02:52 -07:00
Jiawei Wang
250d861be7 Fail early on stress test and improve logging 2020-08-27 21:10:23 -07:00
zhouya0
383b5f6766 Support kubectl delete foreground 2020-08-28 11:52:40 +08:00
Kubernetes Prow Robot
5832c44dbf
Merge pull request #92988 from nikhita/cleanup-owners-test-images
test/images/pets: remove OWNERS to cleanup inactive members
2020-08-27 19:08:43 -07:00
Kubernetes Prow Robot
32f034de38
Merge pull request #92845 from oomichi/remove-DeprecatedMightBeMasterNode
Remove DeprecatedMightBeMasterNode()
2020-08-27 19:07:25 -07:00
Kubernetes Prow Robot
ef7729e6f1
Merge pull request #92274 from SergeyKanzhelev/removeStaleToDo
remove stale TODO after this PR: #92204
2020-08-27 17:56:40 -07:00
Kubernetes Prow Robot
c143ea4bbf
Merge pull request #90522 from beautytiger/fix/nilranger
cleanup: no need nil check before range
2020-08-27 17:54:31 -07:00
Kubernetes Prow Robot
ef1655f691
Merge pull request #93963 from claudiubelu/tests/fixes-expansion-tests-negative-test
Fixes variable expansion false positive
2020-08-27 16:07:47 -07:00
Kubernetes Prow Robot
02838bde69
Merge pull request #93817 from habibrosyad/patch-92402-test/e2e_node
fix test/e2e_node staticcheck
2020-08-27 16:07:37 -07:00
Kubernetes Prow Robot
0f3262cddb
Merge pull request #94231 from twosigma/addfqdntestgrid
Changing label to NodeAlphaFeature to include tests in Node Testgrid
2020-08-27 14:41:24 -07:00
Kubernetes Prow Robot
b5de8b9979
Merge pull request #94242 from jingxu97/Aug/filemode
Remove file_mode args for Windows test
2020-08-27 10:38:33 -07:00
Kubernetes Prow Robot
597eb78b25
Merge pull request #94160 from matthyx/startupprobe-ga
Remove StartupProbe featuregate and related logic
2020-08-27 06:42:49 -07:00
Kubernetes Prow Robot
b9c461afe5
Merge pull request #93852 from nikhita/cleanup-vsphere-owners
vsphere: remove inactive members from OWNERS
2020-08-27 06:42:21 -07:00
Kubernetes Prow Robot
2770fc6128
Merge pull request #94061 from mattcary/fix-expand-offline-comment
fix misleading comment in expand_volume.go
2020-08-27 04:49:45 -07:00
Kubernetes Prow Robot
54d7adc1f5
Merge pull request #93982 from jayunit100/wait_func_cleanup
wait function and util comments and cleanup
2020-08-27 04:49:07 -07:00
Kubernetes Prow Robot
5507cb772b
Merge pull request #93950 from Jiawei0227/parse-mock-logs
Make CSI mock driver log parse more flexible
2020-08-27 04:48:38 -07:00
Kubernetes Prow Robot
e3bd0de6df
Merge pull request #93923 from jsafrane/reduce-cinder-sizes
Reduce test volume sizes
2020-08-27 04:48:11 -07:00
Kubernetes Prow Robot
d506ff062c
Merge pull request #93868 from MHBauer/resourcemetricsapi-test
update ResourceMetricsAPI tests
2020-08-27 04:47:16 -07:00
Kubernetes Prow Robot
1c2e8e67fb
Merge pull request #93583 from aojea/policyIPv6
support ipv6 in e2e policy tests
2020-08-27 00:08:10 -07:00
Kubernetes Prow Robot
9a497c8be6
Merge pull request #94246 from jingxu97/Aug/snapshot
Fix issue on skipTest in storage suits
2020-08-26 20:51:37 -07:00
Kubernetes Prow Robot
f4cfc8a9c5
Merge pull request #93328 from cynepco3hahue/e2e_reset_system_start_limit
e2e node: fix kubelet service restart failure
2020-08-26 20:51:18 -07:00
Kubernetes Prow Robot
343596b4d9
Merge pull request #92920 from gaurav1086/TestWatchBasedManager_fix_deadlock
[test/kubelet]: Fix deadlock in watch manager test
2020-08-26 20:51:04 -07:00
Kubernetes Prow Robot
305f48936c
Merge pull request #93588 from jsturtevant/gmsa-serial
Mark gmsa test serial due to race conditions
2020-08-26 19:41:02 -07:00
Kubernetes Prow Robot
38086508f8
Merge pull request #94049 from harche/ssh_user
Read ssh username from env variable
2020-08-26 18:23:02 -07:00
Jing Xu
d35eb56322 Fix issue on skipTest in storage suits
After PR https://github.com/kubernetes/kubernetes/pull/92555, there are a number of gce pd default fs tests skipped. Here the testpatten has SnapshotType set because some provisioning tests use snapshots. But for drivers such as In-tree gce pd driver, the tests will be skipped because of the logic in skipUnsupportedTesthttps://github.com/kubernetes/kubernetes/blob/master/test/e2e/storage/testsuites/base.go#L154
Since multiple drivers might test with the same pattern, so I think we need keep SnapshotType here.

This PR removes the part of the logic in skipUnsupportedTest. This should be ok because all snapshot tests will check whether a driver has snapshot capability or not.
2020-08-25 23:31:47 -07:00
Jing Xu
0d9c8202d5 Remove file_mode args for Windows test
Due to issue https://github.com/kubernetes/kubernetes/issues/94237,
remove file_mode arg for subPath tests for now.
2020-08-25 20:05:40 -07:00
Jing Xu
b426689ca4 Set snapshotType for tests with NTFS.
Set the snapshotType for tests with NTFS. Return error if type is not
set.
2020-08-25 19:39:30 -07:00
Javier Diaz-Montes
c74a772794 Adding label NodeAlphaFeature to include tests in Node Testgrid 2020-08-25 16:38:11 -04:00
Abu Kashem
01619cfaf6
Add impersonated user to system:authenticated group
Currently if a group is specified for an impersonated user,
'system:authenticated' is not added to the 'Groups' list inside the
request context.
This causes priority and fairness match to fail. The catch-all flow
schema needs the user to be in the 'system:authenticated' or in the
'system:unauthenticated' group. An impersonated user with a specified
group is in neither.

As a general rule, if an impersonated user has passed authorization
checks, we should consider him authenticated.
2020-08-25 14:53:01 -04:00
Derek Carr
d2c78b6589 Verify running mirror pod has running containers 2020-08-25 12:23:24 -04:00
Kubernetes Prow Robot
4db3a096ce
Merge pull request #94171 from robscott/endpointslicemirroring-fix
Updating EndpointSliceMirroring controller to listen for Service changes
2020-08-24 18:44:16 -07:00
Jiawei Wang
a6d8e6c5c2 Detect change of volume attachability in the middle of attaching
- Add Unit tests for both volumemanager and attach/detach controller
- Add E2E test
2020-08-24 17:15:11 -07:00
Rob Scott
3c804502d7
Updating EndpointSliceMirroring controller to listen for Service changes
This fixes a bug that could occur if a custom Endpoints resource was
created before a Service was created.
2020-08-24 17:09:42 -07:00
Derek Carr
6f2153986a Promote PidLimits to GA 2020-08-24 13:57:48 -04:00
Matthias Bertschy
ea14585500 Remove StartupProbe featuregate and related logic 2020-08-22 15:09:52 +02:00
Spencer Hance
7c0169d976 Reserve Static IP in Ingress test 2020-08-21 10:54:10 -07:00
Benjamin Elder
3e2cb2922b synchronize agnhost image / app version 2020-08-20 17:00:41 -07:00
Benjamin Elder
9d7a94263a track agnhost version in dependencies.yaml 2020-08-20 17:00:41 -07:00
Alexander Zimmermann
86dc0364f4
Refactored pkg/controllers/resourcequota
* Fixed golint issues
* Removed redundant package import names
* Improved some variables and names

Co-authored-by: Mike Danese <mikedanese@gmail.com>
2020-08-20 14:37:27 +02:00
Antonio Ojea
fcaf580c9b fix e2e test
the test is not working because is trying to execute bash in a
busybox image, that is not present. Using sh works.
2020-08-19 22:45:21 +02:00
jay vyas
04b38e9f91 Update wait function w/ descriptions of global node states, TODO for kubelet
API.
2020-08-19 13:55:54 -04:00
Kubernetes Prow Robot
3352c44949
Merge pull request #93777 from pohly/capacity-test-flake-fix
e2e storage: avoid flaky test failure when watch dies
2020-08-19 04:47:12 -07:00
Claudiu Belu
8ca08f1ced tests: Use Windows absolute path on Windows pods
The test "should fail substituting values in a volume subpath with absolute path" creates a pod
with a variable expansion path which is set as an absolute path. However "/tmp" is not an absolute
on Windows, it has to be prefixed with the drive letter (C:\tmp). But C:\tmp does not typically
exist on Windows nodes, so we use C:\Users instead.
2020-08-18 13:39:31 -07:00
Rob Scott
43ce0c53cc
Fixing a flaky EndpointSliceMirroring integration test
This test was trying to create an Endpoints resource that the Endpoints
controller would also attempt to create. This could result in a failure
if the Endpoints controller created the resource before the test did.
2020-08-18 12:52:54 -07:00
Kubernetes Prow Robot
544b74c2cb
Merge pull request #94050 from liggitt/remove-flaky-audit-test
Remove flaky audit e2e test
2020-08-18 09:45:31 -07:00
Andrea Nodari
c522ee08a3 Do not allow manual changes to manageFields via subresources
If a request tries to change managedFields, the response returns the
managedField of the live object.
2020-08-18 13:33:39 +02:00
Matthew Cary
8ea57e55d7 fix misleading comment in expand_volume.go 2020-08-17 13:51:03 -07:00
Kubernetes Prow Robot
0d1d65661c
Merge pull request #93980 from BenTheElder/emeritus-sig-testing
Emeritus some inactive sig testing approvers
2020-08-17 11:53:31 -07:00
Kubernetes Prow Robot
b7d59d37fa
Merge pull request #93721 from gitlawr/speedup-reconciler-tests
Speed up master reconciler tests
2020-08-17 08:38:18 -07:00
gitlawr
11b347ca1d Speed up master reconciler tests
Start apiservers in parallel.
Reduce the number of masters.
Reduce the time for ReconcilerMasterLease.* tests from ~85s to ~41s on
average.
2020-08-17 22:28:30 +08:00
Jordan Liggitt
f5490cb5c8 Remove flaky audit e2e test 2020-08-17 09:59:59 -04:00
Harshal Patil
9d5ca30b76 Read ssh username from env variable
Signed-off-by: Harshal Patil <harpatil@redhat.com>
2020-08-17 17:49:26 +05:30
Morgan Bauer
916c73b8a5
update ResourceMetricsAPI node-e2e test
/metrics/resource/v1alpha1 was deprecated and moved to
/metrics/resource

Renames to remove v1alpha1 from function names and matcher variables.

Pod deletion was taking multiple minutes, so set GracePeriodSeconds to 0.

Commented restart loop during test pod startup.

Move ResourceMetricsAPI out of Orphans by giving it a NodeFeature tag.

API removed in 7b7c73b #88568
Test created 6051664 #73946
2020-08-14 11:28:35 -07:00
Benjamin Elder
885b1bc720 move krzyzacy to emeritus 2020-08-14 09:17:27 -07:00
Kubernetes Prow Robot
a42a1c8dea
Merge pull request #93921 from zhouya0/never_restart_agnhost_pod
[Flaky test]kubectl log test never restart pod
2020-08-14 01:54:22 -07:00
Kubernetes Prow Robot
c2bde256ae
Merge pull request #93990 from knight42/fix/run_kubectl_apply_tests
test(kubectl): deflake run_kubectl_apply_tests(round 2)
2020-08-14 00:48:35 -07:00
Kubernetes Prow Robot
fa1a3e0f74
Merge pull request #93665 from dims/emeritus-bgrant0607
Move bgrant0607 to emeritus status.
2020-08-14 00:48:22 -07:00
knight42
3cb3356645
test(kubectl): deflake run_kubectl_apply_tests
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-08-14 11:12:42 +08:00
Kubernetes Prow Robot
3647766cbc
Merge pull request #93938 from alculquicondor/revert-node-delete
Keep track of remaining pods when a node is deleted
2020-08-13 13:25:41 -07:00
Arjun Ramachandrula
dcc1ab176d Removed broken link to Analytics 2020-08-13 16:03:37 -04:00
Aldo Culquicondor
16d7ecfa45 Remove direct accesses to cache's node map
Signed-off-by: Aldo Culquicondor <acondor@google.com>
Change-Id: Iebb22fc816926aaa1ddd1e4b2e52f335a275ffaa
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-08-13 14:22:06 -04:00
Jiawei Wang
0ce86eb553 Make CSI mock driver log parse more flexible 2020-08-13 10:27:38 -07:00
Kubernetes Prow Robot
fa76242bba
Merge pull request #93730 from adtac/MixedSchedulingBasePod
scheduler_perf/MixedSchedulingBasePod: label nodes for pod affinity
2020-08-12 19:14:14 -07:00
Kubernetes Prow Robot
68168541ea
Merge pull request #93869 from Jiawei0227/namespace-collision
[e2e]Bind csi driver namespace to test namespace to avoid namespace collision
2020-08-12 17:00:28 -07:00
Kubernetes Prow Robot
b1d89d67a1
Merge pull request #93939 from justaugustus/go115
[go1.15] Update to go1.15
2020-08-12 14:42:28 -07:00
Kubernetes Prow Robot
6704af40d4
Merge pull request #93916 from justaugustus/base-images
build: Update to debian-base@v2.1.3 and debian-iptables@v12.1.2
2020-08-12 14:42:14 -07:00
Stephen Augustus
aa2bb18a2b [go1.15] Update to go1.15
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-08-12 14:19:59 -04:00
Jiawei Wang
d030c64743 [e2e]Bind csi driver namespace to test namespace to avoid namespace collision 2020-08-12 10:20:30 -07:00
Matthew Fenwick
14fe811563 back out conversion of DialFromNode->DialFromTestContainer 2020-08-12 13:11:51 -04:00
Patrick Ohly
1a510a1bec e2e storage: avoid flaky test failure when watch dies
As discussed in https://github.com/kubernetes/kubernetes/pull/93658,
relying on a watch to deliver all events is not acceptable, not even
for a test, because it can and did (at least for OpenShift testing) to
test flakes.

The solution in #93658 was to replace log flooding with a clear test
failure, but that didn't solve the flakiness.

A better solution is to use a RetryWatcher which "under normal
circumstances" (https://github.com/kubernetes/kubernetes/pull/93777#discussion_r467932080)
should always deliver all changes.
2020-08-12 17:56:24 +02:00
Patrick Ohly
441324e8c8 e2e storage: skip multi-volume generic ephemeral volume test
This test might flake when run on a multi-zone cluster (similar to
persistent volumes, see
https://github.com/kubernetes/kubernetes/issues/75776). We don't do
that at the moment, but it's better to fix this anyway.
2020-08-12 16:01:13 +02:00
Kubernetes Prow Robot
c780554a64
Merge pull request #93829 from aojea/e2eSvcSlice
e2e services wait for endpoint and endpoint slices
2020-08-12 06:49:45 -07:00
Antonio Ojea
f31839acea e2e services wait for endpoint and endpoint slices
Since 1.19 endpoint slices is enabled by default, so all the e2e
tests should consider them.

The e2e networking tests for services use the jig object for
all the tests, but was not taking into account endpoint slices.

This considers endpoints slices for the method waitForAvailableEndpoint()

 Date:      Sun Aug 9 12:34:06 2020 +0200
2020-08-12 14:13:42 +02:00
Jan Safranek
fea06a204c Reduce test volume sizes
To reduce costs and to increase speed. Formating 5GiB volume took too long
in a badly overloaded CI cluster.

All in-tree volume plugins support at least 1GiB volumes.
2020-08-12 14:00:30 +02:00
Kubernetes Prow Robot
abede62bf0
Merge pull request #93857 from soltysh/fix_lb_test
Skip LB test per schedulable node count
2020-08-12 04:29:44 -07:00
Antonio Ojea
f9a5e5a283 support ipv6 in e2e policy tests 2020-08-12 13:01:07 +02:00
zhouya0
b18e265315 [Flaky test]kubectl log test never restart pod 2020-08-12 18:26:18 +08:00
Stephen Augustus
13f1a90f74 build: Update to debian-base@v2.1.3 and debian-iptables@v12.1.2
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-08-11 23:17:26 -04:00
Kubernetes Prow Robot
fa13dc11d1
Merge pull request #93907 from robscott/endpointslice-e2e-test-fix
Updating EndpointSlice e2e tests to accept duplicate EndpointSlices
2020-08-11 20:07:45 -07:00
Kubernetes Prow Robot
35c8fece86
Merge pull request #93521 from msau42/update-registry
Update e2e csi images to k8s.gcr.io
2020-08-11 17:57:46 -07:00
Rob Scott
17ff005c4b
Updating EndpointSlice e2e tests to accept duplicate EndpointSlices
Although rare, the EndpointSlice controller can create duplicate
EndpointSlices. This is considered a valid state and tests that find
this state should not fail.
2020-08-11 14:51:30 -07:00
jay vyas
9ecf96cb46 Add maxTries logging statement, otherwise the numbers are really hard to interpret 2020-08-11 12:28:08 -04:00
jay vyas
56e2adbd79 implement breadth first try 2020-08-11 11:32:46 -04:00
M. Habib Rosyad
42c68c303b
fix test/e2e_node staticcheck 2020-08-11 22:11:22 +07:00
Jan Safranek
96eeb98215 Fix error messages
Separate different errors by ": ".
2020-08-11 11:14:15 +02:00
Jan Safranek
6a83a39ae6 Fix Poll variable name
Parameter names should start with lowercase
2020-08-11 11:14:15 +02:00
Jan Safranek
d3503a2881 Fix waiting for PVCs to get Bound
When Get() returns error, the loop should not return with nil. Make sure
that the faulty Get() marks phaseFoundInAllClaims as not satisfied.
2020-08-11 11:14:15 +02:00
yodarshafrir1
24010022ef Number of failed jobs should exceed the backoff limit and not big equal.
Remove patch in e2e test of backoff limit due to usage of NumRequeues
2020-08-11 11:06:09 +03:00
Kubernetes Prow Robot
da5ec168e7
Merge pull request #93618 from Jiawei0227/e2e-csi-mock-flaky
Fix flaky test: wait for mock CSI Driver bringup to perform e2e test
2020-08-10 15:41:59 -07:00
jay vyas
ccbfa84173 golint
flip logging messages

run pod->node conformance tests the same way
2020-08-10 15:46:49 -04:00
Jiawei Wang
76b4973b42 Wait for mock CSI Driver bringup to perform e2e test
In our current mock CSI driver e2e test, we are not waiting
for the CSI driver register successfully to perform test
including provision PVC. This can lead to timeout when the
csi driver takes longer to register the socket.

This change adds the waiting part so that the system will
wait for up to 10 minutes for the driver to be ready. This
normally won't take this long. However, under a resource
constraint environment it can take longer than expected time.

https://github.com/kubernetes/kubernetes/issues/93358
2020-08-10 11:03:35 -07:00
Adhityaa Chandrasekar
59a6e86c0c scheduler_perf: label nodes for pod affinity
3 commits:
  label nodes for pod affinity
  use topology.kubernetes.io/zone label
  use 3 zones in pod affinity rules
2020-08-10 16:07:46 +00:00
Maciej Szulik
5765bf74ce
Skip LB test per schedulable node count 2020-08-10 16:13:29 +02:00
Nikhita Raghunath
53e87ddd15 vsphere: remove inactive members from OWNERS
As a part of cleaning up inactive members (who haven't been active since
beginning of 2019) from OWNERS files, this commit moves abrarshivani to
emeritus_approvers section.
2020-08-10 15:23:25 +05:30
Sascha Grunert
3bef0e40a6
Update seccomp e2e test for GA
We now execute the seccomp tests with `[LinuxOnly]` as described in the
appropriate KEP test plan:

https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/20190717-seccomp-ga.md#test-plan

The tests have been changed to used the new seccomp field within the
security context in replacement for the annotations.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-08-10 08:50:44 +02:00
Kubernetes Prow Robot
7740b8124c
Merge pull request #93555 from cofyc/fix81368
integration: Wait for PV to be available in TestVolumeProvision
2020-08-09 22:30:20 -07:00
jay vyas
35f5e8e66f minor logic fix 2020-08-09 16:45:51 -04:00
jay vyas
84f7d1e636 e2e test intra-pod breadth first logging and summary
gofmt
2020-08-09 16:35:03 -04:00
Stephen Augustus
ffcef48b83 [go1.15] Update to go1.15rc2
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-08-09 02:53:53 -04:00
Wei Huang
24bbedb27d
Deflake LimitRange e2e test 2020-08-07 17:22:35 -07:00
Kubernetes Prow Robot
a640545167
Merge pull request #93567 from gnufied/fix-stale-attachments
Make AttachDisk for EBS idempotent again
2020-08-07 07:16:19 -07:00
Hemant Kumar
f91d448e1b Add tests for out of band attachments 2020-08-07 08:23:25 -04:00
Antonio Ojea
db4bca086d e2e delete namespaces after finish 2020-08-07 08:35:39 +02:00
Julian V. Modesto
f2deb2417a Add tests for managed fields tracking.
- Test that client-side apply users don't encounter a conflict with
server-side apply for objects that previously didn't track managedFields
- Test that we stop tracking managed fields with `managedFields: []`
- Test that we stop tracking managed fields when the feature is disabled
2020-08-05 18:22:44 -04:00
Kubernetes Prow Robot
c94242a7b1
Merge pull request #93657 from knight42/test/93651
fix: deflake run_kubectl_apply_tests
2020-08-05 09:56:28 -07:00
knight42
cbf8ec4e2d
fix: deflake run_kubectl_apply_tests
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-08-05 23:27:34 +08:00
Kubernetes Prow Robot
9dec51e8f3
Merge pull request #93670 from wojtek-t/fix_readyz_sync_informer
Fix /readyz to contain informer-sync
2020-08-04 19:48:29 -07:00
Kubernetes Prow Robot
56c76023f7
Merge pull request #93658 from dcbw/csi-fail-test-on-close
test/e2e: fail test rather than flooding logs if PVC watch is closed prematurely
2020-08-04 18:08:42 -07:00
Kubernetes Prow Robot
c73fef52f3
Merge pull request #93661 from Huang-Wei/flake-postbind
Deflake scheduler PostBind integration test
2020-08-04 09:58:20 -07:00
Shingo Omura
d0421fa9c3
Fix TestScorePlugin: numScore should be accessed with atomic.LoadInt32 2020-08-04 22:50:13 +09:00
Shingo Omura
ef1fab7642
expose Run[Pre]ScorePlugins functions in PluginRunner interface 2020-08-04 22:50:13 +09:00
wojtekt
5b4ab8f41b Fix /readyz to contain informer-sync 2020-08-04 15:29:43 +02:00
Stephen Augustus
87e13f7665 build: Update to debian-base@v2.1.0 and debian-iptables@v12.1.1
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-08-04 01:15:24 -04:00
ravisantoshgudimetla
cd8686bc57 Strip unnecessary security contexts on Windows
As of now, the kubelet is passing the security context to container runtime even
if the security context has invalid options for a particular OS. As a result,
the pod fails to come up on the node. This error is particularly pronounced on
the Windows nodes where kubelet is allowing Linux specific options like SELinux,
RunAsUser etc where as in [documentation](https://kubernetes.io/docs/setup/production-environment/windows/intro-windows-in-kubernetes/#v1-container),
we clearly state they are not supported. This PR ensures that the kubelet strips
the security contexts of the pod, if they don't make sense on the Windows OS.
2020-08-03 23:43:31 -04:00
Davanum Srinivas
fbca4e3ee9
Move bgrant0607 to emeritus status.
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-08-03 21:50:46 -04:00
Kubernetes Prow Robot
0d2299e227
Merge pull request #93271 from ii/promote-preferred-version
Promote: Discovery PreferredVersion test+16 Endpoints
2020-08-03 18:46:19 -07:00
Michelle Au
ab5b3e256b Update e2e csi images to k8s.gcr.io
Change-Id: Ic6c3f805aab1647f01f40fee725d6e8be992d04e
2020-08-03 17:04:21 -07:00
Kubernetes Prow Robot
ae9f76153f
Merge pull request #93535 from gnufied/create-service-for-endpoint
Create service for gluster endpoint
2020-08-03 16:10:33 -07:00
Wei Huang
b6b7ab3f73
Deflake scheduler PostBind integration test 2020-08-03 12:30:22 -07:00
Dan Williams
e0f9fe2cd3 test/e2e: fail test rather than flooding logs if PVC watch is closed prematurely
If the watch is closed prematurely the for/select loop will
spew "PVC event : <nil>" as fast as possible until the test times
out, flooding logs.

STEP: Checking PVC events
Aug  3 16:35:53.930: INFO: PVC event ADDED: &v1.PersistentVolumeClaim{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"pvc-zrchk", GenerateName:"pvc-", Namespace:"e2e-csi-mock-volumes-5292", SelfLink:"/api/v1/namespaces/e2e-csi-mock-volumes-5292/persistentvolumeclaims/pvc-zrchk", UID:"221369cd-50c3-48be-8c08-dc4d8f6f36e0", ResourceVersion:"42154", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63732069329, loc:(*time.Location)(0x9e74040)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string{"kubernetes.io/pvc-protection"}, ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry{v1.ManagedFieldsEntry{Manager:"openshift-tests", Operation:"Update", APIVersion:"v1", Time:(*v1.Time)(0xc001639060), FieldsType:"FieldsV1", FieldsV1:(*v1.FieldsV1)(0xc001639080)}}}, Spec:v1.PersistentVolumeClaimSpec{AccessModes:[]v1.PersistentVolumeAccessMode{"ReadWriteOnce"}, Selector:(*v1.LabelSelector)(nil), Resources:v1.ResourceRequirements{Limits:v1.ResourceList(nil), Requests:v1.ResourceList{"storage":resource.Quantity{i:resource.int64Amount{value:1073741824, scale:0}, d:resource.infDecAmount{Dec:(*inf.Dec)(nil)}, s:"1Gi", Format:"BinarySI"}}}, VolumeName:"", StorageClassName:(*string)(0xc000876e90), VolumeMode:(*v1.PersistentVolumeMode)(0xc000876ec0), DataSource:(*v1.TypedLocalObjectReference)(nil)}, Status:v1.PersistentVolumeClaimStatus{Phase:"Pending", AccessModes:[]v1.PersistentVolumeAccessMode(nil), Capacity:v1.ResourceList(nil), Conditions:[]v1.PersistentVolumeClaimCondition(nil)}}
Aug  3 16:35:53.930: INFO: PVC event MODIFIED: &v1.PersistentVolumeClaim{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"pvc-zrchk", GenerateName:"pvc-", Namespace:"e2e-csi-mock-volumes-5292", SelfLink:"/api/v1/namespaces/e2e-csi-mock-volumes-5292/persistentvolumeclaims/pvc-zrchk", UID:"221369cd-50c3-48be-8c08-dc4d8f6f36e0", ResourceVersion:"42159", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63732069329, loc:(*time.Location)(0x9e74040)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{"volume.beta.kubernetes.io/storage-provisioner":"csi-mock-e2e-csi-mock-volumes-5292"}, OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string{"kubernetes.io/pvc-protection"}, ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry{v1.ManagedFieldsEntry{Manager:"kube-controller-manager", Operation:"Update", APIVersion:"v1", Time:(*v1.Time)(0xc0016a6060), FieldsType:"FieldsV1", FieldsV1:(*v1.FieldsV1)(0xc0016a6080)}, v1.ManagedFieldsEntry{Manager:"openshift-tests", Operation:"Update", APIVersion:"v1", Time:(*v1.Time)(0xc0016a60a0), FieldsType:"FieldsV1", FieldsV1:(*v1.FieldsV1)(0xc0016a60c0)}}}, Spec:v1.PersistentVolumeClaimSpec{AccessModes:[]v1.PersistentVolumeAccessMode{"ReadWriteOnce"}, Selector:(*v1.LabelSelector)(nil), Resources:v1.ResourceRequirements{Limits:v1.ResourceList(nil), Requests:v1.ResourceList{"storage":resource.Quantity{i:resource.int64Amount{value:1073741824, scale:0}, d:resource.infDecAmount{Dec:(*inf.Dec)(nil)}, s:"1Gi", Format:"BinarySI"}}}, VolumeName:"", StorageClassName:(*string)(0xc0012aa020), VolumeMode:(*v1.PersistentVolumeMode)(0xc0012aa030), DataSource:(*v1.TypedLocalObjectReference)(nil)}, Status:v1.PersistentVolumeClaimStatus{Phase:"Pending", AccessModes:[]v1.PersistentVolumeAccessMode(nil), Capacity:v1.ResourceList(nil), Conditions:[]v1.PersistentVolumeClaimCondition(nil)}}
Aug  3 16:35:53.930: INFO: PVC event MODIFIED: &v1.PersistentVolumeClaim{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"pvc-zrchk", GenerateName:"pvc-", Namespace:"e2e-csi-mock-volumes-5292", SelfLink:"/api/v1/namespaces/e2e-csi-mock-volumes-5292/persistentvolumeclaims/pvc-zrchk", UID:"221369cd-50c3-48be-8c08-dc4d8f6f36e0", ResourceVersion:"43201", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63732069329, loc:(*time.Location)(0x9e74040)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{"pv.kubernetes.io/bind-completed":"yes", "pv.kubernetes.io/bound-by-controller":"yes", "volume.beta.kubernetes.io/storage-provisioner":"csi-mock-e2e-csi-mock-volumes-5292"}, OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string{"kubernetes.io/pvc-protection"}, ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry{v1.ManagedFieldsEntry{Manager:"openshift-tests", Operation:"Update", APIVersion:"v1", Time:(*v1.Time)(0xc0016a6100), FieldsType:"FieldsV1", FieldsV1:(*v1.FieldsV1)(0xc0016a6120)}, v1.ManagedFieldsEntry{Manager:"kube-controller-manager", Operation:"Update", APIVersion:"v1", Time:(*v1.Time)(0xc0016a6140), FieldsType:"FieldsV1", FieldsV1:(*v1.FieldsV1)(0xc0016a6160)}}}, Spec:v1.PersistentVolumeClaimSpec{AccessModes:[]v1.PersistentVolumeAccessMode{"ReadWriteOnce"}, Selector:(*v1.LabelSelector)(nil), Resources:v1.ResourceRequirements{Limits:v1.ResourceList(nil), Requests:v1.ResourceList{"storage":resource.Quantity{i:resource.int64Amount{value:1073741824, scale:0}, d:resource.infDecAmount{Dec:(*inf.Dec)(nil)}, s:"1Gi", Format:"BinarySI"}}}, VolumeName:"pvc-221369cd-50c3-48be-8c08-dc4d8f6f36e0", StorageClassName:(*string)(0xc0012aa090), VolumeMode:(*v1.PersistentVolumeMode)(0xc0012aa0a0), DataSource:(*v1.TypedLocalObjectReference)(nil)}, Status:v1.PersistentVolumeClaimStatus{Phase:"Pending", AccessModes:[]v1.PersistentVolumeAccessMode(nil), Capacity:v1.ResourceList(nil), Conditions:[]v1.PersistentVolumeClaimCondition(nil)}}
Aug  3 16:35:53.930: INFO: PVC event MODIFIED: &v1.PersistentVolumeClaim{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"pvc-zrchk", GenerateName:"pvc-", Namespace:"e2e-csi-mock-volumes-5292", SelfLink:"/api/v1/namespaces/e2e-csi-mock-volumes-5292/persistentvolumeclaims/pvc-zrchk", UID:"221369cd-50c3-48be-8c08-dc4d8f6f36e0", ResourceVersion:"43203", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63732069329, loc:(*time.Location)(0x9e74040)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{"pv.kubernetes.io/bind-completed":"yes", "pv.kubernetes.io/bound-by-controller":"yes", "volume.beta.kubernetes.io/storage-provisioner":"csi-mock-e2e-csi-mock-volumes-5292"}, OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string{"kubernetes.io/pvc-protection"}, ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry{v1.ManagedFieldsEntry{Manager:"openshift-tests", Operation:"Update", APIVersion:"v1", Time:(*v1.Time)(0xc0016a6600), FieldsType:"FieldsV1", FieldsV1:(*v1.FieldsV1)(0xc0016a6620)}, v1.ManagedFieldsEntry{Manager:"kube-controller-manager", Operation:"Update", APIVersion:"v1", Time:(*v1.Time)(0xc0016a6660), FieldsType:"FieldsV1", FieldsV1:(*v1.FieldsV1)(0xc0016a6680)}}}, Spec:v1.PersistentVolumeClaimSpec{AccessModes:[]v1.PersistentVolumeAccessMode{"ReadWriteOnce"}, Selector:(*v1.LabelSelector)(nil), Resources:v1.ResourceRequirements{Limits:v1.ResourceList(nil), Requests:v1.ResourceList{"storage":resource.Quantity{i:resource.int64Amount{value:1073741824, scale:0}, d:resource.infDecAmount{Dec:(*inf.Dec)(nil)}, s:"1Gi", Format:"BinarySI"}}}, VolumeName:"pvc-221369cd-50c3-48be-8c08-dc4d8f6f36e0", StorageClassName:(*string)(0xc0012aa450), VolumeMode:(*v1.PersistentVolumeMode)(0xc0012aa460), DataSource:(*v1.TypedLocalObjectReference)(nil)}, Status:v1.PersistentVolumeClaimStatus{Phase:"Bound", AccessModes:[]v1.PersistentVolumeAccessMode{"ReadWriteOnce"}, Capacity:v1.ResourceList{"storage":resource.Quantity{i:resource.int64Amount{value:1073741824, scale:0}, d:resource.infDecAmount{Dec:(*inf.Dec)(nil)}, s:"1Gi", Format:"BinarySI"}}, Conditions:[]v1.PersistentVolumeClaimCondition(nil)}}
Aug  3 16:35:53.930: INFO: PVC event : <nil>
Aug  3 16:35:53.930: INFO: PVC event : <nil>
Aug  3 16:35:53.930: INFO: PVC event : <nil>
Aug  3 16:35:53.930: INFO: PVC event : <nil>
Aug  3 16:35:53.930: INFO: PVC event : <nil>
Aug  3 16:35:53.930: INFO: PVC event : <nil>
Aug  3 16:35:53.930: INFO: PVC event : <nil>
Aug  3 16:35:53.930: INFO: PVC event : <nil>
Aug  3 16:35:53.930: INFO: PVC event : <nil>
<a million lines later...>
Aug  3 16:36:26.571: INFO: PVC event : <nil>
Aug  3 16:36:26.571: INFO: PVC event : <nil>
Aug  3 16:36:26.571: INFO: PVC event : <nil>
Aug  3 16:36:26.571: INFO: PVC event : <nil>
<test times out>
2020-08-03 13:01:00 -05:00
Caleb Woodbine
8411ada27a Adjust default replica count to 2 replicas 2020-08-03 09:03:10 +12:00
Kubernetes Prow Robot
cf6a0868be
Merge pull request #93597 from wojtek-t/validate_endpoint_slices
Wait for both endpoints and endpointslices in e2e tests
2020-08-01 20:22:04 -07:00
Kubernetes Prow Robot
d3a49f7c63
Merge pull request #93589 from jingxu97/July/csiwindowstest
Update e2e storage tests for Windows cluster
2020-08-01 20:21:54 -07:00
Kubernetes Prow Robot
f0485f5098
Merge pull request #93557 from knight42/fix/snat-test
fix(e2e::network): refactor NoSNAT test
2020-08-01 20:21:41 -07:00
Kubernetes Prow Robot
0051d65f9f
Merge pull request #92954 from sbueringer/pr-fix-delete-orphan-test
conformance-tests: make orpan RS created by deployment test more resilient
2020-07-31 13:51:40 -07:00
Jing Xu
015f2998e5 Update e2e storage tests for Windows cluster
This PR fixes a few things for e2e storage suite to run on Windows
cluster.
1. increaes timeout due to longer pod startup time for windows
2. Only set SELinuxOptions or fsGroup if os is not windows
3. Add VolumeSnapshot delete policy for windows3. Add VolumeSnapshot
delete policy for windows3. Add VolumeSnapshot delete policy for windows
2020-07-31 10:09:28 -07:00
knight42
7b07b33094
fix(e2e::network): refactor NoSNAT test
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-08-01 00:51:51 +08:00
wojtekt
76b3fe7f6d Wait for both endpoints and endpointslices in e2e tests 2020-07-31 17:24:53 +02:00
hasheddan
242176ab31
Make typecheck default parallelism 3
Typecheck is still hitting memory limits semi-regularly on periodic CI
jobs. This bumps the default parallelism down to 3 from 4 to make it
slightly less memory intensive.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-07-31 07:42:31 -05:00
Claudiu Belu
72a26aed7d tests: Fixes variable expansion false positive test
Some of the tests are negative test cases which are supposed to ensure that those
invalid usecases are handled properly.

However, some of the tests are false positives, they can pass due to various reasons.
One such example is: "should fail substituting values in a volume subpath with absolute path".
This test can pass if:

- the Pod cannot start due to various reasons (e.g.: the container image cannot be pulled or does
  not exist).
- the Pod ran to completion, even though the container was not supposed to start in the first place.
2020-07-31 01:23:09 -07:00
Kubernetes Prow Robot
20fbf09c3e
Merge pull request #93551 from brianpursley/runtimeclass-e2e-fix
Remove special case for node e2e tests when expecting pod rejection
2020-07-30 23:53:06 -07:00
Kubernetes Prow Robot
62b8faed40
Merge pull request #93539 from Jefftree/conformance-format
Update formatting of conformance comment
2020-07-30 22:11:07 -07:00
Kubernetes Prow Robot
debcc37798
Merge pull request #93327 from aojea/dnsipv6
e2e dns test autodetect the IP family
2020-07-30 18:39:09 -07:00
James Sturtevant
faa84d61c7 mark this test serial due to race conditions 2020-07-30 15:41:22 -07:00
Jordan Liggitt
2cea9c5d51 Clean up daemonset test names 2020-07-30 17:33:38 -04:00
Hemant Kumar
20934d7e50 Create service for gluster endpoint
Creating an endpoint without a service can cause endpoint to disappear

https://github.com/kubernetes/kubernetes/issues/12964
2020-07-30 16:34:11 -04:00
Jordan Liggitt
c866cb7dd0 Make verify-typecheck detect errors better 2020-07-30 13:23:34 -04:00
Jordan Liggitt
7cbdb4fb14 Limit typecheck parallelism by default 2020-07-30 11:10:08 -04:00
Kubernetes Prow Robot
9af4ad5c45
Merge pull request #93550 from Huang-Wei/refix-postfilter-flake
Deflake scheduler PostFilter and Filter integration test
2020-07-30 04:30:31 -07:00
Luigi Bitonti
19793bd3fa Update k8s.io/utils dependency and use ebtables from there 2020-07-30 08:58:21 +01:00
Yecheng Fu
930409c993 integration: Wait for PV to be available 2020-07-30 13:37:20 +08:00
Jefftree
fca714f4b7 Fix conformance ordering 2020-07-29 20:50:45 -07:00
Jefftree
ace97738e2 Update formatting of conformance comment 2020-07-29 20:50:44 -07:00
Brian Pursley
6029346d0d Remove special case for node e2e tests when expecting pod rejection 2020-07-29 22:28:03 -04:00
Wei Huang
539272cb73
Deflake scheduler PostFilter and Filter integration test
- Revert "Fix integration test flake on TestFilter and TestPostFilter"
  This reverts commit 94fc18c2dc.
- Relax checking logic on expected Filter/PostFilter counters.
2020-07-29 18:37:47 -07:00
Wei Huang
0e71facefe
Hold Pod in cache until all other cleanup work is completed
- Move "ForgetPod" after "RunReservePluginsUnreserve", so that the cache would hold the pod to
  avoid it's being retried simutaneously until Unreserve is completed.
- Move "assume" ahead of "RunReservePluginsReserve". This is based on the fact that "ForgetPod" is
  the last step of failure path, so "assume" should be reversly treated as the first step. The
  current failure path is like this:
  assume -> reserve -> unreserve -> forgetPod -> recordingFailure
- Make subtests of TestReservePluginUnreserve stateless
2020-07-29 11:27:19 -07:00
Kubernetes Prow Robot
d3edcb7924
Merge pull request #93490 from Huang-Wei/flake-post-filter
Fix integration test flake on TestFilter and TestPostFilter
2020-07-29 08:59:48 -07:00
Kubernetes Prow Robot
aec30be5b3
Merge pull request #93433 from dcbw/netexec-errors
agnhost/netexec: logging cleanup and print more verbose errors
2020-07-28 21:04:01 -07:00
Kubernetes Prow Robot
01ae0ae8c6
Merge pull request #93429 from sjenning/fix-examples-template
e2e: examples: fix test image reference
2020-07-28 21:03:47 -07:00
Wei Huang
94fc18c2dc
Fix integration test flake on TestFilter and TestPostFilter 2020-07-28 20:51:01 -07:00
Kubernetes Prow Robot
f105cfc210
Merge pull request #93487 from ii/fix-missing-e2e-test-metadata
Add missing release metadata for e2e tests
2020-07-28 19:26:10 -07:00
Kubernetes Prow Robot
5ca6d567c4
Merge pull request #93086 from ii/heyste-create-delete-core-v1-collection-namespaced-pod-test
Promote Delete Collection Pods e2e test to conformance +1 endpoint coverage
2020-07-28 19:25:48 -07:00
Kubernetes Prow Robot
d2d8c63a87
Merge pull request #90939 from ii/ii-promote-endpoint-resource-lifecycle-test
Promote Endpoints resource lifecycle test - +4 endpoint coverage
2020-07-28 16:31:47 -07:00
Caleb Woodbine
0a6dc830da Fix label reference in deployment checks 2020-07-29 10:33:21 +12:00
Kubernetes Prow Robot
22329fbe13
Merge pull request #93495 from Huang-Wei/flake-node-affinity-priority
Fix an integration test flake on NodeAfffinity ScorePlugin
2020-07-28 14:21:47 -07:00
Caleb Woodbine
d4540f2b40 Update readiness checks 2020-07-29 08:54:55 +12:00
Caleb Woodbine
29664dd77e Update ready condition 2020-07-29 08:46:00 +12:00
Kubernetes Prow Robot
498b1e2279
Merge pull request #93491 from robscott/endpointslice-test-logging
Improving logging in EndpointSlice e2e tests
2020-07-28 10:09:48 -07:00
Wei Huang
862fdaaf79
Fix an integration test flake on NodeAfffinity ScorePlugin 2020-07-28 08:57:02 -07:00
Kubernetes Prow Robot
8d74486a6a
Merge pull request #93497 from robscott/endpointslicemirroring-integration-fix
Increasing allowed delay for EndpointSlice mirroring integration tests
2020-07-28 04:13:08 -07:00
Rob Scott
eb196be139
Increasing allowed delay for EndpointSlice mirroring integration tests.
The shorter 5s delay had become a source of flakes.
2020-07-27 21:43:15 -07:00
Rob Scott
6051a16edd
Improving logging in EndpointSlice e2e tests
When these tests failed it was unclear that the reason for the failure
could have been more EndpointSlices than expected. It was also unclear
what EndpointSlices were actually found when that occurred. This fixes
both of those issues.
2020-07-27 21:36:51 -07:00
Wei Huang
8936f9e4bf
Fix integration test flake on TestScorePlugin 2020-07-27 18:13:38 -07:00
Stephen Heywood
1077a9e862 Add missing release metadata for e2e tests 2020-07-27 21:56:49 +00:00
Kubernetes Prow Robot
00da04ba23
Merge pull request #92163 from knight42/fix/large-cluster-network-e2e
fix(e2e::network): eliminate the dependency of external ips
2020-07-27 07:30:17 -07:00
Caleb Woodbine
875dddf2ba Create Deployment resource lifecycle test 2020-07-27 16:26:39 +12:00
yue9944882
40f3242cd9 apf integration test: ensure no rejection 2020-07-27 10:42:37 +08:00
Caleb Woodbine
e311df70e1 Promote Endpoint resource lifecycle test 2020-07-27 09:11:42 +12:00
Jordan Liggitt
f33dc28094 generated: hack/update-hack-tools.sh && hack/update-vendor.sh 2020-07-25 16:45:02 -04:00
Stephen Augustus
479249b3a3 [go1.15] dependencies.yaml: Update to go1.15rc1
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-07-25 16:45:02 -04:00
Stephen Augustus
05ffc95347 [go1.15] Remove client support for darwin/386
Removed in go1.15 (GH/golang/go/issues/37610).

Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-07-25 16:45:01 -04:00
Kubernetes Prow Robot
17a2e5e990
Merge pull request #93402 from robscott/endpointslice-test-fix
Updating EndpointSlice e2e tests to be less flaky and easier to debug
2020-07-25 12:20:16 -07:00
Kubernetes Prow Robot
7348ab957c
Merge pull request #93356 from justaugustus/vdf
[VDF] Normalize container image references to k8s.gcr.io
2020-07-25 02:58:17 -07:00
Kubernetes Prow Robot
54e2070722
Merge pull request #93410 from nikhita/apimachinery-triage-labels
Don't apply triage/needs-information on apimachinery and instrumentation PRs
2020-07-24 19:08:16 -07:00
Kubernetes Prow Robot
c0a4d4b0b6
Merge pull request #93427 from liggitt/default-ingress-class
Mark default ingressclass tests serial, do not set default ingressclass in conformance
2020-07-24 14:26:30 -07:00
Kubernetes Prow Robot
6f7b6b6d13
Merge pull request #93426 from liggitt/test-certs
Add subjectAltName to test serving certificates
2020-07-24 14:26:16 -07:00
Dan Williams
31c563a46f agnhost/netexec: logging cleanup and print more verbose errors
There's currently no way to know whether an error is for SCTP or
UDP, for example:

Jul 24 09:55:54.469: INFO: netserver-0[e2e-nettest-3476].container[webserver].log
2020/07/24 09:53:52 Started UDP server
2020/07/24 09:53:52 Error occurred. error:protocol not supported

In this case the "Error occurred. error:protocol not supported" is
actually for the SCTP socket. Make that more apparent.
2020-07-24 14:40:58 -05:00
Rob Scott
3e4745ddaf
Updating EndpointSlice e2e tests to be less flaky and easier to debug
This adjusts tests that were waiting for Pods to be ready to instead
just wait for them to have IPs assigned to them. This relies on the
associated publishNotReadyAddresses field on Services. Additionally this
increases the the length of time we'll wait for EndpointSlices to be garbage
collected from 12s to 30s. Finally, this adds additional logging to
ExpectNoError calls so it's easier to understand where and why a test
failed.
2020-07-24 10:35:13 -07:00
Seth Jennings
78bdf89e50 e2e: examples: fix test image reference 2020-07-24 11:22:20 -05:00
Jordan Liggitt
4c203fd96e Mark default ingressclass tests serial, do not set default ingressclass in conformance 2020-07-24 12:12:20 -04:00
Nikhita Raghunath
3a74f461a2 Revert "Merge pull request #93160 from logicalhan/triage-instrumentation"
This reverts commit 1ed2cf1895, reversing
changes made to 04ecdb9eb6.
2020-07-24 18:09:07 +05:30
Kubernetes Prow Robot
607c5daabd
Merge pull request #93405 from liggitt/revert-pod-lifecycle-flake
Revert "Merge pull request #90942 from ii/ii-create-pod%2Bpodstatus-resource-lifecycle-test"
2020-07-24 04:30:22 -07:00
Kubernetes Prow Robot
55476fb872
Merge pull request #93373 from liggitt/deflake-pod-collection
Delete pod collection immediately
2020-07-24 02:08:22 -07:00
Nikhita Raghunath
c00dae0607 Revert "Merge pull request #93156 from logicalhan/triage-api-machinery"
This reverts commit 32438cf269, reversing
changes made to bb6a6aa391.
2020-07-24 13:01:02 +05:30
Jordan Liggitt
3fa8b15636 Revert "Merge pull request 92589 from ii/create-deployment-resource-lifecycle-test" 2020-07-24 00:30:13 -04:00
Jordan Liggitt
bf6f87c637 Revert "Merge pull request 90942 from ii/ii-create-pod%2Bpodstatus-resource-lifecycle-test" 2020-07-24 00:24:27 -04:00
Kubernetes Prow Robot
8a3fc2d7e2
Merge pull request #92589 from ii/create-deployment-resource-lifecycle-test
Create AppsV1Deployment resource lifecycle test - +6 endpoint coverage
2020-07-23 19:30:23 -07:00
Jordan Liggitt
c778008420 Shorten watch restart test, run in parallel 2020-07-23 17:17:29 -04:00
Kubernetes Prow Robot
8e5c02255c
Merge pull request #90942 from ii/ii-create-pod%2Bpodstatus-resource-lifecycle-test
Create Pod+PodStatus resource lifecycle test - +4 endpoint coverage
2020-07-23 13:54:23 -07:00
Jordan Liggitt
acce8871d6 Add subjectAltName to test serving certificates 2020-07-23 15:57:44 -04:00
Kubernetes Prow Robot
1ed2cf1895
Merge pull request #93160 from logicalhan/triage-instrumentation
auto triage sig-instrumentation tagged PRs
2020-07-23 11:19:26 -07:00
Kubernetes Prow Robot
04ecdb9eb6
Merge pull request #93332 from hasheddan/wait-for-owned
Wait for resources owned by pod to be cleaned up in sig-storage tests
2020-07-23 08:59:40 -07:00
Artyom Lukianov
ab7acb9ee3 e2e node: fix kubelet service restart failure
Under e2e tests possible the situation when we restart the kubelet
number of times in the short time frame. When it happens the systemd
can fail the service restart with the `Failed with result 'start-limit-hit'.`
error.

To avoid this situation the code will reset the kubelet service start failures
on each call to the kubelet restart command.

Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2020-07-23 10:56:32 +03:00
Kubernetes Prow Robot
09e2230951
Merge pull request #92891 from ii/update-and-improve-endpoint-resource-lifecycle-test
Update and improve Endpoints resource lifecycle test
2020-07-23 00:31:40 -07:00
Kubernetes Prow Robot
77d5f10b82
Merge pull request #93340 from liggitt/test-name
Stabilize integration test names
2020-07-22 23:09:39 -07:00
Jordan Liggitt
6ef0fa6244 Delete pod collection immediately 2020-07-23 00:01:46 -04:00
Caleb Woodbine
642bed3c6c Update test images to use conformance images 2020-07-23 14:13:40 +12:00
Caleb Woodbine
ee29022ac8 Update test images to use conformance images 2020-07-23 14:07:01 +12:00
hasheddan
efe3747c22
Wait for resources owned by pod to be cleaned up in ephemeral volume tests
sig-storage tests that delete pods need to wait for owned resources to
also be cleaned up before returning in the case that resources such as
ephemeral inline volumes are being used. This was previously implemented
by modifying the pod delete call of the e2e framework, which negatively
impacted other tests. This was reverted and now the logic has been moved
to StopPodAndDependents, which is local to the sig-storage tests.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-07-22 17:52:19 -05:00
Kubernetes Prow Robot
2fbe301b2d
Merge pull request #93296 from chelseychen/event-e2e-conformance
Add conformance test for events Update operation
2020-07-22 13:51:41 -07:00
Caleb Woodbine
c9acca7c48 Update and improve Endpoints resource lifecycle test 2020-07-23 08:42:07 +12:00
Stephen Augustus
99dd7570eb [VDF] Remove references to gcr.io/google-containers
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-07-22 16:10:12 -04:00
Stephen Augustus
90c223fa5c [VDF] Remove references to us.gcr.io/k8s-artifacts-prod
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-07-22 16:08:30 -04:00
Jordan Liggitt
8f9be8af13 Stabilize integration test names 2020-07-22 11:58:54 -04:00
Kubernetes Prow Robot
c2b7aa0353
Merge pull request #93000 from hakman/node-os-arch
Skip arch dependent kubectl test for non AMD64 nodes
2020-07-22 04:28:05 -07:00
Antonio Ojea
4bbf2c4a3e e2e dns test autodetect the IP family
instead of using tag to discriminate the e2e test, we can use
the e2e framework IPFamily method.
2020-07-22 12:23:21 +02:00
Caleb Woodbine
080ad0990a Add logs for Pod observations while watching for a running state 2020-07-22 16:44:18 +12:00
Caleb Woodbine
a0861aeb52 Fix fmt and staticcheck 2020-07-22 15:23:56 +12:00
Kubernetes Prow Robot
b0140227fb
Merge pull request #93306 from bart0sh/PR0092-revert-foreground-deletion
Revert "e2epod: use foreground deletion"
2020-07-21 19:52:43 -07:00
Kubernetes Prow Robot
32438cf269
Merge pull request #93156 from logicalhan/triage-api-machinery
automatically assign triage labels to api-machinery tagged PRs
2020-07-21 19:52:34 -07:00
Caleb Woodbine
d26cb7150a Remove created check 2020-07-22 13:55:29 +12:00
Caleb Woodbine
84de375921 Fix error message 2020-07-22 11:17:37 +12:00
Caleb Woodbine
d60a57ad73 Update watches to use watchtools.Until, namespace var name 2020-07-22 10:33:55 +12:00
Caleb Woodbine
bd34e1c445 Fix label patch and check 2020-07-22 10:07:18 +12:00
Caleb Woodbine
11492f7b91 Add check for Modified after patch; Update checks for scale 2020-07-22 09:57:11 +12:00
Caleb Woodbine
fc8e24c686 Add watchtools.Until for fetching watch events; Remove plain watch 2020-07-22 09:29:09 +12:00
Caleb Woodbine
9c2330db4c Revert ginkgoRecover 2020-07-22 08:48:28 +12:00
Ed Bartosh
6a40cc90e9 Revert "e2epod: use foreground deletion"
This reverts commit af91e76d "e2epod: use foreground deletion"
and fixes node-kubelet-conformance tests.
2020-07-21 22:40:31 +03:00
Chelsey Chen
5b1bdd8e38 Add comformance test for event Update 2020-07-21 14:53:26 -04:00
Kubernetes Prow Robot
a1a2f8c5f8
Merge pull request #93225 from hasheddan/storage-panic
Return error instead of panic if container index outside bounds
2020-07-21 09:15:15 -07:00
Kubernetes Prow Robot
adabcc31f0
Merge pull request #93212 from liggitt/gcepd-delete
Deflake GCEPD namespace deletion test
2020-07-21 01:55:28 -07:00
Stephen Heywood
86ba88d52f Promote: Discovery PreferredVersion test 2020-07-21 00:30:25 +00:00
Kubernetes Prow Robot
5feab0aa1e
Merge pull request #93207 from hasheddan/nvidia-gpu-installer
Use local daemonset manifest for installing Nvidia drivers
2020-07-20 09:02:51 -07:00
Kubernetes Prow Robot
c237804533
Merge pull request #92755 from chelseychen/event-e2e-conformance
Promote Event CRUD tests to conformance
2020-07-20 05:50:51 -07:00
Caleb Woodbine
125e839d77 Fix formatting 2020-07-20 13:16:35 +12:00
Caleb Woodbine
05163497bc Fix bazel build 2020-07-20 11:15:57 +12:00
Caleb Woodbine
b38d7f25fe Remove watch tooling 2020-07-20 11:00:37 +12:00
Caleb Woodbine
dc30156fb8 Update error handling formatting, handling of type conversion in watch event loop 2020-07-20 10:03:49 +12:00
Caleb Woodbine
6e04fbdde1 Update error statements 2020-07-20 10:03:49 +12:00
Caleb Woodbine
a2c19d7ae0 Add watch checks 2020-07-20 10:03:49 +12:00
Caleb Woodbine
a4e29f2481 Fix formatting 2020-07-20 10:03:49 +12:00
Caleb Woodbine
cb7835bcb0 Add check for unmarshalling onto a Pod object type 2020-07-20 10:03:49 +12:00
Caleb Woodbine
c6a86b5fed Fix test to use values from v1, wording; Update variables to be more templatable 2020-07-20 10:03:49 +12:00
Caleb Woodbine
47cd8dde56 Update to check response data of UpdateStatus instead of listing after updating the status 2020-07-20 10:03:49 +12:00
Caleb Woodbine
19e9368eb8 Create Pod+PodStatus resource lifecycle test 2020-07-20 10:03:49 +12:00
Kubernetes Prow Robot
363c3b89f5
Merge pull request #93198 from justaugustus/go1146
Update Golang to v1.14.6
2020-07-19 09:10:50 -07:00
hasheddan
4e4d629af7
Return error instead of panic if container index outside bounds
Adds check for index out of bounds error instead of panic when passing
container to kubectl exec.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-07-19 10:04:53 -05:00
Kubernetes Prow Robot
66020d2292
Merge pull request #93110 from dims/adding-dims-as-reviewer-for-test
Adding dims as reviewer for test/
2020-07-19 04:32:50 -07:00
Kubernetes Prow Robot
92e471a0bd
Merge pull request #93216 from liggitt/deflake-preferred-version
Deflake PreferredVersion e2e test
2020-07-18 21:44:50 -07:00
Jordan Liggitt
9718e7906f Deflake PreferredVersion e2e test 2020-07-18 22:51:56 -04:00
hasheddan
e990698d5f
Use local daemonset manifest for installing Nvidia drivers
Updates sig-scheduling e2e Nvidia GPU tests to install drivers using
local manifest by default. Currently the DaemonSet is fetched from the
GoogleCloudPlatform/container-enginer-accelerators repo by default.
Using a local manifest allows for manually specifying the image
cos-gpu-installer image rather than always using latest. A remote
manifest can still be fetched by setting
NVIDIA_DRIVER_INSTALLER_DAEMONSET env var.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-07-18 21:01:00 -05:00
Kubernetes Prow Robot
a789d56b65
Merge pull request #93119 from dcbw/e2e-ingress-misisng-return
test/e2e/ingress: add missing return to fix panics on !GCE
2020-07-18 13:58:49 -07:00
Jordan Liggitt
9d83ca4b02 Deflake GCEPD namespace deletion test 2020-07-18 15:32:02 -04:00
Kubernetes Prow Robot
3a0b683c01
Merge pull request #93084 from ii/heyste-get-code-version-test
Promote Check Server Version e2e test to conformance - 1 Endpoint Coverage
2020-07-18 06:14:50 -07:00
Stephen Augustus
3bbcba9b84 Update Golang to v1.14.6
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-07-17 14:47:21 -04:00
Kenichi Omichi
80c19e4cef Move MasterUpgrade() out from e2e framework
MasterUpgrade() is called only from cloud/gcp/cluster_upgrade.go.
And the function depends on GCP, so it is nice to move this function
from e2e framework.
2020-07-17 18:27:35 +00:00
Kubernetes Prow Robot
f9ad7db9a6
Merge pull request #92349 from jingyih/update_etcd_server_3p4p9
Update default etcd server to 3.4.9
2020-07-17 07:53:01 -07:00
Kubernetes Prow Robot
a3e3b355fa
Merge pull request #92619 from ii/heyste-get-apigroup-list-test
Write checkAPIGroupPreferredVersion Test - +16 Endpoint coverage
2020-07-17 02:51:01 -07:00
Kubernetes Prow Robot
23b66eaabd
Merge pull request #93038 from ii/fix-ingress-status
Write readNetworkingV1NamespacedIngressStatus test - +1 endpoint coverage
2020-07-16 23:05:00 -07:00
Stephen Heywood
ca550a280a Relocate preferred version e2e test to discovery.go 2020-07-16 21:13:55 +00:00
Stephen Heywood
6e3919fae7 Check that empty sets are passed through the test 2020-07-16 20:50:14 +00:00
Stephen Heywood
a0410c8789 Claify the intention of the e2e test 2020-07-16 20:50:14 +00:00
Stephen Heywood
f886164491 Validate that PreferredVersion contains a valid option 2020-07-16 20:50:14 +00:00
Stephen Heywood
e81b6dce15 Update BUILD 2020-07-16 20:50:14 +00:00
Stephen Heywood
bc873c192c Fix naming for apigroup list 2020-07-16 20:50:14 +00:00
Stephen Heywood
dcf72dfd32 Update bazel BUILD 2020-07-16 20:50:14 +00:00
Stephen Heywood
a9cb510c7f Fix test name and log formatting 2020-07-16 20:50:14 +00:00
Stephen Heywood
6a6ccbc45c Add e2e test for get*APIGroupList endpoints 2020-07-16 20:50:14 +00:00
Han Kang
f3c02d7221 auto triage sig-instrumentation tagged PRs
Change-Id: Ibae7373fb197485aeb222f1455515178cc3b4d13
2020-07-16 13:48:25 -07:00
Han Kang
9129dbc98b automatically assign triage labels to api-machinery tagged PRs
Change-Id: Ifcc8a85d190d6370423af27f6e6c4c90b8472981
2020-07-16 13:13:59 -07:00
Dan Williams
e24f9ed1cd test/e2e/ingress: add missing return to fix panics on !GCE
A missing 'return' causes the AfterEach() to try to clean up
GCE ingress objects when they haven't been created, because
the test was skipped in BeforeEach().

2020-07-15T17:21:10.3690332Z [BeforeEach] GCE [Slow] [Feature:kubemci]
2020-07-15T17:21:10.3690715Z   /home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/network/ingress.go:592
2020-07-15T17:21:10.3690970Z Jul 15 17:21:10.368: INFO: Only supported for providers [gce gke] (not )
2020-07-15T17:21:10.3694003Z [AfterEach] GCE [Slow] [Feature:kubemci]
2020-07-15T17:21:10.3696927Z   /home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/network/ingress.go:614
2020-07-15T17:21:10.3697845Z [1mSTEP[0m: No ingress created, no cleanup necessary
2020-07-15T17:21:10.3698213Z [1mSTEP[0m: Cleaning up cloud resources
2020-07-15T17:21:15.3709789Z E0715 17:21:15.370134   78875 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
2020-07-15T17:21:15.3710883Z goroutine 63 [running]:
2020-07-15T17:21:15.3711892Z [AfterEach] [sig-network] Loadbalancing: L7
2020-07-15T17:21:15.3712802Z k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime.logPanic(0x40215e0, 0x7b71700)
2020-07-15T17:21:15.3713654Z   /home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:179
2020-07-15T17:21:15.3714871Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0xa3
2020-07-15T17:21:15.3715130Z Jul 15 17:21:15.370: INFO: Waiting up to 3m0s for all (but 0) nodes to be ready
2020-07-15T17:21:15.3715703Z k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
2020-07-15T17:21:15.3716215Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x82
2020-07-15T17:21:15.3716610Z panic(0x40215e0, 0x7b71700)
2020-07-15T17:21:15.3717184Z 	/opt/hostedtoolcache/go/1.13.4/x64/src/runtime/panic.go:679 +0x1b2
2020-07-15T17:21:15.3717803Z k8s.io/kubernetes/test/e2e/framework/providers/gce.(*IngressController).deleteForwardingRule(0x0, 0x0, 0xc0034cce04, 0x2)
2020-07-15T17:21:15.3718372Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/providers/gce/ingress.go:158 +0x20b
2020-07-15T17:21:15.3718859Z k8s.io/kubernetes/test/e2e/framework/providers/gce.(*IngressController).Cleanup(0x0, 0x0, 0x1, 0xc0034ccd68)
2020-07-15T17:21:15.3719369Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/providers/gce/ingress.go:724 +0x38
2020-07-15T17:21:15.3719947Z k8s.io/kubernetes/test/e2e/framework/providers/gce.(*IngressController).CleanupIngressControllerWithTimeout.func1(0xc0034ccd78, 0xc00315e8a0, 0xc0002acf88)
2020-07-15T17:21:15.3720474Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/providers/gce/ingress.go:88 +0x33
2020-07-15T17:21:15.3720968Z k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0xc0034ccfa0, 0xc0034cce00, 0x0, 0x0)
2020-07-15T17:21:15.3721508Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:211 +0x6f
2020-07-15T17:21:15.3722020Z k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.WaitFor(0xc003393120, 0xc0034ccfa0, 0xc00341ae40, 0x0, 0x0)
2020-07-15T17:21:15.3722542Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:528 +0x159
2020-07-15T17:21:15.3723233Z k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.pollInternal(0xc003393120, 0xc0034ccfa0, 0x0, 0x0)
2020-07-15T17:21:15.3723771Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:414 +0x9f
2020-07-15T17:21:15.3724305Z k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.Poll(0x12a05f200, 0xd18c2e2800, 0xc0034ccfa0, 0xc0000a4940, 0xc0034ccfb0)
2020-07-15T17:21:15.3724872Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:408 +0x4d
2020-07-15T17:21:15.3725377Z k8s.io/kubernetes/test/e2e/framework/providers/gce.(*IngressController).CleanupIngressControllerWithTimeout(0x0, 0xd18c2e2800, 0x0, 0x0)
2020-07-15T17:21:15.3726709Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/providers/gce/ingress.go:87 +0x69
2020-07-15T17:21:15.3743725Z k8s.io/kubernetes/test/e2e/framework/providers/gce.(*IngressController).CleanupIngressController(...)
2020-07-15T17:21:15.3744385Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/providers/gce/ingress.go:81
2020-07-15T17:21:15.3744822Z k8s.io/kubernetes/test/e2e/network.glob..func10.4.2()
2020-07-15T17:21:15.3745340Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/network/ingress.go:626 +0x12a
2020-07-15T17:21:15.3745868Z k8s.io/kubernetes/vendor/github.com/onsi/ginkgo/internal/leafnodes.(*runner).runSync(0xc000e17740, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
2020-07-15T17:21:15.3746756Z 	/home/runner/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/onsi/ginkgo/internal/leafnodes/runner.go:113 +0xb8

Fixes: 0f81362fa0
2020-07-16 14:56:08 -05:00
Kubernetes Prow Robot
6a8129f7f6
Merge pull request #92957 from r4f4/override-volume-images
Make nested /volume/ repo images overridable
2020-07-16 06:31:41 -07:00
Kubernetes Prow Robot
bd9be7b544
Merge pull request #93113 from hasheddan/integration-skip
Skip failing scheduler integration tests until they can be run successfully
2020-07-16 00:07:41 -07:00
Kubernetes Prow Robot
1f4da99f69
Merge pull request #92813 from ii/heyste-create-delete-core-v1-collection-namespaced-event-test
Promote deleteCoreV1CollectionNamespacedEvent test - +1 endpoint coverage
2020-07-15 19:16:34 -07:00
Michelle Au
10a8c195a1 Export WaitForCSIDriverRegistrationOnAllNodes to be used by external csi driver repos
Change-Id: Ie61430b1050a778d8ba98177e0c995ff2553f9cd
2020-07-15 16:53:37 -07:00
Gaurav Singh
339ed92ba8 [e2e/storage] fix range issue in getCSINodeLimits
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
2020-07-15 19:09:30 -04:00
Kubernetes Prow Robot
8c300565c2
Merge pull request #90941 from ii/ii-promote-configmap-lifecycle
Promote: ConfigMap Lifecycle test - +2 conformance endpoint coverage
2020-07-15 15:28:48 -07:00
hasheddan
a70b78e49a
Skip failing scheduler integration tests until they can be run successfully
The IPAM and scheduler performance tests are currently causing
integration-master job to fail because of timeouts. They were not
previously running as part of integration-master, so we can disable them
without loss of test coverage. They should be re-enabled as part of fix
for #93112.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-07-15 10:28:35 -05:00
Davanum Srinivas
16fb6733a1
Adding dims as reviewer for test/
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-07-15 07:19:53 -04:00
Stephen Augustus
c4b6678757 Update Golang to v1.14.5
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-07-15 00:10:05 -04:00
Kubernetes Prow Robot
c46c1c043e
Merge pull request #91742 from jingxu97/June/wintests
Fix subPath tests for Windows
2020-07-13 23:29:21 -07:00
Kubernetes Prow Robot
e45a598a5c
Merge pull request #93029 from rajansandeep/fixfailtests
Fix failing DNS tests by removing deprecated option
2020-07-13 20:21:35 -07:00
Stephen Heywood
44cd9d3cfe Promote delete collection pods e2e test to conformance 2020-07-14 02:56:54 +00:00
Stephen Heywood
236ad47783 Promote server version e2e test to conformance 2020-07-14 02:22:07 +00:00
Kubernetes Prow Robot
6079cebfae
Merge pull request #90187 from julianvmodesto/last-applied-updater
Implement server-side apply upgrade and downgrade
2020-07-13 16:45:20 -07:00
Kenichi Omichi
c86caa608d Move WatchUntilWithoutRetry() from e2e framework
WatchUntilWithoutRetry() is called from e2e/apps/rc.go only.
So this moves the function to reduce e2e/framework/util.go code.
2020-07-13 22:54:41 +00:00
Stephen Heywood
31962804c0 Update bazel BUILD 2020-07-13 20:40:11 +00:00
Ciprian Hacman
5d87704ed3 Skip arch dependent kubectl test for non AMD64 nodes 2020-07-13 20:25:14 +03:00
Ciprian Hacman
33ac3c36cc Add new flags for node arch 2020-07-13 20:25:14 +03:00
Sandeep Rajan
211448759c Fix failing DNS tests by removing deprecated upstream option 2020-07-13 12:53:19 -04:00
Chelsey Chen
7e04ffbc31 Promote Event CRUD tests to conformance 2020-07-13 09:50:23 -04:00
Stephen Heywood
d055eb5f61 Ingress: Add test for API get /status 2020-07-13 10:33:00 +00:00
Gaurav Singh
22dc4744a0 [test/kubelet]: Fix deadlock in watch manager test
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
2020-07-12 10:56:28 -04:00
Kubernetes Prow Robot
53334f063f
Merge pull request #92908 from RobertKielty/error_text_clarification
fixes 92907 improves test error output
2020-07-12 06:59:16 -07:00
Kubernetes Prow Robot
8da9e9b326
Merge pull request #92902 from k-toyoda-pi/unset_alias_metrics_grabber
e2e/metrics_grabber: unset aliases for ginkgo and gomega packages
2020-07-12 06:58:57 -07:00
Stefan Bueringer
06e8780818
conformance-tests: make orpan RS created by deployment test more resilient 2020-07-12 07:51:24 +02:00
Kubernetes Prow Robot
888255bf3a
Merge pull request #92879 from liggitt/short-integration-tests
Skip expensive integration tests in short run mode
2020-07-11 20:57:52 -07:00
Kubernetes Prow Robot
c23a4b08d7
Merge pull request #92874 from chelseychen/event-api
Fix a few places where source field is empty when creating events via events/v1
2020-07-11 20:57:31 -07:00
Kubernetes Prow Robot
d2f4cc032b
Merge pull request #92841 from chethanv28/fix-typo-e2e-tests
Fix typo in vsphere e2e test names
2020-07-11 20:56:33 -07:00
Kubernetes Prow Robot
780f7f0ce9
Merge pull request #92555 from AndiLi99/AndiLi99/snapshot_tests
Refactor tests in snapshottable and fix #73625
2020-07-11 20:55:35 -07:00
Kubernetes Prow Robot
70f68dbf74
Merge pull request #92856 from saschagrunert/psp-seccomp-ga
Implement PodSecurityPolicy enforcement for seccomp GA
2020-07-11 15:35:22 -07:00
hasheddan
a527c10edc
Make sure pod tested for eviction with PDB is not scheduled for deletion
In #91342 attempting to evict a Pod with a DeletionTimestamp caused
checking of PDBs to be ignored due to the fact that a Pod scheduled for
deletion should not be factored into a disruption budget. However, PDB
eviction tests currently will sometimes select a Pod already scheduled
for deletion, expecting that attempting to evict it will conflict with
the PDB. This updates those tests to make sure a Pod with deletion
timestamp is not selected for eviction when it is intended to violate a
PDB.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-07-11 11:25:19 -05:00
Nikhita Raghunath
cb2fb92686 test/images/pets: remove OWNERS to cleanup inactive members
bprashanth hasn't be active since the release of v1.11. Removing them
from test/images/pets/OWNERS would leave mkumatag as the sole approver.

But mkumatag is also an approver for test/images/OWNERS so this commit
removes the test/images/pets/OWNERS completely.

Note: we should try to find more OWNERS for test/images/pets instead,
but this cleanup is a short term solution to avoid the bot suggesting
inactive members for reviews and approval.
2020-07-11 19:35:47 +05:30
Kenichi Omichi
029b2d2197 Remove DeprecatedMightBeMasterNode()
This removes DeprecatedGetMasterAndWorkerNodes() usage from vsphere e2e
test as deprecated function cleanup.
Then all callers of DeprecatedMightBeMasterNode() have been removed.
So this removes DeprecatedMightBeMasterNode() itself also.
2020-07-11 03:18:44 +00:00
Kubernetes Prow Robot
93e76f5081
Merge pull request #92442 from tedyu/grace-period-with-map
Respect grace period when removing mirror pod
2020-07-10 17:49:23 -07:00
Kubernetes Prow Robot
cccb28bb5e
Merge pull request #92812 from ii/heyste-create-delete-core-v1-collection-namespaced-pod-template-test
Promote DeleteCoreV1CollectionNamespacedPodTemplate test+promote - +1 endpoint
2020-07-10 15:43:01 -07:00
Kubernetes Prow Robot
42ae2003dd
Merge pull request #92805 from chethanv28/fix-e2e-test-vsphere_utils
Fix vsphere util method - disksAreAttached
2020-07-10 15:42:51 -07:00
Kubernetes Prow Robot
2613cbc2a7
Merge pull request #92802 from divyenpatel/fix-e2e-test-vsphere_volume_datastore
fixed e2e test vsphere_volume_datastore.go
2020-07-10 15:42:41 -07:00
Kubernetes Prow Robot
0cb7e320a5
Merge pull request #92784 from pohly/generic-ephemeral-inline-volumes
generic ephemeral inline volumes
2020-07-10 15:41:46 -07:00
Kubernetes Prow Robot
49dced762d
Merge pull request #92661 from jpbetz/smd-bump-field-unsetting
Bump to SMD PR#166 to pick up unsetting field changes and add integration tests
2020-07-10 15:41:05 -07:00
Kubernetes Prow Robot
4efed03276
Merge pull request #91637 from robscott/endpointslice-mirroring
Adding new EndpointSlice Mirroring Controller
2020-07-10 10:19:48 -07:00
Sascha Grunert
96fb83c4c1
Implement PodSecurityPolicy enforcement for seccomp GA
This implements the necessary pieced for the PodSecurityPolicy
enforcement like described in the appropriate KEP section:

https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/20190717-seccomp-ga.md#podsecuritypolicy-enforcement

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-07-10 15:55:21 +02:00
Rafael Fonseca
74183e0d88 Make nested /volume/ repo images overridable
The multi-arch container images used in tests live in quay.io which
doesn't support nesting. By making the /volume/ images repo configurable,
we are able to override them despite our current limitation.

Signed-off-by: Rafael Fonseca <r4f4rfs@gmail.com>
2020-07-10 13:37:12 +02:00
Patrick Ohly
2468a24b7a GenericEphemeralVolume: E2E test
This extends the existing "ephemeral volume" tests to also cover
generic ephemeral inline volumes. They get instantiated for all
drivers (CSI and others) which support persistent volume provisioning,
for several different filesystems.

Configuring the number of inline volumes via a flag with a computed
name had been identified as problematic before and now gets removed
because re-using the tests as a stress test with a higher number of
volumes should be added and configured separately.
2020-07-09 23:29:24 +02:00
Stephen Heywood
9520a87488 Fix metadata formatting 2020-07-09 21:16:22 +00:00
Jing Xu
31db94c848 Fix subPath tests for Windows
Windows test for subPath is failing due to an issue related to
removeUnusedContainers calls. After image is changed to Agnhost, it
automatically has a args by default. However, there are places to use
container commands instead of args and causing issues.

This is the first step to fix this issue. Next plan to replace
busybox used in Linux with Agnhost which can work for both linux and
windows.

I also mark two subPath tests as LinuxOnly. I think they are not ready
for windows yet. Before they were passing due to wrong reason. The tests
checks failed container status but the contain fails due to other
reasons than what we expected.
2020-07-09 11:14:17 -07:00
Andi Li
b64f05b70a Change expected content to string constant. Cleanup DeleteAndWaitSnapshot
Use the correct format specifier
2020-07-09 16:30:16 +00:00
Kubernetes Prow Robot
1b4e904183
Merge pull request #92745 from hakman/disruption-image-busybox
Use Pause image for DisruptionController tests
2020-07-09 09:10:00 -07:00
Kubernetes Prow Robot
026cd0e2d7
Merge pull request #92709 from knabben/e2e-kubelet-config
Fetching Kubelet address from Kubelet configuration for e2e test
2020-07-09 09:09:28 -07:00
Kubernetes Prow Robot
883e4eb487
Merge pull request #92627 from oomichi/remove-Deprecated
Add nodeHasControlPlanePods()
2020-07-09 09:07:45 -07:00
Kubernetes Prow Robot
1f89f42602
Merge pull request #92621 from spiffxp/simplify-configmap-lifecycle-test
Simplify ConfigMap lifecycle e2e test
2020-07-09 09:07:31 -07:00
Kubernetes Prow Robot
fe43b104ba
Merge pull request #91745 from Bisnode/gh-87369
Presence of bearer token should cancel exec action
2020-07-09 09:07:00 -07:00
Kubernetes Prow Robot
6dd8d7131f
Merge pull request #91529 from bart0sh/PR0090-remove-benchmark.yaml
Remove unused e2e test image config
2020-07-09 09:06:46 -07:00
Kubernetes Prow Robot
d9b084a9d1
Merge pull request #89629 from fatedier/subpath
Modified subpath configmap mount fails when container restarts
2020-07-09 09:06:32 -07:00
Joe Betz
3c2842fbc6 Add ownership transfer test 2020-07-09 06:18:59 -07:00
Joe Betz
ec136db9ce Add server side apply unsetting field tests 2020-07-09 06:18:58 -07:00
Patrick Ohly
af91e76df8 e2epod: use foreground deletion
This is useful in case that the pod owns some resources, because then
waiting for the pod ensures that those resources also were removed.

This should not matter at the moment because pods typically are not
owners of any other object, but that will change with the introduction
of generic ephemeral inline
volumes (https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1698-generic-ephemeral-volumes).
2020-07-09 11:03:03 +02:00
Kubernetes Prow Robot
2e6d06c13a
Merge pull request #92479 from ii/heyste-delete-core-v1-collection-namespaced-pod-test
Create deleteCoreV1CollectionNamespacedPod test - +1 endpoint coverage
2020-07-09 00:05:10 -07:00
Kubernetes Prow Robot
94a08e159a
Merge pull request #92387 from pohly/csi-storage-capacity
CSI storage capacity check
2020-07-09 00:04:59 -07:00
Julian V. Modesto
e4368eb67e Implement server-side apply upgrade & downgrade.
- Allow client-side to server-side apply upgrade.

  Ensure that a user can change management of an object from client-side apply to
  server-side apply without conflicts.

- Allow server-side apply to client-side downgrade.

  For an object managed with client-side apply, a user may upgrade to
  managing the object with server-side apply, then decide to downgrade.

  We can support this downgrade by keeping the last-applied-configuration
  annotation for client-side apply updated with server-side apply.
2020-07-08 19:14:03 -04:00
Ted Yu
a76a959294 Respect grace period when removing mirror pod
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-07-08 13:38:24 -07:00
Andi Li
913f626adb Add data semantics test for volume snapshots
The test steps are as follows:
1. Write some data
2. Take a snapshot
3. Write more data
4. Create a new volume from snapshot
5. Validate data is the old data
2020-07-08 18:45:54 +00:00
Andi Li
9b0dff7686 Refactor snapshottable and provisioning tests
1. Use ginkgo before each to do common setup
2. Use volume resource to create SC, PV, PVC and handle cleanup
3. Add SnapshotResource to handle creating and cleanup of VS, VSC, VSClass
4. Add test pattern for deletion policy: Delete vs Retain
5. Use test pattern to determine test behaviour
6. Add test pattern for preprovisioned snapshot (not implemented)

These changes are made to consolidate common setup steps and stop resource
leaks by waiting for objects to be deleted.
2020-07-08 18:45:54 +00:00
Wei Huang
d65a97848e
codegen 2020-07-08 09:58:42 -07:00
Wei Huang
4b26ef2217
Remove DisablePreemption field from SchedulerConfig v1beta1
DisablePreemption field can be removed as it can be deduced from PostFilterPlugins.
2020-07-08 09:58:42 -07:00
RobertKielty
8e1548f24b lowercases start of the fmt.Errorf msg as per convention, fixes spelling error 2020-07-08 14:31:41 +01:00
Chelsey Chen
e010436e2a Update conversion between ReportingController and Source.Component 2020-07-08 08:46:38 -04:00
RobertKielty
10bdcb8ef1 fixes 92907 improves test error output 2020-07-08 13:10:50 +01:00
Kubernetes Prow Robot
9eced04014
Merge pull request #91007 from lsytj0413/fix-89443
test(e2e_node): Parallelize prepulling all images in `e2e_node` tests
2020-07-08 04:19:07 -07:00
toyoda
0e0d425ace e2e/metrics_grabber: unset aliases for ginkgo and gomega packages 2020-07-08 17:49:34 +09:00
jingyih
e9bf1c3c90 Update default etcd server to 3.4.9 2020-07-08 14:16:40 +08:00
Patrick Ohly
30f93802a7 storage capacity: check pod events to finish negative tests faster
By creating CSIStorageCapacity objects in advance, we get the
FailedScheduling pod event if (and only if!) the test is expected to
fail because of insufficient or missing capacity. We can use that as
indicator that waiting for pod start can be stopped early. However,
because we might not get to see the event under load, we still need
the timeout.
2020-07-08 08:02:26 +02:00
Patrick Ohly
bd0579103a e2e storage: dead code removal and cleanup
Setting testParameters.scName had no effect because
StorageClassTest.StorageClassName isn't used anywhere. Instead, the
storage class name is generated dynamically.
2020-07-08 08:02:26 +02:00
Patrick Ohly
cf735a3bf7 CSIStorageCapacity: integration test
This is similar to the E2E test, it just doesn't need a real cluster.
2020-07-08 08:02:26 +02:00
Patrick Ohly
567ce87aee CSIStorageCapacity: E2E test with mock driver
We can create CSIStorageCapacity objects manually, therefore we don't
need the updated external-provisioner for these tests.
2020-07-08 08:02:26 +02:00
Ciprian Hacman
9a23ee02b3 Use Pause image for DisruptionController tests 2020-07-08 06:40:41 +03:00
Kubernetes Prow Robot
7de3f938c8
Merge pull request #92873 from liggitt/admission-flake
Deflake timeout admission test
2020-07-07 13:28:06 -07:00
Jordan Liggitt
1c8c850944 Skip expensive integration tests in short run mode 2020-07-07 14:41:21 -04:00
Kenichi Omichi
e1f4d5b110 Add nodeHasControlPlanePods()
DeprecatedMightBeMasterNode() has been marked as deprecated and we need to
find alternative way for callers of the function.
In NewResourceUsageGatherer(), the function was called for distinguishing
the specified pods are running on master nodes, and the gatherer gathers
those pods' resource usage.
This adds nodeHasControlPlanePods() to gistinguish the specified pods
are running on nodes which are operating control plane pods (kube-scheduler
and kube-controller-manager) and replace callers of DeprecatedMightBeMasterNode()
with this new function as better way.
2020-07-07 18:19:22 +00:00
Jordan Liggitt
dcc536097a Deflake timeout admission test 2020-07-07 13:36:07 -04:00
Quan Tian
b2b082f54f Don't create a new sandbox for pod with RestartPolicyOnFailure if all containers succeeded
The kubelet would attempt to create a new sandbox for a pod whose
RestartPolicy is OnFailure even after all container succeeded. It caused
unnecessary CRI and CNI calls, confusing logs and conflicts between the
routine that creates the new sandbox and the routine that kills the Pod.

This patch checks the containers to start and stops creating sandbox if
no container is supposed to start.
2020-07-07 22:49:48 +08:00
Anders Eknert
c595f983fa Move kube_flags_without_token creation 2020-07-06 21:55:23 +02:00
Rob Scott
85d5a15841
Adding integration and e2e tests to cover EndpointSliceMirroring 2020-07-06 12:43:34 -07:00
Chethan Venkatesh
3e19a33cea Fix typo in vsphere e2e tests 2020-07-06 11:39:26 -07:00
Jeff Grafton
089a1af421 Move ixdy to emeritus 2020-07-06 10:39:56 -07:00
Stephen Heywood
e76ac2dc2b Promote: event delete a collection test 2020-07-05 23:27:17 +00:00
Kubernetes Prow Robot
865cbf0bdf
Merge pull request #91517 from gaurav1086/Remove_unnecessary_Sprintfs
cleanup: Remove_unnecessary_Sprintfs
2020-07-05 05:26:49 -07:00
Chethan Venkatesh
5849f1681c Fix vsphere util method - disksAreAttached 2020-07-04 19:33:36 -07:00
Divyen Patel
950ed79e41 fixed e2e test vsphere_volume_datastore.go 2020-07-04 16:56:27 -07:00