Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

hostpath: refuse to create block volumes #125

Merged
merged 1 commit into from
Dec 7, 2018

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Dec 5, 2018

Without this check, the hostpath driver fails one of the E2E storage
tests in Kubernetes 1.13: provisioning a block volume is expected to
fail in
https://github.com/kubernetes/kubernetes/blob/e689d515f77cda51898045d626ec4070e3328194/test/e2e/storage/testsuites/volumemode.go#L329-L330

Without this check, the hostpath driver fails one of the E2E storage
tests in Kubernetes 1.13: provisioning a block volume is expected to
fail in
https://github.com/kubernetes/kubernetes/blob/e689d515f77cda51898045d626ec4070e3328194/test/e2e/storage/testsuites/volumemode.go#L329-L330
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 5, 2018
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 5, 2018
@pohly
Copy link
Contributor Author

pohly commented Dec 5, 2018

We should get this into hostpath v1.0.0. Without it, testing against hostpath v1.0.0 and provisioner v1.0.1 will fail, see the trial PR kubernetes/kubernetes#71742 and this job: https://gubernator.k8s.io/build/kubernetes-jenkins/pr-logs/pull/71742/pull-kubernetes-e2e-gce/61906/

The reason why the tests currently pass in Kubernetes 1.13 is that the tests use an external-provisioner which doesn't have block volume support, so currently it is the provisioner which rejects the unsupported operation. But block volume support was added after v1.0.0 (kubernetes-csi/external-provisioner@72398be) and now all CSI drivers under test must have this check.

@pohly
Copy link
Contributor Author

pohly commented Dec 5, 2018

I've verified locally that the test passes with the updated hostpath driver.

@msau42
Copy link
Contributor

msau42 commented Dec 6, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 6, 2018
Copy link
Contributor

@saad-ali saad-ali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pohly, saad-ali

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 7, 2018
@k8s-ci-robot k8s-ci-robot merged commit 5f164ac into kubernetes-retired:master Dec 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants