[kubernetes/kubernetes] add e2e tests for HostPathType (#64829)

9 views
Skip to first unread message

Di Xu

unread,
Jun 6, 2018, 7:11:40 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

What this PR does / why we need it:
Add e2e tests for hostpath type field

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #64522

Special notes for your reviewer:
/cc msau42 jsafrane
/cc @kubernetes/sig-storage-pr-reviews

Release note:

add e2e tests for HostPathType

You can view, comment on, or merge this pull request online at:

  https://github.com/kubernetes/kubernetes/pull/64829

Commit Summary

  • add e2e tests for HostPathType

File Changes

Patch Links:


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

k8s-ci-robot

unread,
Jun 6, 2018, 7:12:41 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dixudx
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: gnufied

Assign the PR to them by writing /assign @gnufied in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Di Xu

unread,
Jun 6, 2018, 7:12:56 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@Random-Liu @dims FYI.

Will open another PR to addresses containerized kubelet.

k8s-ci-robot

unread,
Jun 6, 2018, 7:18:09 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-typecheck c72d216 link /test pull-kubernetes-typecheck

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 7:37:19 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-typecheck c72d216 link /test pull-kubernetes-typecheck
pull-kubernetes-verify c72d216 link /test pull-kubernetes-verify

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 7:39:09 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-typecheck c72d216 link /test pull-kubernetes-typecheck
pull-kubernetes-verify c72d216 link /test pull-kubernetes-verify
pull-kubernetes-integration c72d216 link /test pull-kubernetes-integration

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 7:50:37 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-typecheck c72d216 link /test pull-kubernetes-typecheck
pull-kubernetes-verify c72d216 link /test pull-kubernetes-verify
pull-kubernetes-integration c72d216 link /test pull-kubernetes-integration
pull-kubernetes-e2e-kops-aws c72d216 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 8:06:49 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-typecheck c72d216 link /test pull-kubernetes-typecheck
pull-kubernetes-verify c72d216 link /test pull-kubernetes-verify
pull-kubernetes-integration c72d216 link /test pull-kubernetes-integration
pull-kubernetes-e2e-kops-aws c72d216 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce c72d216 link /test pull-kubernetes-e2e-gce

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 10:40:56 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-verify c72d216 link /test pull-kubernetes-verify
pull-kubernetes-integration c72d216 link /test pull-kubernetes-integration
pull-kubernetes-e2e-kops-aws c72d216 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce c72d216 link /test pull-kubernetes-e2e-gce
pull-kubernetes-typecheck 118ba36 link /test pull-kubernetes-typecheck

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 10:54:26 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention
pull-kubernetes-node-e2e 118ba36 link /test pull-kubernetes-node-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 11:00:17 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-verify c72d216 link /test pull-kubernetes-verify
pull-kubernetes-e2e-kops-aws c72d216 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce c72d216 link /test pull-kubernetes-e2e-gce
pull-kubernetes-typecheck 118ba36 link /test pull-kubernetes-typecheck
pull-kubernetes-node-e2e 118ba36 link /test pull-kubernetes-node-e2e
pull-kubernetes-e2e-gce-100-performance 118ba36 link /test pull-kubernetes-e2e-gce-100-performance

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 11:15:50 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws c72d216 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce c72d216 link /test pull-kubernetes-e2e-gce
pull-kubernetes-typecheck 118ba36 link /test pull-kubernetes-typecheck
pull-kubernetes-node-e2e 118ba36 link /test pull-kubernetes-node-e2e
pull-kubernetes-e2e-gce-100-performance 118ba36 link /test pull-kubernetes-e2e-gce-100-performance
pull-kubernetes-verify 118ba36 link /test pull-kubernetes-verify

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 11:18:52 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce c72d216 link /test pull-kubernetes-e2e-gce
pull-kubernetes-typecheck 118ba36 link /test pull-kubernetes-typecheck
pull-kubernetes-node-e2e 118ba36 link /test pull-kubernetes-node-e2e
pull-kubernetes-e2e-gce-100-performance 118ba36 link /test pull-kubernetes-e2e-gce-100-performance
pull-kubernetes-verify 118ba36 link /test pull-kubernetes-verify
pull-kubernetes-e2e-kops-aws 118ba36 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 11:39:19 AM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-typecheck 118ba36 link /test pull-kubernetes-typecheck
pull-kubernetes-node-e2e 118ba36 link /test pull-kubernetes-node-e2e
pull-kubernetes-e2e-gce-100-performance 118ba36 link /test pull-kubernetes-e2e-gce-100-performance
pull-kubernetes-verify 118ba36 link /test pull-kubernetes-verify
pull-kubernetes-e2e-kops-aws 118ba36 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 118ba36 link /test pull-kubernetes-e2e-gce

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 12:18:42 PM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention
pull-kubernetes-kubemark-e2e-gce-big 118ba36 link /test pull-kubernetes-kubemark-e2e-gce-big

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Michelle Au

unread,
Jun 6, 2018, 5:33:35 PM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 commented on this pull request.


In test/e2e/storage/host_path_type.go:

> +		hostPathUnset = v1.HostPathUnset
+		hostPathDirectoryOrCreate = v1.HostPathDirectoryOrCreate
+		hostPathDirectory = v1.HostPathDirectory
+		hostPathFileOrCreate = v1.HostPathFileOrCreate
+		hostPathFile = v1.HostPathFile
+		hostPathSocket = v1.HostPathSocket
+		hostPathCharDev = v1.HostPathCharDev
+		hostPathBlockDev = v1.HostPathBlockDev
+
+		config = &localTestConfig{
+			ns:     f.Namespace.Name,
+			client: f.ClientSet,
+		}
+
+		By("Create a pod for further testing")
+		hostDir := "/var/tmp/hostpath-test"

You may need to use "/tmp" instead


In test/e2e/storage/host_path_type.go:

> +		config       *localTestConfig
+
+		hostPathUnset             v1.HostPathType
+		hostPathDirectoryOrCreate v1.HostPathType
+		hostPathDirectory         v1.HostPathType
+		hostPathFileOrCreate      v1.HostPathType
+		hostPathFile              v1.HostPathType
+		hostPathSocket            v1.HostPathType
+		hostPathCharDev           v1.HostPathType
+		hostPathBlockDev          v1.HostPathType
+	)
+
+	BeforeEach(func() {
+		ns = f.Namespace.Name
+
+		hostPathUnset = v1.HostPathUnset

can these be initialized in var above since they never change?


In test/e2e/storage/host_path_type.go:

> +		hostDir := "/var/tmp/hostpath-test"
+		mountDir := "/mnt/test"
+		basePod = f.PodClient().CreateSync(newHostPathTypeTestPod("", hostDir, mountDir, &hostPathDirectoryOrCreate))
+
+		By("Create a temporary clean directory for further testing")
+		result, err := utils.PodExec(basePod, fmt.Sprintf("mktemp -d -p %s hostpath.XXXXXX", mountDir))
+		Expect(err).NotTo(HaveOccurred())
+
+		mountBaseDir = result
+		hostBaseDir = path.Join(hostDir, strings.TrimPrefix(result, mountDir))
+	})
+
+	It("HostPath Directory Test", func() {
+		targetDir := path.Join(hostBaseDir, "adir")
+
+		By("Should fail on mounting non-existent directory 'adir' when HostPathType is HostPathDirectory")

Do you want to make each of these cases it's own test case (it's own It())? Then the outer It() could actually be Context() instead.

k8s-ci-robot

unread,
Jun 6, 2018, 10:48:46 PM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-100-performance 118ba36 link /test pull-kubernetes-e2e-gce-100-performance
pull-kubernetes-verify 118ba36 link /test pull-kubernetes-verify
pull-kubernetes-e2e-kops-aws 118ba36 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 118ba36 link /test pull-kubernetes-e2e-gce
pull-kubernetes-kubemark-e2e-gce-big 118ba36 link /test pull-kubernetes-kubemark-e2e-gce-big
pull-kubernetes-node-e2e aa24e75 link /test pull-kubernetes-node-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Di Xu

unread,
Jun 6, 2018, 10:52:13 PM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/test pull-kubernetes-node-e2e

k8s-ci-robot

unread,
Jun 6, 2018, 10:58:58 PM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

k8s-ci-robot

unread,
Jun 6, 2018, 11:12:40 PM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-100-performance 118ba36 link /test pull-kubernetes-e2e-gce-100-performance
pull-kubernetes-verify 118ba36 link /test pull-kubernetes-verify
pull-kubernetes-e2e-kops-aws 118ba36 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-kubemark-e2e-gce-big 118ba36 link /test pull-kubernetes-kubemark-e2e-gce-big
pull-kubernetes-node-e2e aa24e75 link /test pull-kubernetes-node-e2e
pull-kubernetes-e2e-gce aa24e75 link /test pull-kubernetes-e2e-gce

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 6, 2018, 11:25:13 PM6/6/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-100-performance 118ba36 link /test pull-kubernetes-e2e-gce-100-performance
pull-kubernetes-kubemark-e2e-gce-big 118ba36 link /test pull-kubernetes-kubemark-e2e-gce-big
pull-kubernetes-node-e2e aa24e75 link /test pull-kubernetes-node-e2e
pull-kubernetes-e2e-gce aa24e75 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws aa24e75 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Di Xu

unread,
Jun 7, 2018, 12:56:36 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/retest

k8s-ci-robot

unread,
Jun 7, 2018, 1:37:04 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce aa24e75 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws aa24e75 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 7, 2018, 1:51:34 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws aa24e75 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce aa24e75 link /test pull-kubernetes-e2e-gce

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 7, 2018, 2:43:34 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws aa24e75 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce aa24e75 link /test pull-kubernetes-e2e-gce
pull-kubernetes-node-e2e 7476126 link /test pull-kubernetes-node-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 7, 2018, 2:48:38 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws aa24e75 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce aa24e75 link /test pull-kubernetes-e2e-gce
pull-kubernetes-node-e2e 7476126 link /test pull-kubernetes-node-e2e
pull-kubernetes-integration 7476126 link /test pull-kubernetes-integration

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 7, 2018, 3:14:11 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce aa24e75 link /test pull-kubernetes-e2e-gce
pull-kubernetes-node-e2e 7476126 link /test pull-kubernetes-node-e2e
pull-kubernetes-integration 7476126 link /test pull-kubernetes-integration
pull-kubernetes-e2e-kops-aws 7476126 link /test pull-kubernetes-e2e-kops-aws

k8s-ci-robot

unread,
Jun 7, 2018, 3:19:02 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-node-e2e 7476126 link /test pull-kubernetes-node-e2e
pull-kubernetes-integration 7476126 link /test pull-kubernetes-integration
pull-kubernetes-e2e-kops-aws 7476126 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 7476126 link /test pull-kubernetes-e2e-gce

k8s-ci-robot

unread,
Jun 7, 2018, 4:00:51 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 7476126 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 34f337d link /test pull-kubernetes-e2e-kops-aws

k8s-ci-robot

unread,
Jun 7, 2018, 4:25:48 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 7476126 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 34f337d link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-node-e2e 11e3dde link /test pull-kubernetes-node-e2e

Di Xu

unread,
Jun 7, 2018, 4:47:04 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/test pull-kubernetes-node-e2e

k8s-ci-robot

unread,
Jun 7, 2018, 5:08:40 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-node-e2e 11e3dde link /test pull-kubernetes-node-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 7, 2018, 5:34:56 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-node-e2e 11e3dde link /test pull-kubernetes-node-e2e
pull-kubernetes-integration 6b9cec6 link /test pull-kubernetes-integration

Di Xu

unread,
Jun 7, 2018, 5:36:30 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/test pull-kubernetes-integration

k8s-ci-robot

unread,
Jun 7, 2018, 6:20:18 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 6b9cec6 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Di Xu

unread,
Jun 7, 2018, 6:20:48 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/test pull-kubernetes-e2e-kops-aws

k8s-ci-robot

unread,
Jun 7, 2018, 6:37:56 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 6b9cec6 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 6b9cec6 link /test pull-kubernetes-e2e-gce

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 7, 2018, 7:22:26 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 6b9cec6 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 6b9cec6 link /test pull-kubernetes-e2e-kops-aws

Di Xu

unread,
Jun 7, 2018, 9:19:26 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/retest

k8s-ci-robot

unread,
Jun 7, 2018, 10:26:22 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 6b9cec6 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 6b9cec6 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 7, 2018, 10:40:20 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 6b9cec6 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 6b9cec6 link /test pull-kubernetes-e2e-gce

Di Xu

unread,
Jun 7, 2018, 10:43:13 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/retest

k8s-ci-robot

unread,
Jun 7, 2018, 11:45:55 AM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 6b9cec6 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 6b9cec6 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 7, 2018, 12:02:18 PM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 6b9cec6 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 6b9cec6 link /test pull-kubernetes-e2e-gce

Di Xu

unread,
Jun 7, 2018, 9:08:18 PM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/retest

k8s-ci-robot

unread,
Jun 7, 2018, 10:09:38 PM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 6b9cec6 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 6b9cec6 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Di Xu

unread,
Jun 7, 2018, 10:13:29 PM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/test pull-kubernetes-e2e-kops-aws

k8s-ci-robot

unread,
Jun 7, 2018, 10:28:12 PM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 6b9cec6 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 6b9cec6 link /test pull-kubernetes-e2e-gce

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 7, 2018, 10:54:11 PM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 6b9cec6 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 6b9cec6 link /test pull-kubernetes-e2e-gce
pull-kubernetes-node-e2e 3e03f31 link /test pull-kubernetes-node-e2e

k8s-ci-robot

unread,
Jun 7, 2018, 11:40:19 PM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 6b9cec6 link /test pull-kubernetes-e2e-gce
pull-kubernetes-node-e2e 3e03f31 link /test pull-kubernetes-node-e2e
pull-kubernetes-e2e-kops-aws 3e03f31 link /test pull-kubernetes-e2e-kops-aws

k8s-ci-robot

unread,
Jun 7, 2018, 11:50:39 PM6/7/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-node-e2e 3e03f31 link /test pull-kubernetes-node-e2e
pull-kubernetes-e2e-kops-aws 3e03f31 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 3e03f31 link /test pull-kubernetes-e2e-gce

Di Xu

unread,
Jun 8, 2018, 1:21:26 AM6/8/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/retest

k8s-ci-robot

unread,
Jun 8, 2018, 2:29:08 AM6/8/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 3e03f31 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 3e03f31 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 8, 2018, 2:40:38 AM6/8/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 3e03f31 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 3e03f31 link /test pull-kubernetes-e2e-gce

Di Xu

unread,
Jun 9, 2018, 10:34:27 PM6/9/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/retest

k8s-ci-robot

unread,
Jun 9, 2018, 11:34:55 PM6/9/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 3e03f31 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 3e03f31 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 9, 2018, 11:53:16 PM6/9/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 3e03f31 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 3e03f31 link /test pull-kubernetes-e2e-gce

Di Xu

unread,
Jun 11, 2018, 4:10:25 AM6/11/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/retest

k8s-ci-robot

unread,
Jun 11, 2018, 5:11:34 AM6/11/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 3e03f31 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 3e03f31 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jun 11, 2018, 5:28:21 AM6/11/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 3e03f31 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 3e03f31 link /test pull-kubernetes-e2e-gce

Michelle Au

unread,
Jun 13, 2018, 9:03:33 PM6/13/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 commented on this pull request.

Thanks this looks great! Just some minor comments


In test/e2e/storage/host_path_type.go:

> +		hostPathFileOrCreate      v1.HostPathType = v1.HostPathFileOrCreate
+		hostPathFile              v1.HostPathType = v1.HostPathFile
+		hostPathSocket            v1.HostPathType = v1.HostPathSocket
+		hostPathCharDev           v1.HostPathType = v1.HostPathCharDev
+		hostPathBlockDev          v1.HostPathType = v1.HostPathBlockDev
+	)
+
+	BeforeEach(func() {
+		ns = f.Namespace.Name
+
+		By("Create a pod for further testing")
+		hostDir := "/tmp/hostpath-test"
+		mountDir := "/mnt/test"
+		basePod = f.PodClient().CreateSync(newHostPathTypeTestPod("", hostDir, mountDir, &hostPathDirectoryOrCreate))
+
+		By("Create a temporary clean directory for further testing")

There should be an aftereach to cleanup all these tmp directories


In test/e2e/storage/host_path_type.go:

> +
+		By("Create a temporary clean directory for further testing")
+		result, err := utils.PodExec(basePod, fmt.Sprintf("mktemp -d -p %s hostpath.XXXXXX", mountDir))
+		Expect(err).NotTo(HaveOccurred())
+
+		mountBaseDir = strings.TrimSpace(result)
+		hostBaseDir = path.Join(hostDir, strings.TrimPrefix(mountBaseDir, mountDir))
+	})
+
+	Context("HostPathType Directory Test", func() {
+		var targetDir string
+
+		BeforeEach(func() {
+			targetDir = path.Join(hostBaseDir, "adir")
+
+			By("Should fail on mounting non-existent directory 'adir' when HostPathType is HostPathDirectory")

Can each HostPathType be a separate It() instead of inside the BeforeEach()?


In test/e2e/storage/host_path_type.go:

> +
+		By("Create a temporary clean directory for further testing")
+		result, err := utils.PodExec(basePod, fmt.Sprintf("mktemp -d -p %s hostpath.XXXXXX", mountDir))
+		Expect(err).NotTo(HaveOccurred())
+
+		mountBaseDir = strings.TrimSpace(result)
+		hostBaseDir = path.Join(hostDir, strings.TrimPrefix(mountBaseDir, mountDir))
+	})
+
+	Context("HostPathType Directory Test", func() {
+		var targetDir string
+
+		BeforeEach(func() {
+			targetDir = path.Join(hostBaseDir, "adir")
+
+			By("Should fail on mounting non-existent directory 'adir' when HostPathType is HostPathDirectory")

Also should we have test cases where the hostpath is of the wrong type? For example, hostpath is a file but type is HostPathDirectory.

Di Xu

unread,
Jun 13, 2018, 9:18:41 PM6/13/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx commented on this pull request.


In test/e2e/storage/host_path_type.go:

> +		hostPathFileOrCreate      v1.HostPathType = v1.HostPathFileOrCreate
+		hostPathFile              v1.HostPathType = v1.HostPathFile
+		hostPathSocket            v1.HostPathType = v1.HostPathSocket
+		hostPathCharDev           v1.HostPathType = v1.HostPathCharDev
+		hostPathBlockDev          v1.HostPathType = v1.HostPathBlockDev
+	)
+
+	BeforeEach(func() {
+		ns = f.Namespace.Name
+
+		By("Create a pod for further testing")
+		hostDir := "/tmp/hostpath-test"
+		mountDir := "/mnt/test"
+		basePod = f.PodClient().CreateSync(newHostPathTypeTestPod("", hostDir, mountDir, &hostPathDirectoryOrCreate))
+
+		By("Create a temporary clean directory for further testing")

Yeah. Will add it.

Di Xu

unread,
Jun 13, 2018, 9:19:50 PM6/13/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx commented on this pull request.


In test/e2e/storage/host_path_type.go:

> +
+		By("Create a temporary clean directory for further testing")
+		result, err := utils.PodExec(basePod, fmt.Sprintf("mktemp -d -p %s hostpath.XXXXXX", mountDir))
+		Expect(err).NotTo(HaveOccurred())
+
+		mountBaseDir = strings.TrimSpace(result)
+		hostBaseDir = path.Join(hostDir, strings.TrimPrefix(mountBaseDir, mountDir))
+	})
+
+	Context("HostPathType Directory Test", func() {
+		var targetDir string
+
+		BeforeEach(func() {
+			targetDir = path.Join(hostBaseDir, "adir")
+
+			By("Should fail on mounting non-existent directory 'adir' when HostPathType is HostPathDirectory")

We do have separate It(). Here BeforeEach() is mainly used to prepare the needed environment.

Di Xu

unread,
Jun 13, 2018, 9:20:30 PM6/13/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx commented on this pull request.


In test/e2e/storage/host_path_type.go:

> +
+		By("Create a temporary clean directory for further testing")
+		result, err := utils.PodExec(basePod, fmt.Sprintf("mktemp -d -p %s hostpath.XXXXXX", mountDir))
+		Expect(err).NotTo(HaveOccurred())
+
+		mountBaseDir = strings.TrimSpace(result)
+		hostBaseDir = path.Join(hostDir, strings.TrimPrefix(mountBaseDir, mountDir))
+	})
+
+	Context("HostPathType Directory Test", func() {
+		var targetDir string
+
+		BeforeEach(func() {
+			targetDir = path.Join(hostBaseDir, "adir")
+
+			By("Should fail on mounting non-existent directory 'adir' when HostPathType is HostPathDirectory")

Yeah, wrong hostpath type is not well tested. Will cover that.

Michelle Au

unread,
Jun 13, 2018, 9:29:16 PM6/13/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 commented on this pull request.


In test/e2e/storage/host_path_type.go:

> +
+		By("Create a temporary clean directory for further testing")
+		result, err := utils.PodExec(basePod, fmt.Sprintf("mktemp -d -p %s hostpath.XXXXXX", mountDir))
+		Expect(err).NotTo(HaveOccurred())
+
+		mountBaseDir = strings.TrimSpace(result)
+		hostBaseDir = path.Join(hostDir, strings.TrimPrefix(mountBaseDir, mountDir))
+	})
+
+	Context("HostPathType Directory Test", func() {
+		var targetDir string
+
+		BeforeEach(func() {
+			targetDir = path.Join(hostBaseDir, "adir")
+
+			By("Should fail on mounting non-existent directory 'adir' when HostPathType is HostPathDirectory")

I guess it's a little strange the the By() in the BeforeEach() could actually be a standalone test case too.

Di Xu

unread,
Jul 23, 2018, 3:38:51 AM7/23/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/retest

k8s-ci-robot

unread,
Jul 23, 2018, 4:42:10 AM7/23/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 3e03f31 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 3e03f31 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jul 23, 2018, 4:57:18 AM7/23/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 3e03f31 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 3e03f31 link /test pull-kubernetes-e2e-gce

k8s-ci-robot

unread,
Jul 23, 2018, 9:36:59 AM7/23/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dixudx
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: gnufied

If they are not already assigned, you can assign the PR to them by writing /assign @gnufied in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Di Xu

unread,
Jul 23, 2018, 9:37:52 AM7/23/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 Updated. PTAL. Thanks.

k8s-ci-robot

unread,
Jul 23, 2018, 10:39:01 AM7/23/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 3e03f31 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 70b817d link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jul 23, 2018, 10:56:15 AM7/23/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 70b817d link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 70b817d link /test pull-kubernetes-e2e-gce

Michelle Au

unread,
Jul 23, 2018, 4:54:59 PM7/23/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 commented on this pull request.


In test/e2e/storage/host_path_type.go:

> +
+		hostPathUnset             = v1.HostPathUnset
+		hostPathDirectoryOrCreate = v1.HostPathDirectoryOrCreate
+		hostPathDirectory         = v1.HostPathDirectory
+		hostPathFileOrCreate      = v1.HostPathFileOrCreate
+		hostPathFile              = v1.HostPathFile
+		hostPathSocket            = v1.HostPathSocket
+		hostPathCharDev           = v1.HostPathCharDev
+		hostPathBlockDev          = v1.HostPathBlockDev
+	)
+
+	BeforeEach(func() {
+		ns = f.Namespace.Name
+
+		By("Create a pod for further testing")
+		hostDir := "/tmp/hostpath-test"

Can the hostDir also include the test namespace so that each test run will use a unique directory? Then, you don't need to mktmp below.


In test/e2e/storage/host_path_type.go:

> +		hostPathUnset             = v1.HostPathUnset
+		hostPathDirectoryOrCreate = v1.HostPathDirectoryOrCreate
+		hostPathDirectory         = v1.HostPathDirectory
+		hostPathFileOrCreate      = v1.HostPathFileOrCreate
+		hostPathFile              = v1.HostPathFile
+		hostPathSocket            = v1.HostPathSocket
+		hostPathCharDev           = v1.HostPathCharDev
+		hostPathBlockDev          = v1.HostPathBlockDev
+	)
+
+	BeforeEach(func() {
+		ns = f.Namespace.Name
+
+		By("Create a pod for further testing")
+		hostDir := "/tmp/hostpath-test"
+		mountDir := "/mnt/test"

It seems like all the tests cases use the same mountDir. Does it need to be an argument?


In test/e2e/storage/host_path_type.go:

> +
+		By("Create a temporary clean directory for further testing")
+		result, err := utils.PodExec(basePod, fmt.Sprintf("mktemp -d -p %s hostpath.XXXXXX", mountDir))
+		Expect(err).NotTo(HaveOccurred())
+
+		mountBaseDir = strings.TrimSpace(result)
+		hostBaseDir = path.Join(hostDir, strings.TrimPrefix(mountBaseDir, mountDir))
+	})
+
+	Context("HostPathType Directory Test", func() {
+		var targetDir string
+
+		BeforeEach(func() {
+			targetDir = path.Join(hostBaseDir, "adir")
+
+			By("Should fail on mounting non-existent directory 'adir' when HostPathType is HostPathDirectory")

I think this particular scenario of failing when the directory doesn't exist should be its own test case (a separate It()) instead of in the BeforeEach(). You could use a different directory like "does-not-exist-dir". Same for all the other types

Di Xu

unread,
Jul 26, 2018, 8:18:00 AM7/26/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 Updated. PTAL. Thanks.

k8s-ci-robot

unread,
Jul 26, 2018, 9:02:09 AM7/26/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 70b817d link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws d057fa0 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Jul 26, 2018, 9:36:04 AM7/26/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws d057fa0 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce d057fa0 link /test pull-kubernetes-e2e-gce

k8s-ci-robot

unread,
Jul 26, 2018, 9:43:47 AM7/26/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws d057fa0 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce d057fa0 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-gce-100-performance d057fa0 link /test pull-kubernetes-e2e-gce-100-performance

k8s-ci-robot

unread,
Jul 26, 2018, 11:27:57 PM7/26/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws d057fa0 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce d057fa0 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-gce-100-performance d057fa0 link /test pull-kubernetes-e2e-gce-100-performance
pull-kubernetes-verify 22fb130 link /test pull-kubernetes-verify

k8s-ci-robot

unread,
Jul 26, 2018, 11:54:46 PM7/26/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce d057fa0 link /test pull-kubernetes-e2e-gce
pull-kubernetes-verify 22fb130 link /test pull-kubernetes-verify
pull-kubernetes-e2e-kops-aws 22fb130 link /test pull-kubernetes-e2e-kops-aws

k8s-ci-robot

unread,
Jul 27, 2018, 12:07:51 AM7/27/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-verify 22fb130 link /test pull-kubernetes-verify
pull-kubernetes-e2e-kops-aws 22fb130 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 22fb130 link /test pull-kubernetes-e2e-gce

Michelle Au

unread,
Jul 27, 2018, 12:37:56 PM7/27/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 commented on this pull request.


In test/e2e/storage/host_path_type.go:

> +	BeforeEach(func() {
+		ns = f.Namespace.Name
+
+		By("Create a pod for further testing")
+		hostBaseDir := path.Join("/tmp", ns)
+		mountBaseDir := "/mnt/test"
+		basePod = f.PodClient().CreateSync(newHostPathTypeTestPod("", hostBaseDir, mountBaseDir, &hostPathDirectoryOrCreate))
+	})
+
+	Context("HostPathType Directory Test", func() {
+		var targetDir string
+
+		BeforeEach(func() {
+			targetDir = path.Join(hostBaseDir, "adir")
+			By("Should automatically create a new directory 'adir' when HostPathType is HostPathDirectoryOrCreate")
+			newPod, err := f.ClientSet.CoreV1().Pods(ns).Create(newHostPathTypeTestPod(basePod.Spec.NodeName, targetDir, "/mnt/test", &hostPathDirectoryOrCreate))

can this use verifyPodHostPathType?


In test/e2e/storage/host_path_type.go:

> +	})
+
+	Context("HostPathType Directory Test", func() {
+		var targetDir string
+
+		BeforeEach(func() {
+			targetDir = path.Join(hostBaseDir, "adir")
+			By("Should automatically create a new directory 'adir' when HostPathType is HostPathDirectoryOrCreate")
+			newPod, err := f.ClientSet.CoreV1().Pods(ns).Create(newHostPathTypeTestPod(basePod.Spec.NodeName, targetDir, "/mnt/test", &hostPathDirectoryOrCreate))
+			Expect(err).NotTo(HaveOccurred())
+			framework.ExpectNoError(framework.WaitForPodNameRunningInNamespace(f.ClientSet, newPod.Name, newPod.Namespace))
+		})
+
+		It("Should fail on mounting non-existent directory 'does-not-exist-dir' when HostPathType is HostPathDirectory", func() {
+			dirPath := path.Join(hostBaseDir, "does-not-exist-dir")
+			testPodHostPathType(f, basePod.Spec.NodeName, dirPath, fmt.Sprintf("%s is not a directory", dirPath), &hostPathDirectory)

It looks like testPodHostPathType is used for failure scenarios. Maybe a better name could be verifyPodHostPathTypeFailure

k8s-ci-robot

unread,
Aug 30, 2018, 7:26:56 PM8/30/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot

unread,
Aug 31, 2018, 3:55:54 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 22fb130 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws 0440a17 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Aug 31, 2018, 4:15:26 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 0440a17 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 0440a17 link /test pull-kubernetes-e2e-gce

k8s-ci-robot

unread,
Aug 31, 2018, 5:21:00 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce 0440a17 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws b5b0152 link /test pull-kubernetes-e2e-kops-aws

k8s-ci-robot

unread,
Aug 31, 2018, 5:35:38 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws b5b0152 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce b5b0152 link /test pull-kubernetes-e2e-gce

Di Xu

unread,
Aug 31, 2018, 7:22:05 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Push

@dixudx pushed 1 commit.

  • 06a55cb fix bug on checking hostpath type file


You are receiving this because you are subscribed to this thread.
View it on GitHub or mute the thread.

k8s-ci-robot

unread,
Aug 31, 2018, 7:22:49 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dixudx
To fully approve this pull request, please assign additional approvers.

We suggest the following additional approver: saad-ali

If they are not already assigned, you can assign the PR to them by writing /assign @saad-ali in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or mute the thread.

k8s-ci-robot

unread,
Aug 31, 2018, 7:29:20 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws b5b0152 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce b5b0152 link /test pull-kubernetes-e2e-gce
pull-kubernetes-bazel-test 06a55cb link /test pull-kubernetes-bazel-test

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Di Xu

unread,
Aug 31, 2018, 7:43:15 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 Sorry for the late update.

Shall we make it v1.12?

k8s-ci-robot

unread,
Aug 31, 2018, 8:47:33 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce b5b0152 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws a38ddb7 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Di Xu

unread,
Aug 31, 2018, 8:49:21 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/test pull-kubernetes-e2e-kops-aws

k8s-ci-robot

unread,
Aug 31, 2018, 9:00:24 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws a38ddb7 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce a38ddb7 link /test pull-kubernetes-e2e-gce

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Di Xu

unread,
Aug 31, 2018, 9:06:36 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/test pull-kubernetes-e2e-gce

k8s-ci-robot

unread,
Aug 31, 2018, 9:53:56 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce a38ddb7 link /test pull-kubernetes-e2e-gce
pull-kubernetes-e2e-kops-aws a38ddb7 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot

unread,
Aug 31, 2018, 10:24:26 AM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws a38ddb7 link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce a38ddb7 link /test pull-kubernetes-e2e-gce

Michelle Au

unread,
Aug 31, 2018, 8:52:40 PM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/lgtm
/retest
Thanks!

k8s-ci-robot

unread,
Aug 31, 2018, 8:53:02 PM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dixudx, msau42


To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: saad-ali

If they are not already assigned, you can assign the PR to them by writing /assign @saad-ali in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Michelle Au

unread,
Aug 31, 2018, 8:54:25 PM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/assign @saad-ali

Michelle Au

unread,
Aug 31, 2018, 8:56:34 PM8/31/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@dixudx can you update the title of the PR to reflect that this is fixing an issue too?

It is loading more messages.
0 new messages