-
Notifications
You must be signed in to change notification settings - Fork 159
Add support for raw block devices and enable block device tests on external k8s testing #283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidz627 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 |
glog.V(4).Infof("NodePublishVolume with block volume mode") | ||
|
||
partition := "" | ||
if part, ok := req.GetVolumeContext()[common.VolumeAttributePartition]; ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to support partitions with block? I thought partitions was sort of broken already and we only wanted to keep it for backwards compatibility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only broken part is specifying two partitions of the same disk in a pod: kubernetes/kubernetes#57915
Our fs mount supports partitions as much as in-tree supports them (and will continue to have to for migration). If the in-tree block supports partitions we will have to support them for the driver as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure if it does. We should add test cases if we do...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkg/gce-pd-csi-driver/node.go
Outdated
err = ns.Mounter.MakeFile(targetPath) | ||
if err != nil { | ||
if removeErr := os.Remove(targetPath); removeErr != nil { | ||
return nil, status.Error(codes.Internal, fmt.Sprintf("Error removing block file at target path %v: %v", targetPath, removeErr)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we also want to log the original error?
2625ad4
to
5c9666c
Compare
/hold |
/hold cancel |
/lgtm |
@msau42 had to rebase PTAL |
…ternal k8s testing
/lgtm |
/kind feature |
Fixes: #64
Add support for Raw Block devices.
Enable the external driver tests for block.
/assign @msau42