Description
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