-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
Add block volume support to Cinder volume plugin #64879
Conversation
/ok-to-test |
/test pull-kubernetes-node-e2e |
/assign @jsafrane |
/sig storage |
pkg/volume/cinder/cinder_block.go
Outdated
if len(vID) <= 1 { | ||
return nil, fmt.Errorf("failed to get volumeID from global path=%s", globalMapPath) | ||
} | ||
if !strings.Contains(vID, "vol-") { |
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.
Please double check that Cinder volume have really vol-
prefix in their IDs. OpenStack GUI show me that there is no specific prefix.
pkg/volume/cinder/cinder_block.go
Outdated
return nil, fmt.Errorf("failed to get volumeID from global path=%s, invalid volumeID format = %s", globalMapPath, vID) | ||
} | ||
block := v1.PersistentVolumeBlock | ||
awsVolume := &v1.PersistentVolume{ |
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.
awsVolume
in Cinder code?
pkg/volume/cinder/cinder_block.go
Outdated
} | ||
|
||
// GetPodDeviceMapPath returns pod device map path and volume name | ||
// path: pods/{podUid}/volumeDevices/kubernetes.io~aws |
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.
aws?
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.
Almost LGTM, see one nit below.
Please squash your commits, we want code + test + bazel in one commit unless it's really big one.
api/openapi-spec/swagger.json
Outdated
@@ -88401,5 +88401,5 @@ | |||
{ | |||
"BearerToken": [] | |||
} | |||
] |
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.
Where this comes from?
/hold |
6908dd7
to
eab2d1e
Compare
/hold cancel |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bertinatto, jsafrane 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 |
/retest Review the full test history for this PR. Silence the bot with an |
Automatic merge from submit-queue (batch tested with PRs 65256, 64236, 64919, 64879, 57932). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
This PR adds block volume support to Cinder volume plugin.
Release note: