Skip to content

Implement ListVolumes #378

Closed
Closed
@andyzhangx

Description

@andyzhangx

Is your feature request related to a problem?/Why is this needed

When a Node gets deleted, and Pod is rescheduled, Kubernetes thinks that the the volume is still attached to the original node and fails to attach to the new node with Multi-Attach error.

Describe the solution you'd like in detail

The latest csi-attacher v2.1 adds support for the ListVolumes capability: https://github.com/kubernetes-csi/external-attacher/blob/v2.1.1/CHANGELOG-2.1.md

https://github.com/container-storage-interface/spec/blob/v1.3.0/spec.md#listvolumes
https://docs.microsoft.com/en-us/rest/api/compute/disks/listbyresourcegroup
https://github.com/kubernetes/kubernetes/blame/master/staging/src/k8s.io/legacy-cloud-providers/azure/clients/snapshotclient/azure_snapshotclient.go

It addresses problems when volumes may get detached out of band, and need to be reattached to a node. It could potentially help the other way around too, but that hasn't been tested.

depends on PR(#377)
Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

Labels

help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions