-
Notifications
You must be signed in to change notification settings - Fork 620
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
[cinder-csi-pugin] Support reconcile volume attachements #976
[cinder-csi-pugin] Support reconcile volume attachements #976
Conversation
Hi @takmatsu. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
/ok-to-test |
@@ -261,6 +261,13 @@ func (cs *controllerServer) ListVolumes(ctx context.Context, req *csi.ListVolume | |||
CapacityBytes: int64(v.Size * 1024 * 1024 * 1024), | |||
}, | |||
} | |||
|
|||
status := &csi.ListVolumesResponse_VolumeStatus{} | |||
for _, attachment := range v.Attachments { |
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.
just curious , this attachments means we considered multi attach feature?
one volume attached to multiple node?
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 also think normally block storage is attached to one node.
But cinder response supports multiple attachments in API level.
https://docs.openstack.org/api-ref/block-storage/v3/index.html?expanded=list-accessible-volumes-with-details-detail#list-accessible-volumes-with-details
and actually some driver may support multi-attach:
https://docs.openstack.org/cinder/latest/admin/blockstorage-volume-multiattach.html
Does this require a minimal version of external-attacher in order to support this capability? |
attacher we are using v2.0.0 now assume the requested feature in 2.1.0 or even higher as kubernetes-csi/external-attacher#184 is in Dec |
@jichenjc so could we hold this one until yours are merged? |
/hold |
@lingxiankong thanks ,did so just now |
@jichenjc it's ok to remove hold now? |
/hold cancel |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ramineni 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 |
/test pull-cloud-provider-openstack-test |
@takmatsu pls rebase on latest master |
4c518ab
to
6dfb9b4
Compare
Build failed.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build failed.
|
/test cloud-provider-openstack-multinode-csi-migration-test |
@ramineni: The specified target(s) for
Use In response to this:
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. |
Build succeeded.
|
/lgtm |
The binaries affected:
What this PR does / why we need it:
For supporting VolumeAttachment reconcile, adding capability.
Related: kubernetes-csi/external-attacher#184
Release note:
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)