Bugfix: csi plugin supporting raw block that does not need attach mounted failed#79920
Conversation
|
Can you also please enhance our e2e test for VolumeAttachment with block volumes? We have some for filesystem based PVs: https://github.com/kubernetes/kubernetes/blob/master/test/e2e/storage/csi_mock_volume.go#L233 |
I would fix it, thanks |
I would like to enhance e2e test for VolumeAttachment with block volumes in another PR. |
1d0e7c3 to
35c6af2
Compare
There was a problem hiding this comment.
IMO, return err would be more useful here. Kubelet should not assume that the volume is attachable.
Add unit test fix verify-test-featurefates failed
35c6af2 to
0c628e1
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cwdsuzhou, jsafrane The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@jsafrane I have cherry picked the PR to k8s 1.15 1.14 and 1.13, PTAL, thanks |
the criteria for cherry picks in k8s should be "critical bug fixes only". |
|
@neolit123 I think it qualifies.Without this PR CSI plugins support raw block but do not need attachment can not mount block devices successfully. However I we have claimed we support CSI raw block mode. |
…920-upstream-release-1.14 Automated cherry pick of #79920: Bugfix: csi raw block that does not need attach mounted failed
…920-upstream-release-1.15 Automated cherry pick of #79920: Bugfix: csi raw block that does not need attach mounted failed
What type of PR is this?
/kind bug
What this PR does / why we need it:
csi plugin supporting raw block that does not need attach mounted failed.
reason: for block device, csi_block.go always gets an attachment no matter if it supports attachment.
Which issue(s) this PR fixes:
Fixes #79884
Special notes for your reviewer:
Does this PR introduce a user-facing change?: