Commit Graph

18267 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
c72b30b3b7
Merge pull request #93534 from everpeace/score-in-preemption-handle
scheduler: expose Run[Pre]ScorePlugins functions to PreemptionHandle(through PluginRunner)
2020-10-09 20:34:47 -07:00
Kubernetes Prow Robot
3e36ac3093
Merge pull request #95378 from danwinship/fix-dual-stack-canaries
fix kubelet iptables monitoring on dual-stack
2020-10-09 19:38:59 -07:00
Kubernetes Prow Robot
6d5f928023
Merge pull request #95397 from masap/test-integratio/fix-warning
test-integration: Fix using deprecated default cluster IPs
2020-10-09 15:57:48 -07:00
Dan Winship
3b9f358eb9 Don't depend on DNS in NetworkPolicy tests
The NetworkPolicy tests work by trying to connect to a service by its
name, which means that for the tests that involved creating egress
policies, it had to always create an extra rule allowing egress for
DNS, but this assumed that DNS was running on UDP port 53. If it was
running somewhere else (eg if you changed the CoreDNS pods to use port
5353 to avoid needing to give them the NET_BIND_SERVICE capability)
then the NetworkPolicy tests would fail.

Fix this by making the tests connect to their services by IP rather
than by name, and removing all the DNS special-case rules. There are
other tests that ensure that Service DNS works.
2020-10-09 16:16:43 -04:00
Dan Winship
3f4c2d6fe0 Improve logging of iptables canary test
Since it's [Disruptive] it only runs in periodic jobs so it's better
to have too much debugging info than too little.
2020-10-09 11:59:21 -04:00
Kubernetes Prow Robot
ee297b6f4d
Merge pull request #95053 from tanjunchen/replace-k8s-master
test/e2e/framework/:use the term 'Control Plane' in comment
2020-10-08 19:31:05 -07:00
Morgan Bauer
459a20c607
always collect containerd logs
containerd is almost always running, even below docker
2020-10-08 12:40:01 -07:00
Masashi Honma
bcbd16b94b test-integration: Fix using deprecated default cluster IPs
The integration test for pods produces a warning caused by using deprecated
default cluster IPs.

$ make test-integration WHAT=./test/integration/pods GOFLAGS="-v"
W1007 17:25:28.217410  100721 services.go:37] No CIDR for service cluster IPs specified. Default value which was 10.0.0.0/24 is deprecated and will be removed in future releases. Please specify it using --service-cluster-ip-range on kube-apiserver.

This warning appears 36 times after running all tests. This patch removes all
the warnings.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
2020-10-08 20:38:58 +09:00
Kubernetes Prow Robot
128b697d55
Merge pull request #95276 from jayunit100/95216_ginkgo
Have udp tests return idiomatic ginkgo errors, update reporting of mutating parts
2020-10-07 10:44:15 -07:00
Antonio Ojea
a0887285f5 add ipv6 support to the image issue-74839
Co-authored-by: Dan Winship <danwinship@redhat.com>
2020-10-07 18:30:47 +02:00
Kubernetes Prow Robot
777e84e184
Merge pull request #95101 from a1k24/patch-92402-staticcheck
fixes test/integration/ttlcontroller staticcheck
2020-10-07 02:16:42 -07:00
Kubernetes Prow Robot
7a5b058f27
Merge pull request #95016 from Jefftree/remove-kubeconform
Remove kubeconform
2020-10-06 16:54:42 -07:00
Kubernetes Prow Robot
5430a828e1
Merge pull request #95150 from adelina-t/patch-2
Fix test "[sig-windows] DNS should support configurable pod DNS servers"
2020-10-06 14:14:42 -07:00
Kubernetes Prow Robot
810560dc98
Merge pull request #95318 from aojea/fixsudo
e2e hostexec commands does not need sudo
2020-10-06 13:00:56 -07:00
Kubernetes Prow Robot
9e1e551e83
Merge pull request #95335 from marosset/windows-e2e-owners-update
Adding marosset to test/e2e/windows/OWNERS approver
2020-10-06 11:16:42 -07:00
marosset
669d480a4e Adding marosset to test/e2e/windows/OWNERS approver 2020-10-06 17:21:18 +00:00
Kubernetes Prow Robot
f30d6a463d
Merge pull request #93779 from yodarshafrir1/fix_restart_job_failure_with_restart_policy_never
Fix job backoff limit for restart policy Never
2020-10-06 10:02:44 -07:00
Harshal Patil
a4cd6f13c8 Add SELinux labels for kubelet on Fedora CoreOS
Signed-off-by: Harshal Patil <harpatil@redhat.com>
2020-10-06 14:53:47 +05:30
Harshal Patil
17e5f4e836 add CAP_NET_RAW capability to CRI stats summery test
Signed-off-by: Harshal Patil <harpatil@redhat.com>
2020-10-06 13:37:08 +05:30
Antonio Ojea
33602279a2 e2e hostexec commands does not need sudo 2020-10-06 09:36:49 +02:00
Kubernetes Prow Robot
1a66eb7b8a
Merge pull request #89482 from renatoviana12/master
fixed percentage behaviour in instr
2020-10-05 20:00:19 -07:00
jay vyas
8630dc924a Update test/e2e/framework/network/utils.go
add logging about min/max interval
Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2020-10-05 19:01:33 -04:00
Kubernetes Prow Robot
5e44d8ebaf
Merge pull request #95015 from Jefftree/bdd-remove-dependency
Remove dependency on behaviors for conformance walk.go
2020-10-05 13:04:19 -07:00
Javier Diaz-Montes
97b2082b0a Adding Bazel dependencies 2020-10-05 15:25:41 -04:00
Javier Diaz-Montes
d4b18a646f Adding failure scenario for long FQDN and setHostnameAsFQDN feature 2020-10-05 15:25:37 -04:00
Kubernetes Prow Robot
613ee7f0db
Merge pull request #95233 from jsafrane/framework-start-error
Add error text to kube-system wait error
2020-10-05 10:35:43 -07:00
Morgan Bauer
3658f66db7
mark node-problem-detector as serial 2020-10-05 07:00:07 -07:00
jay vyas
56def96d9d Update DialFromNode to return values as is done w/ other tests. Update
comments to clarify missing probability check function (since they need
to be updated anyways b/c of the return value introduced)
2020-10-04 15:59:20 -04:00
Kubernetes Prow Robot
2603cc1fcf
Merge pull request #94835 from zshihang/upgrade
upgrade test for BoundServiceAccountTokenVolume
2020-10-03 14:17:05 -07:00
Kubernetes Prow Robot
b2730aa483
Merge pull request #95261 from sjenning/fix-pods-e2e
test: e2e: fix race in pods test
2020-10-02 21:47:04 -07:00
Kubernetes Prow Robot
bf9354d8cc
Merge pull request #95202 from rikatz/remove-master-clusterinfo
Change kubectl clusterinfo to non offensive words
2020-10-02 14:19:04 -07:00
Seth Jennings
b7c74338e8 test: e2e: fix race in pods test 2020-10-02 14:32:31 -05:00
tanjunchen
818238ae74 test/e2e/framework/:use the term 'Control Plane' in comment 2020-10-02 08:54:29 -07:00
Kubernetes Prow Robot
7029430ae3
Merge pull request #94542 from oomichi/remove-FailfWithOffset
Remove unused FailfWithOffset()
2020-10-01 19:27:18 -07:00
Kubernetes Prow Robot
5549a0d9bb
Merge pull request #95012 from nodo/add-namespace-to-post-based-namespace-creation
Make the creation of namespace using POST and PATCH consistent
2020-10-01 17:37:20 -07:00
Kubernetes Prow Robot
1ec3345eb6
Merge pull request #94922 from knabben/pre-stop-e2e
Verify pod termination with E2E PreStop hook
2020-10-01 16:35:19 -07:00
Kenichi Omichi
99e9096034 Remove unused FailfWithOffset()
The function has been unused from outside of e2e framework at all
since 30b3472f89 which added the function.
This removes it for code cleanup.
2020-10-01 21:04:12 +00:00
Kubernetes Prow Robot
c58a26d77f
Merge pull request #95014 from erain/feature/remove-unmaintained-sd-logging-e2e-tests
Remove unmaintained stackdriver logging e2e test
2020-10-01 13:43:19 -07:00
Amim Knabben
68ce3cf3d4 Verify pod termination with E2E PreStop hook 2020-10-01 16:04:07 -04:00
Kubernetes Prow Robot
05b3e8911a
Merge pull request #95166 from vishsangale/master-to-control-plane-test-e2e-GetMasterHost
Updated symbol 'framework.GetMasterHost' to not use word 'master'
2020-10-01 11:49:19 -07:00
Kubernetes Prow Robot
cc68a78ef5
Merge pull request #95160 from jayunit100/patch-12
Delete federation tests from sig-network  because they are disruptive and no longer relevant
2020-10-01 10:47:19 -07:00
Andrea Nodari
3cb510e33e Make the creation of namespace using POST and PATCH consistent
PATCH verb is used when creating a namespace using server-side apply,
while POST verb is used when creating a namespace using client-side
apply.

The difference in path between the two ways to create a namespace led to
an inconsistency when calling webhooks. When server-side apply is used,
the request sent to webhooks has the field "namespace" populated with
the name of namespace being created. On the other hand, when using
client-side apply the "namespace" field is omitted.

This commit aims to make the behaviour consistent and populates the
"namespace" field when creating a namespace using POST verb (i.e.
client-side apply).
2020-10-01 18:05:49 +02:00
Kubernetes Prow Robot
3536a488e6
Merge pull request #95234 from jayunit100/remove-7kb-log-message
print out the raw pod json instead of the whole golang struct
2020-10-01 08:48:54 -07:00
Kubernetes Prow Robot
1b4fa94c21
Merge pull request #95229 from aojea/sourcelb
e2e can't use both pod.Name and pod.GenerateName
2020-10-01 07:00:54 -07:00
jay vyas
4c52ce7f87 just log essential pod info 2020-10-01 08:32:41 -04:00
Jan Safranek
6e85ebd0cd Add error text to kube-system wait error
On HA API server hiccups we saw a prow job with error:

fail [k8s.io/kubernetes@v1.19.0/test/e2e/e2e.go:284]: Sep 30 17:06:08.313: Error waiting for all pods to be running and ready: 0 / 0 pods in namespace "kube-system" are NOT in RUNNING and READY state in 10m0s
POD NODE PHASE GRACE CONDITIONS

The failure should include the last error from API server, if it's
available:

fail [k8s.io/kubernetes@v1.19.0/test/e2e/e2e.go:284]: Oct  1 11:29:45.220: Error waiting for all pods to be running and ready: 0 / 0 pods in namespace "kube-system" are NOT in RUNNING and READY state in 10m0s
Last error: Get "https://localhost:6443/api/v1/namespaces/kube-system/replicationcontrollers": dial tcp [::1]:6443: connect: connection refused
POD NODE PHASE GRACE CONDITIONS
2020-10-01 13:33:14 +02:00
Ricardo Pchevuzinske Katz
ab129349ac Change kubectl clusterinfo to non offensive words
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
2020-10-01 08:25:52 -03:00
Antonio Ojea
3e182e84ea e2e can't use both pod.Name and pod.GenerateName
This fixes a problem when using the framework helper
e2epod.CreateExecPodOrFail() more than once in the same test.

The problem is that this function was creating pods with both the
pod.Name and pod.GenerateName set.
The second pod failed to be created with a 500 with Reason ServerTimeout
indicating a unique name could not be found in the time allotted,
xref https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/
2020-10-01 12:28:06 +02:00
Adelina Tuvenie
9d0e1c64c2 Fix test "[sig-windows] DNS should support configurable pod DNS servers"
With the changes introduced by agnhost refactoring PR ( #87266 ), this test was left searching for a invalid container name. Updated to the proper name.
2020-10-01 12:28:18 +03:00
Kubernetes Prow Robot
89fdf5e7d3
Merge pull request #95167 from vishsangale/master-to-control-plane-GetAllMasterAddresses
Updated symbol 'framework.GetAllMasterAddresses' to not use word 'mas…
2020-09-30 18:00:53 -07:00
Renato Viana
316eff8dee Fixed percentage behavior in instr
fixed syntax, wrote a test

fixed a test

.

1

Update staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go

Co-Authored-By: Joel Speed <Joel.speed@hotmail.co.uk>

added test

.

fix

fix test

fixed a test

gofmt

lint

fix

function name

validation fix

.

godocs added

.
2020-09-30 21:23:05 +01:00
Kubernetes Prow Robot
e67fa02095
Merge pull request #94433 from aojea/iperf
remove iperf e2e test ip family tags
2020-09-30 12:54:54 -07:00
Kubernetes Prow Robot
4373d9aadd
Merge pull request #95132 from jluhrsen/nw-policy-debug
Network policy test debug and cleanup
2020-09-30 11:24:54 -07:00
jay vyas
1c5ad9b7e7 remove dns_common.go delete configmap stuff 2020-09-30 11:12:56 -04:00
jay vyas
77b78a2c1f Remove federation tests entirely because they break clusters and aren't relevant anymore 2020-09-30 08:26:28 -04:00
Kubernetes Prow Robot
def8fe3b4e
Merge pull request #94685 from verb/ec-admission
Convert to EphemeralContainers for validation in EphemeralContainersREST
2020-09-30 00:29:25 -07:00
a1k24
b3d43207e8 resolve PR comment ( add nil check ) 2020-09-30 11:54:23 +05:30
a1k24
8854924e65 fixes test/integration/ttlcontroller staticcheck 2020-09-30 11:54:23 +05:30
Vishwanath Sangale
b8e733fb94 Updated symbol 'framework.GetAllMasterAddresses' to not use word 'master' 2020-09-29 21:43:10 -07:00
Vishwanath Sangale
395a6d89f6 Updated symbol 'framework.GetMasterHost' to not use word 'master' 2020-09-29 21:05:39 -07:00
Kubernetes Prow Robot
aaf9883747
Merge pull request #95055 from vinaykul/e2e-tests
Add LookForStringInPodExecToContainer(...) that takes container name as argument.
2020-09-29 12:05:25 -07:00
Kubernetes Prow Robot
ac519b43bd
Merge pull request #94828 from aojea/sctpflake
Fix sctp job flakes
2020-09-28 18:29:25 -07:00
Vinay Kulkarni
334cde51bf Add LookForStringInPodExecToContainer that takes container name parameter, modify LookForStringInPodExec to call the new function. 2020-09-28 19:57:13 +00:00
Kubernetes Prow Robot
4b24dca228
Merge pull request #95078 from jingxu97/sep/subpathtest
Disable one subpath test for windows
2020-09-27 12:46:48 -07:00
Claudiu Belu
d37cbeb388 tests: Refactors agnhost image pod usage - network
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-26 05:56:31 -07:00
Claudiu Belu
c99b18580d tests: Refactor agnhost image pod usage - common (part 1)
A previous commit added  a few agnhost related functions that creates agnhost
pods / containers for general purposes.

Refactors tests to use those functions.
2020-09-26 05:29:33 -07:00
Kubernetes Prow Robot
75448b3205
Merge pull request #94881 from nixpanic/test/e2e/storage/dd-without-cache
e2e: skip write/read cache when running Block-mode RWX PVC tests
2020-09-25 17:36:48 -07:00
Jing Xu
b80acc39a0 Disable one subpath test for windows
Disable subpath test "should be able to unmount after the subpath
directory is deleted" for windows because the test will fail when
deleting a dir while another container still use it.
2020-09-25 16:48:16 -07:00
Kubernetes Prow Robot
0f39af90ed
Merge pull request #94364 from wojtek-t/efficient_watch_resumption
Efficient watch resumption
2020-09-25 15:42:48 -07:00
Kubernetes Prow Robot
d66695653c
Merge pull request #95003 from jsafrane/cinder-delete-preprovisioned
Fail a test on pre-provisioned Cinder volume deletion error
2020-09-25 14:26:48 -07:00
Jamo Luhrsen
ae63d6495d Collect debugs before framework.Failf
having framework.DumpDebugInfo after the FailF was
a noop and we are losing those potentially helpful
logs when we need them the most (on a failure)

Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
2020-09-25 13:22:24 -07:00
Kubernetes Prow Robot
ccfdc09f35
Merge pull request #91683 from tedyu/mirror-pod-owner-ref
Mirror pod without OwnerReference should not be created
2020-09-25 11:02:48 -07:00
Niels de Vos
f2bf2ab76e e2e/storage: disable caching when writing/reading to block PVCs
By passing "oflag=nocache" and "iflag=direct", caching should be
disabled while writing/reading with "dd" to a block device. The
TestConcurrentAccessToSingleVolume() test is known to fail with certain
storage backends (like Ceph RBD) when caching is enabled.

The default BusyBox image used for testing does not support the required
options for "dd". So instead of running with BusyBox, run the test with
a Debian image.
2020-09-25 14:38:32 +02:00
Niels de Vos
00b6d7ccee e2e: add option to create pods with different image in pod.Config
For testing certain features, the BusyBox image does not provide all the
tools that are needed. Notably 'dd' from BusyBox does not support
direct-io that is required for skipping caches while doing writes and
reads on a Block-mode PVC attached to different nodes.
2020-09-25 11:01:59 +02:00
Kubernetes Prow Robot
3a7d7101c5
Merge pull request #94876 from linux-on-ibm-z/nonewprivs-s390x
Add s390x support for nonewprivs
2020-09-25 01:37:11 -07:00
Vinay Kulkarni
18f8c14359 Fix LookForStringInPodExec(...) to take container name as argument, and refactor function usage
Ref: PR 92127 review discussion https://github.com/kubernetes/kubernetes/pull/92127/files#r447853904
2020-09-25 02:15:21 +00:00
Kubernetes Prow Robot
1f0d71cd0d
Merge pull request #95044 from spiffxp/add-controlplane-type-alias
Rename controlplane.Master struct to Instance
2020-09-24 16:53:20 -07:00
Kubernetes Prow Robot
90be932b60
Merge pull request #95027 from aojea/aoreview
auto nominate aojea to test reviewers
2020-09-24 15:29:25 -07:00
Kubernetes Prow Robot
807db805c3
Merge pull request #94969 from wojtek-t/list_all_namespaces_lease
Add test for listing Leases from all namespace
2020-09-24 13:57:39 -07:00
Kubernetes Prow Robot
9646d5998c
Merge pull request #94822 from JornShen/replace_e2essh_e2e_service_tests
Replace e2essh on e2e service tests
2020-09-24 13:57:11 -07:00
Daniel Smith
13b6a929bc It's an 'Instance' of apiserver 2020-09-24 16:14:29 -04:00
Shihang Zhang
637235e893 upgrade test for BoundServiceAccountTokenVolume 2020-09-24 09:55:05 -07:00
Kubernetes Prow Robot
769f047675
Merge pull request #95024 from chendave/exported
Use the exported struct member directly
2020-09-24 09:24:34 -07:00
Valerii Ponomarov
c55b6cdbb4 agnhost image: use actual DNS domain instead of hardcoded cluster.local
'agnhost' image uses hardcoded 'cluster.local' value for DNS domain.
It leads to failure of a bunch of HPA tests when test cluster is
configured to use custom DNS domain and there is no alias for
default 'cluster.local' one.
So, fix it by reusing it's own function for reading DNS domain suffixes.

Signed-off-by: Valerii Ponomarov <kiparis.kh@gmail.com>
2020-09-24 14:24:16 +03:00
Antonio Ojea
bafea472d2 add aojea to test reviewers 2020-09-24 12:21:28 +02:00
Dave Chen
a9b71c198b Use the exported struct member directly
Signed-off-by: Dave Chen <dave.chen@arm.com>
2020-09-24 16:15:11 +08:00
Kubernetes Prow Robot
d9b576d61e
Merge pull request #93384 from zhouya0/support_kubectl_delete_foreground
Support kubectl delete orphan/foreground/background options
2020-09-23 23:58:04 -07:00
Kubernetes Prow Robot
aad834b073
Merge pull request #94438 from claudiubelu/tests/agnhost-usage-refactor-4
tests: Refactors agnhost image pod usage in tests
2020-09-23 15:36:05 -07:00
Kubernetes Prow Robot
d9bb58fc49
Merge pull request #95009 from jsafrane/cinder-remove-ext3
Remove ext2 + ext3 tests from most volume plugins
2020-09-23 14:36:39 -07:00
Kubernetes Prow Robot
d3860a2b15
Merge pull request #95008 from jayunit100/reverting-antonios-revert
Reverting antonios revert (and re-adding the original fix to breadth first polling which was lost in the original pr)
2020-09-23 14:36:30 -07:00
Jefftree
6b8c8e44d8 Update bazel 2020-09-23 14:27:49 -07:00
Jefftree
88b22516ea Remove kubeconform 2020-09-23 13:33:37 -07:00
Jefftree
fe972b8f2f Remove dependency on behaviors for conformance generation 2020-09-23 13:28:06 -07:00
Yu Yi
754a289f43 Remove unmaintained stackdriver logging e2e test
Signed-off-by: Yu Yi <yiyu@google.com>
2020-09-23 19:24:38 +00:00
Kubernetes Prow Robot
4ad26f2626
Merge pull request #89425 from claudiubelu/test-images/switch-to-nanoserver
test images: uses nanoserver
2020-09-23 10:14:10 -07:00
Jan Safranek
c4e6572912 Remove ext2 + ext3 tests
Testing with the default FS (ext4) is IMO enough, ext2/ext3 does not add much
value. It's handled by the same kernel module anyway.

Leave ext2/ext3 only in GCE PD which is tested in kubernetes/kubernetes CI
jobs regularly to catch regressions.
2020-09-23 17:32:50 +02:00
jay vyas
60c8a36a7b Add failure logic to tests that rely on side-effect-free dial functions. 2020-09-23 09:36:23 -05:00
jay vyas
64548b3cfa Adding back in the breadth-first-polling logic.
"Revert "Merge pull request #93837 from jayunit100/DialFromContainerB""

This reverts commit f7a28c3904.
2020-09-23 09:09:38 -05:00
Jan Safranek
76254d88a5 Fail test when Cinder volume deletion fails 2020-09-23 14:41:29 +02:00
Jan Safranek
b003187053 Add extra log when Cinder volume deletion fails
"cinder show <id>" output will help us to debug what's wrong with the
Cinder volume.
2020-09-23 14:41:10 +02:00
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