David Zhu
1f1859f937
Make writing file via container in tests sync for real this time
2019-11-01 11:35:22 -07:00
Kenichi Omichi
ca4c349096
Move functions from e2e/framework/util.go
...
- SimpleGET: Moved to ingress sub package of e2e framework
- PollURL: Moved to ingress sub package of e2e framework
- ProxyMode: Moved to service e2e test package
- ListNamespaceEvents: Moved to e2e_node test package
- NewE2ETestNodePreparer: Removed since 59533f0cd1
2019-11-01 17:39:29 +00:00
Kubernetes Prow Robot
4b95ea0cdd
Merge pull request #84500 from RainbowMango/pr_remove_prom_from_metrics_validation
...
Remove prom from metrics validation
2019-11-01 07:21:25 -07:00
Kubernetes Prow Robot
c89bc5cec7
Merge pull request #84384 from alejandrox1/framework-move-skips
...
Cleaned up and reorder skip functions from e2e framework
2019-11-01 02:11:24 -07:00
clarklee92
78d3d52ac2
Move funcs of create.go to e2e/storage
...
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
2019-11-01 13:52:24 +08:00
Kubernetes Prow Robot
ed5b038313
Merge pull request #84218 from cofyc/fix74552
...
Support local filesystem volume with block source reconstruction and add related e2e tests
2019-10-31 21:53:36 -07:00
Kubernetes Prow Robot
9d6edae63a
Merge pull request #84509 from clarklee92/move-psp-under-e2e/framework
...
Use log functions of core framework on test/e2e/freamwork/psp.go
2019-10-31 12:34:51 -07:00
alejandrox1
3da66c44e8
Cleaned up skip functions from e2e framework
...
This patch moves skip-related functions from framework/util.go to
another file.
Signed-off-by: alejandrox1 <alarcj137@gmail.com>
2019-10-31 11:25:07 -04:00
Jan Safranek
17307c055c
Grab init containers logs in e2e tests
...
Storage tests use initContainers + framework.TestContainerOutput and they
will benefit from logging their output in failed tests.
2019-10-31 14:58:51 +01:00
Jan Chaloupka
821220ecac
test/e2e: AddOrUpdateAvoidPodOnNode/RemoveAvoidPodsOffNode: retry when conflict hit during annotation update
...
In case node object update fails due to revision conflict, it does not make sense to return success.
It needs to be retried so the v1.PreferAvoidPodsAnnotationKey annotation can be properly set in the next round.
2019-10-31 12:48:58 +01:00
Kubernetes Prow Robot
dda78d59be
Merge pull request #84379 from oomichi/e2e-network
...
Separate e2enetwork from e2e core framework
2019-10-31 02:55:37 -07:00
clarklee92
358dec9f3d
Use log functions of core framework on test/e2e/freamwork/psp.go
...
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
2019-10-31 17:43:09 +08:00
Kubernetes Prow Robot
c7bb076ade
Merge pull request #84303 from jackkleeman/dynamic-sni-cert
...
Dynamic SNI certificates
2019-10-31 01:25:51 -07:00
Kubernetes Prow Robot
10ded881fc
Merge pull request #83727 from bertinatto/e2e_hostpath_selinux
...
Optionally run e2e pod as privileged for SELinux
2019-10-31 01:25:37 -07:00
Kubernetes Prow Robot
ee4e1465ea
Merge pull request #84427 from YuikoTakada/local-DescribeItem
...
Change DescribeItem() to local func
2019-10-30 23:33:49 -07:00
Kubernetes Prow Robot
58b9232a9e
Merge pull request #84531 from johnbelamaric/conformance-behavior-kep-owners
...
Add conformance-behavior-approvers to OWNERS_ALIASES
2019-10-30 21:56:16 -07:00
Kubernetes Prow Robot
6196a5c7d1
Merge pull request #84495 from SataQiu/test-refactor-rcutil
...
test refactor: move test specific functions from rc_util.go
2019-10-30 21:56:03 -07:00
Kubernetes Prow Robot
c06f552e49
Merge pull request #84491 from davidz627/fix/verifyLoop
...
Force file sync after writing file via container in test
2019-10-30 21:55:50 -07:00
Kubernetes Prow Robot
da5b90a8c3
Merge pull request #84045 from bclau/tests/agnhost-netexec-changes
...
tests: Extends agnhost netexec udp buffers
2019-10-30 18:23:36 -07:00
David Zhu
e3d2432e01
Force file sync after writing file via container and wait for pod to
...
disappear after removal in test
2019-10-30 15:40:53 -07:00
Kubernetes Prow Robot
966cfde450
Merge pull request #84362 from johnSchnake/addSomeImageREADMEs
...
Adds some basic READMEs to some of the test images
2019-10-30 12:01:04 -07:00
Kubernetes Prow Robot
e1d3cc74e5
Merge pull request #84329 from jingyih/update_etcd_server_to_3.4
...
Update default etcd server to 3.4.3
2019-10-30 02:30:52 -07:00
Kubernetes Prow Robot
d0d4572c82
Merge pull request #84411 from jfbai/move-funcs-of-framework-to-common
...
Move funcs of framework to common runtimeclass.
2019-10-29 21:18:52 -07:00
Kubernetes Prow Robot
e86878436f
Merge pull request #84410 from jfbai/move-funcs-of-expect-to-common
...
move funcs of expect.go to e2e/common
2019-10-29 19:54:52 -07:00
Kubernetes Prow Robot
a8727f0f04
Merge pull request #84449 from ahg-g/ahg-prioritymeta
...
Priorities use SharedLister interface instead of NodeInfo Map
2019-10-29 17:21:03 -07:00
Kubernetes Prow Robot
345bea9a6f
Merge pull request #84444 from cofyc/fix84233
...
Improve e2e HostExec utility
2019-10-29 17:20:52 -07:00
Abdullah Gharaibeh
c6baa263a3
Update priorities to use SharedLister instead of using the snapshot directly
2019-10-29 16:22:00 -04:00
John Belamaric
c0e6a8704c
Add conformance-behavior-approvers to OWNERS_ALIASES
2019-10-29 11:24:06 -07:00
Kubernetes Prow Robot
9731b51d23
Merge pull request #84501 from pohly/hostpath-dev-raw-block
...
e2e: share /dev with host in hostpath driver deployment
2019-10-29 08:22:43 -07:00
Kubernetes Prow Robot
3f8b0a30ad
Merge pull request #84484 from zxl381/GL_framework
...
Prevent 2 goroutines in test from being leaked if proxy hangs
2019-10-29 05:52:56 -07:00
Kubernetes Prow Robot
a2eb319b31
Merge pull request #84450 from gongguan/fix_scheduler_predicate_test
...
Uncomment interpod affinity integration tests
2019-10-29 01:34:58 -07:00
Kubernetes Prow Robot
a8e819746d
Merge pull request #83442 from serathius/remove-prometheus-addon
...
Remove prometheus addon
2019-10-29 01:34:43 -07:00
Patrick Ohly
327a12cd08
e2e: share /dev with host in hostpath driver deployment
...
This is needed for raw block volumes. It mirrors a change made in the upstream
deployment in https://github.com/kubernetes-csi/csi-driver-host-path/pull/109
Raw block volumes use loop devices under the hood. "losetup --find
--show" uses LOOP_CTL_GET_FREE to get a free loop device. It then
expects to have the corresponding /dev/loopX already available. When
/dev inside the container is a static tmpfs which doesn't already have
those /dev/loop* devices (*) the new device fails to show up,
resulting in:
I1028 13:25:19.937846 1 server.go:117] GRPC call: /csi.v1.Controller/CreateVolume
I1028 13:25:19.938083 1 server.go:118] GRPC request: {"accessibility_requirements":{"preferred":[{"segments":{"topology.hostpath.csi/node":"pmem-csi-pmem-govm-worker3"}}],"requisite":[{"segments":{"topology.hostpath.csi/node":"pmem-csi-pmem-govm-worker3"}}]},"capacity_range":{"required_bytes":5368709120},"name":"pvc-24985a49-5638-4bf6-b789-bb99a28d1073","volume_capabilities":[{"AccessType":{"Block":{}},"access_mode":{"mode":1}}]}
I1028 13:25:19.961124 1 volume_path_handler_linux.go:41] Creating device for path: /csi-data-dir/635c6569-f986-11e9-baa6-0242ac110004
I1028 13:25:20.391472 1 volume_path_handler_linux.go:75] Failed device create command for path: /csi-data-dir/635c6569-f986-11e9-baa6-0242ac110004 exit status 1 losetup: /csi-data-dir/635c6569-f986-11e9-baa6-0242ac110004: failed to set up loop device: No such file or directory
E1028 13:25:20.392916 1 server.go:121] GRPC error: rpc error: code = Internal desc = failed to create volume 635c6569-f986-11e9-baa6-0242ac110004: failed to attach device /csi-data-dir/635c6569-f986-11e9-baa6-0242ac110004: exit status 1
(*) It seems that the static tmpfs gets populated by Docker based on
what's currently on the host when the container starts. That would
explain why it worked in the Kubernetes Prow testing - the host must
have had enough loop devices already defined.
2019-10-29 08:52:12 +01:00
RainbowMango
db9ab74a7e
Deal with auto-generated files.
...
- Update bazel by hack/update-bazel.sh
2019-10-29 15:32:09 +08:00
RainbowMango
4355772bb6
Remove directly reference to Prometheus
2019-10-29 15:08:16 +08:00
Kubernetes Prow Robot
6b1efb266d
Merge pull request #83957 from pohly/csi-sidecars-2.x
...
e2e storage: bump revision of sidecars and driver
2019-10-28 23:40:56 -07:00
SataQiu
24f374a395
move test specific functions from rc_util.go
2019-10-29 13:04:59 +08:00
yue9944882
6db3edff10
[generated] ./hack/update-all.sh
...
generated
generated
generated
rule
generated
generated
2019-10-29 12:59:17 +08:00
yue9944882
7c28a4b70e
non-generated api models misc
...
rule list
rule
rule 2
2019-10-29 12:26:12 +08:00
Jianfei Bai
586261291f
Remove unused functions in framework.go
2019-10-29 11:44:27 +08:00
Jingyi Hu
706cde51c5
Update default etcd server to 3.4.3
2019-10-28 18:29:37 -07:00
Ziheng Liu
a17925425f
Fix a double lock in test/utils
...
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com>
2019-10-28 20:18:19 -04:00
Ziheng Liu
2ca513a15d
Prevent 2 goroutines from being leaked if proxy hangs
...
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com>
2019-10-28 19:06:43 -04:00
Kubernetes Prow Robot
ad47fe3962
Merge pull request #83925 from BurtonQin/framework_leak
...
framework: Fix a goroutine leak bug in resource_usage_gatherer.go
2019-10-28 14:08:58 -07:00
Michelle Au
fb6dfeb718
Convert attach-detach controller to use v1.CSINode
2019-10-28 13:41:13 -07:00
Michelle Au
2d467ed9d8
Update tests to use v1.CSINode
2019-10-28 13:41:13 -07:00
Michelle Au
603a2aa8a9
Add CSINode to storage/v1
2019-10-28 13:41:13 -07:00
Patrick Ohly
aacac747a0
e2e storage: bump revision of sidecars and driver
...
This updates to the releases meant to be used with Kubernetes 1.16
except for external-snapshotter, which is kept at the more recent
2.0.0-rc1 which targets 1.17.
The new external-attacher v2.0.0 needs updated RBAC rules, copied
verbatim from the v2.0.0 release.
2019-10-28 20:21:55 +01:00
Kubernetes Prow Robot
aae45e8dee
Merge pull request #84238 from danwinship/affinity-slower
...
Make e2eservice.CheckAffinity wait longer, to avoid flakes
2019-10-28 11:58:59 -07:00
Kubernetes Prow Robot
7129923e33
Merge pull request #84140 from leakingtapan/timeout
...
make ClaimProvisionTimeout a var
2019-10-28 11:58:45 -07:00
louisgong
7d996aa97f
fix TestInterPodAffinity case
2019-10-28 21:30:32 +08:00
Yecheng Fu
d8c465c8d7
better HostExec
...
- separate stdout and stderr
- return command exit code
- remove kubectl dependency
2019-10-28 19:20:26 +08:00
Marek Siarkowicz
09329b5bbc
Remove prometheus references in test/integration
...
This PR does minimal changes to interface to allow removing all
references to prometheus from `test` directory. In future I would expect
wrapping prometheus samples to provide better abstraction. Changes:
Move generic_metrics.go to testutil/metrics.go
Remove etcd.go as it was not called
Move prometheus label consts to testutil.
2019-10-28 11:40:32 +01:00
Yecheng Fu
8def74f394
use HostExec and sets.String
2019-10-28 10:35:06 +08:00
Yecheng Fu
25c5ad52fd
simplify global mount points check
2019-10-28 10:35:06 +08:00
Yecheng Fu
b536395c07
Add e2e test to check for filesystem volume device mount cleanup
2019-10-28 10:35:02 +08:00
YuikoTakada
cd8da1f852
Change DescribeItem to local func
2019-10-28 02:10:57 +00:00
Jianfei Bai
7401f2fe9b
move funcs of expect.go to e2e/common
2019-10-27 11:54:32 +08:00
Brendan Chang
03a650f365
Change FuzzTime to FuzzTimeStrict for naming consistency
2019-10-26 22:36:28 -04:00
Kubernetes Prow Robot
9832418870
Merge pull request #84168 from BrendanSChang/fuzz
...
Add fuzz targets for Duration, MicroTime, and Time
2019-10-26 19:17:24 -07:00
Kubernetes Prow Robot
2896fb0be8
Merge pull request #83711 from tanjunchen/fix-staticcheck-test/e2e/network
...
fix staticcheck failures in test/e2e/common directory
2019-10-26 02:23:22 -07:00
Kubernetes Prow Robot
2bb35caa18
Merge pull request #84312 from davidz627/tests/pd
...
Add updated v0.6.0 stable PD driver specs - enable block tests for PD
2019-10-25 20:41:23 -07:00
Kubernetes Prow Robot
24ae4d6718
Merge pull request #84173 from cofyc/fix83693
...
Support local volume block mode reconstruction
2019-10-25 19:23:23 -07:00
Kubernetes Prow Robot
37edb6984b
Merge pull request #81592 from serathius/stable-metric-analysis-stdin
...
Pass list of files through stdin to avoid hitting ARG_MAX on some env…
2019-10-25 15:37:13 -07:00
David Zhu
d1383aa28f
Update GCE PD CSI Driver YAMLS to v0.6.0 for testing. Enable Raw Block tests
2019-10-25 15:18:48 -07:00
Kenichi Omichi
5d6faaddf6
Separate e2enetwork from e2e core framework
...
networking_utils.go is only for network tests and it is nice to
separate it from the core framework for easy maintenance.
2019-10-25 17:58:20 +00:00
Marek Siarkowicz
c62da00c56
Pass list of files through stdin to avoid hitting ARG_MAX on some environments
2019-10-25 18:52:23 +02:00
John Schnake
081b9f206d
Adds some basic READMEs to some of the test images
...
Clarifies the use/purpose of some of the test images for easier
discovery/use in the future.
2019-10-25 11:33:41 -05:00
Brendan Chang
9ef94b2d47
Fixing comments FuzzDurationStrict and FuzzMicroTimeStrict
2019-10-25 11:44:49 -04:00
Jack Kleeman
d9adf535f3
Dynamic SNI certificates
...
Reload SNI certificate cert and key file from disk every minute and notify
the dynamic certificate controller when they change, allowing serving
tls config to be updated.
2019-10-25 16:38:51 +01:00
Kubernetes Prow Robot
09f453ff83
Merge pull request #83987 from wenjiaswe/etcd_client_3_4_2
...
Update etcd client to v3.4.3 in k8s v1.17
2019-10-25 08:29:39 -07:00
Kubernetes Prow Robot
f430a47b60
Merge pull request #84339 from wojtek-t/fix_deployment_correctness_at_scale
...
Fix deployment e2e test at scale
2019-10-25 05:17:42 -07:00
wojtekt
5cd06d15d8
Fix deployment e2e test at scale
2019-10-25 12:50:59 +02:00
Fabio Bertinatto
7e72c70772
Optionally run e2e pod as privileged for SELinux
2019-10-25 09:32:05 +02:00
Kubernetes Prow Robot
f06b3b8c10
Merge pull request #84313 from oomichi/move-UDPPoke
...
Move PokeUDP() to e2e service subpkg
2019-10-24 21:35:46 -07:00
Kubernetes Prow Robot
39a8417510
Merge pull request #84258 from oomichi/move-TranslateIPv4ToIPv6
...
Move TranslateIPv4ToIPv6() to e2e scheduling test
2019-10-24 16:56:31 -07:00
Kubernetes Prow Robot
04632e84e1
Merge pull request #84200 from jackkleeman/dynamic-serving-cert
...
Dynamic serving certificates
2019-10-24 16:56:19 -07:00
Kubernetes Prow Robot
df8587f99f
Merge pull request #84062 from seans3/tableprinter-move
...
Removes kubectl get dependency on Kubernetes core
2019-10-24 16:55:52 -07:00
Kenichi Omichi
a74b63d335
Move PokeUDP() to e2e service subpkg
...
PokeUDP() is used at e2e service subpackage only, so this moves the
function and the related code to the subpackage for making e2e core
framework small.
2019-10-24 22:49:35 +00:00
Wenjia Zhang
660b17d0ae
Pin dependencies and update vendors
2019-10-24 14:09:24 -07:00
Wenjia Zhang
9ead9373f3
Resolve uncompatibility from update: etcd CAFile -> TrustedCAFIle
2019-10-24 14:09:24 -07:00
Wenjia Zhang
3b274fad2a
Replace github.com/coreos/etcd by go.etcd.io/etcd
2019-10-24 14:09:24 -07:00
Claudiu Belu
9dd79321e0
tests: Adds guestbook app subcommand in agnhost
...
The redis version has been bumped to version 5.0.5, but the maximum version supported on
Windows is 3.2. This can lead to failing tests, the output and behaviour can be different
(see #80516 ). In order to prevent such failures, the amount of times the Redis image is
used can be reduced.
This commit adds the guestbook subcommand to agnhost, which can be used to emulate the
Guestbook application created by the test "should create and stop a working application".
Bumps agnhost image VERSION.
2019-10-24 07:51:28 -07:00
Dan Winship
dde075ffe5
Fix service sanity check after jig.ChangeServiceType
2019-10-24 08:58:02 -04:00
Kubernetes Prow Robot
176929a72a
Merge pull request #84255 from oomichi/move-CreatePodOrFail
...
Move CreatePodOrFail() to e2e network test
2019-10-24 02:01:08 -07:00
Jack Kleeman
4e99b5d26a
Add integration test for serving cert rotation
2019-10-24 09:15:44 +01:00
Kubernetes Prow Robot
3325cbb280
Merge pull request #84261 from oomichi/move-to-e2e-network-framework
...
Move funcs of networking_utils to e2e network
2019-10-24 00:47:08 -07:00
Kubernetes Prow Robot
31b7e3d905
Merge pull request #84235 from liggitt/extensions-v1-coverage
...
Use v1 CRD deletion endpoints in e2e tests
2019-10-23 19:07:19 -07:00
Kubernetes Prow Robot
a60d64ad54
Merge pull request #84098 from msau42/remove-hostnetwork
...
remove hostnetwork from hostpath csi manifest
2019-10-23 17:49:06 -07:00
Brendan Chang
7aa9434811
Use strict unmarshaling for metav1 fuzz targets
2019-10-23 19:16:50 -04:00
Kenichi Omichi
6be4fd45a5
Move funcs of networking_utils to e2e network
...
Many functions of networking_utils are used at e2e network only.
To make e2e core framework small as possible for reducing invalid
dependencies to e2elog subpackage, this moves these functions to
e2e network tests.
2019-10-23 22:58:32 +00:00
Kubernetes Prow Robot
ed5a3847a2
Merge pull request #83856 from mrbobbytables/update-autoscaling-owners
...
Prune inactive owners from autoscaling related OWNERS files.
2019-10-23 15:53:34 -07:00
Kenichi Omichi
f2dab471b5
Move TranslateIPv4ToIPv6() to e2e scheduling test
...
TranslateIPv4ToIPv6() is used at e2e scheduling test only, so this
moves the function to the place.
2019-10-23 22:41:09 +00:00
Odin Ugedal
4e44407fa9
Fix failing service test
2019-10-23 23:23:22 +02:00
Kenichi Omichi
a0c0130670
Move CreatePodOrFail()
...
CreatePodOrFail() is used at e2e network tests only, so this moves
the function to the e2e network tests.
2019-10-23 21:14:10 +00:00
Odin Ugedal
6a73c0899a
Fix shellcheck failures SC2251
...
https://github.com/koalaman/shellcheck/wiki/SC2251
This may be masking some test failures.
We have a bunch of test code like this:
set -o errexit
[...]
! kubectl get pod wrong-pod
[...]
This test will succeed no matter what the result (return code) of kubectl is.
2019-10-23 22:47:47 +02:00
Odin Ugedal
d467b8ea14
Fix shellcheck failures SC2128
2019-10-23 22:47:46 +02:00
Kubernetes Prow Robot
b75e2d84c1
Merge pull request #84229 from wojtek-t/fix_networking_tests
...
Fix and clean up timeouts for networking tests in large clusters
2019-10-23 12:52:02 -07:00
Kubernetes Prow Robot
36e7620ef3
Merge pull request #84212 from liggitt/revert-move-hostpid-tests
...
Revert "move hostPID tests to common"
2019-10-23 12:51:40 -07:00
Kubernetes Prow Robot
d250877696
Merge pull request #84188 from danwinship/service-sanitycheck-fix-2
...
Comment out an e2eservice sanity check for now
2019-10-23 12:51:19 -07:00